Instagram Media API
Photos, videos, stories, reels, and carousels
Operations 6
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“How do I list everything an Instagram account has posted?”
“Can I page through an account's posts a set number at a time?”
Tell an agent
List the media published by account {user_id}.
Get {limit} posts from account {user_id} starting after cursor {after}.
Ask an LLM
“How can I fetch the stories currently on my Instagram account?”
“Can I retrieve story media separately from regular feed posts?”
Tell an agent
List the stories on account {user_id}.
Get the stories for account {user_id} with fields {fields}.
Ask an LLM
“How do I look up the caption, type and permalink of a single post by its media ID?”
“What fields can I read on one Instagram reel or album?”
Tell an agent
Show me media {media_id}.
Fetch fields {fields} for post {media_id}.
Ask an LLM
“Can I disable commenting on a post that's attracting trolls?”
“Is there a way to re-enable comments on a post where I switched them off?”
Tell an agent
Turn off comments on post {media_id}.
Set comment_enabled to {comment_enabled} on media {media_id}.
Ask an LLM
“How do I take down a post I published by mistake?”
“Can I delete a reel or carousel through the API?”
Tell an agent destructive · confirm first
Delete media {media_id}.
Permanently remove post {media_id} from the account.
Ask an LLM
“How do I get the individual photos and videos inside a carousel post?”
“What media items make up a particular album on Instagram?”
Tell an agent
List the children of carousel {media_id}.
Get each item in album {media_id} with fields {fields}.
Documentation
Documentation
https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login
GettingStarted
https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login/get-started
APIReference
https://developers.facebook.com/docs/instagram-api/reference
Authentication
https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login/business-login
Documentation
https://developers.facebook.com/docs/instagram-api/
Authentication
https://developers.facebook.com/docs/instagram-api/overview#authentication