Call it
curl https://api.peume.com/v1/call/get-instagram-post \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"username": [],
"skipPinnedPosts": false,
"includeMusicData": false,
"dataDetailLevel": "detailedData"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-instagram-post", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"username": [],
"skipPinnedPosts": false,
"includeMusicData": false,
"dataDetailLevel": "detailedData"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-instagram-post",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"username": [],
"skipPinnedPosts": False,
"includeMusicData": False,
"dataDetailLevel": "detailedData"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: get-instagram-post.
Parameters
usernameRequiredarrayInsert the username or URL of any profile you want to get posts from. You can also paste the post URLs.
resultsLimitintegerThis is the maximum number of posts you want to scrape per profile. If you set it to 5, you'll get 5 posts for each profile you've included. This setting does not apply if you're scraping by post URLs.
skipPinnedPostsbooleanCheck if you do not want to save pinned posts.
Example: false
includeMusicDatabooleanExtract music data for Image and Carousel posts. Video posts already include music data with `Detailed data`. Available for paying users only. Upgrade to the <a href='' target='_blank' rel='noopener'>Starter plan</a> to unlock it.
Example: false
onlyPostsNewerThanstringLimit how far back to the history the scraper should go. The date should be in YYYY-MM-DD or full ISO absolute format or in relative format e.g. 1 days, 2 months, 3 years. All time values are taken in UTC timezone
dataDetailLevelstringChoose the data package you want to extract. Please note the Detailed data are paid extra.
basicData · detailedData
Example: detailedData
