get_post_details_by_shortcode
instagram.comReturns detailed metadata for one Instagram post on https://www.instagram.com by shortcode, including engagement counts, media attributes, caption, user details, product type, carousel items, and all non-empty source media fields.
Playground
Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.
What is get_post_details_by_shortcode?
Returns detailed metadata for one Instagram post on https://www.instagram.com by shortcode, including engagement counts, media attributes, caption, user details, product type, carousel items, and all non-empty source media fields. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass shortcode and get the result back without maintaining a scraper.
Response
{
"user": {},
"media": {},
"caption": "<string>",
"is_video": true,
"location": {},
"media_id": "<string>",
"shortcode": "<string>",
"video_url": "<string>",
"dimensions": {},
"like_count": 0,
"source_url": "<string>",
"display_url": "<string>",
"product_type": "<string>",
"comment_count": 0,
"carousel_media": [
{}
],
"taken_at_timestamp": 0
}Call it
curl --location 'https://us-prod.notte.cc/functions/24f5e59b-36e1-42d4-8ea8-8ae02a870ba0/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "24f5e59b-36e1-42d4-8ea8-8ae02a870ba0",
"variables": {
"shortcode": "DbbY9pdm6Q2"
}
}'Ask an agent
Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.
Use the Anything API MCP server (https://anything.notte.cc/mcp). Call run(function_id="24f5e59b-36e1-42d4-8ea8-8ae02a870ba0") — the "get_post_details_by_shortcode" function, which returns detailed metadata for one Instagram post on https://www.instagram.com by shortcode, including engagement counts, media attributes, caption, user details, product type, carousel items, and all non-empty source media fields.. It takes shortcode (str). Return the result as structured JSON.