How do I collect Instagram data? The official API, the Meta Content Library, scrapers and data APIs (2026)
5 ways, depending on whose data you want and how much: your own professional account (business or creator) through Instagram's own API; academic research through the Meta Content Library, on application; for other people's public posts, comments, profiles and reels, look at a few dozen by hand, and for many, or on a schedule, write a scraper or use a data API. With DataXAPI a page of 12 of an account's posts is $0.0020 and a page of about 15 comments $0.0020, with no Instagram account of yours. The free trial covers up to 333 calls; a failed call is not charged.
Updated 2026-12-02
What does each way get?
| Way | What you get | What it takes | For |
|---|---|---|---|
| Instagram's own API (the Instagram Platform) | The authorising account's own posts, reels, stories, comments and insights; of other professional accounts only follower and post counts and each post's likes, comments and views | A professional account and a Meta developer app; serving accounts you do not own takes Advanced Access, App Review and Business Verification | Running your own account, tools for businesses |
| The Meta Content Library | Public content from Facebook, Instagram and more | Affiliation with a not-for-profit whose core is research, an application and a review | Academic research |
| By hand, or a browser plugin | What the page shows: captions, likes, comments | Your own account, one post at a time | A few dozen |
| Your own scraper | Whatever you can keep working | Accounts, proxies, the login wall and rate limits, and repairs when the site changes | A developer and much data |
| A data API (DataXAPI) | Public accounts' profiles, posts, reels, comments and replies, and a hashtag's posts, in one shape | A key, paid per call | Much data, on a schedule, or for an AI |
What does Instagram's own API get, and what not?
It gets an authorising professional account's (business or creator) own posts, reels and stories, the comments under its own posts (which it can also answer, hide and delete), its insights, and the posts that @mention it. The documents say a permission reaches only data the user who granted it created, and serving accounts you do not own takes Advanced Access, App Review and Business Verification. The account using it must be a professional one.
Other accounts are reached two ways only. Business Discovery looks up another professional account by its username: follower and post counts, and each post's likes, comments and views, counts without the comments themselves, and nothing of age-gated accounts. Hashtag search takes App Review and the Instagram Public Content Access feature, allows 30 different hashtags per account in a rolling 7 days, and is not offered to apps that use Instagram Login. Neither gives the profile or posts of a personal account.
The Meta Content Library has public content from Facebook, Instagram and more, for researchers at not-for-profit organizations whose core is research, on an application that is reviewed. Sources: Meta's developer documents, the Instagram Platform overview, Business Discovery and hashtag search, and Meta's Transparency Center on the Meta Content Library, checked 2026-12-02.
Posts, comments, profiles and reels by API: how and at what price?
Priced by the call; the 1,000 column is worked out from how many each call gives. A failed call is not charged, and every answer says what it cost. No Meta developer app, and no Instagram account of yours.
What 1,000 posts, comments and profiles come to here and at other services, and Meta's own limits: Instagram API pricing: what 1,000 posts, comments and profiles cost, service by service.
| You want | Endpoint | A call | Per 1,000 |
|---|---|---|---|
An account's posts, 12 a page; type=reel for reels alone | instagram.users.posts.list | $0.0020 | About 84 pages, $0.168 |
| A post's comments, about 15 a page, newest first | instagram.posts.comments.list | $0.0020 | About 67 pages, $0.134 |
| The replies under a comment, about 15 a page | instagram.comments.replies.list | $0.0020 | About 67 pages, $0.134 |
| One post or reel: caption, author, likes, comments, plays, image and video links | instagram.posts.get | $0.0020 | 1,000 posts, $2.00 |
| A profile: bio, followers, following, verified, the links on it | instagram.users.get | $0.0011 | 1,000 profiles, $1.10 |
| Accounts by keyword, about 50 a call | instagram.users.search | $0.0040 | 20 calls, $0.0800 |
| Reels by keyword, about 10 a call | instagram.reels.search | $0.0020 | 100 calls, $0.20 |
| A hashtag's newest posts, about 33 a page | instagram.hashtags.posts.list | $0.0020 | About 31 pages, $0.0620 |
An account's posts: the request and a recorded answer
Give the username (without the @): 12 posts a page, with caption, likes, comments, plays, time posted, image and video links; for the next page pass page.next_cursor back as cursor. The code below runs as it is, reading the key from the environment.
curl -G "https://api.dataxapi.com/v1/instagram/users/posts/list" \ --data-urlencode "username=nasa" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
# pip install dataxapi from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.instagram.users.posts.list(username="nasa") print(result["data"]["items"])
// npm i @dataxapi/sdk import { DataXAPI } from "@dataxapi/sdk"; const dx = new DataXAPI(); // reads DATAXAPI_API_KEY const result = await dx.instagram.users.posts.list({ username: "nasa" }); console.log(result.data.items);
dataxapi call instagram.users.posts.list username=nasa
{
"code": "ok",
"request_id": "00bd07a2-f76e-4b07-bfda-f6718c7081ce",
"data": {
"items": [
{
"id": "DqngThTYDyZ",
"url": "https://www.instagram.com/p/DqngThTYDyZ/",
"type": "video",
"text": "Three things nobody tells you about weekend hiking.",
"published_at": "2026-10-24T04:02:49.000Z",
"author": {
"id": "54770162770",
"username": "priya.reads",
"name": "Priya R.",
"avatar_url": "https://scontent.cdninstagram.com/v/t51.2885-19/429975025_15741728840577477_n.jpg",
"verified": true
},
"metrics": { "likes": 2630, "comments": 65, "views": 70166 },
"images": [
"https://scontent.cdninstagram.com/v/t51.29350-15/460701643_16163828761625834_n.jpg"
]
},
// … 11 more
]
},
"page": {
"next_cursor": "c1.Myhw7819N8URcJWSe98N8d0G7SRkW_mKgw9Fmj0N",
"cursor_expires_at": "2026-11-01T09:42:13.000Z",
"has_more": true,
"returned": 12
},
"warnings": [],
"meta": {
"capability": "instagram.users.posts.list",
"result_status": "complete",
"fetched_at": "2026-11-01T08:42:13.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"title": "platform",
"lang": "capability",
"author.followers": "capability",
"metrics.shares": "capability",
"metrics.favorites": "capability",
"metrics.reposts": "capability",
"hashtags": "capability",
"mentions": "capability",
"post_id": "platform",
"parent_id": "platform",
"root_id": "platform",
"is_pinned": "capability"
},
"billing": {
"amount": "0.002",
"currency": "USD",
"balance_after": "9.998"
}
}
}From a response recorded 2026-11-01 08:42 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.
Instagram user posts · $0.0020 / a call · Parameters, fields and errors on the endpoint's page →
A post's comments: the request and a recorded answer
Give the post's shortcode (the part of its link after /p/ or /reel/) or its link; each comment has its text, author, likes and time, and the replies under one come from instagram.comments.replies.list.
curl -G "https://api.dataxapi.com/v1/instagram/posts/comments/list" \ --data-urlencode "id=DeCPVhERA8e" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
# pip install dataxapi from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.instagram.posts.comments.list(id="DeCPVhERA8e") print(result["data"]["items"])
// npm i @dataxapi/sdk import { DataXAPI } from "@dataxapi/sdk"; const dx = new DataXAPI(); // reads DATAXAPI_API_KEY const result = await dx.instagram.posts.comments.list({ id: "DeCPVhERA8e" }); console.log(result.data.items);
dataxapi call instagram.posts.comments.list id=DeCPVhERA8e
{
"code": "ok",
"request_id": "26544c27-ca21-4ab8-8bb6-d4d38efa2a35",
"data": {
"items": [
{
"id": "18777006597784877",
"text": "Saving this for the weekend.",
"published_at": "2026-10-12T18:11:33.000Z",
"author": {
"id": "57288959895",
"username": "northside_coffee",
"avatar_url": "https://scontent.cdninstagram.com/v/t51.2885-19/419276717_15679784272961466_n.jpg"
},
"metrics": { "likes": 0 },
"parent_id": null,
"root_id": null
},
// … 14 more
]
},
"page": {
"next_cursor": "c1.TYGSDCOBtTmfqU4tPNqw4QdJ8TU7mqPvshSF2xKz",
"cursor_expires_at": "2026-10-12T19:57:37.000Z",
"has_more": true,
"returned": 15
},
"warnings": [],
"meta": {
"capability": "instagram.posts.comments.list",
"result_status": "complete",
"fetched_at": "2026-10-12T18:57:37.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"url": "platform",
"author.name": "capability",
"metrics.comments": "capability",
"post_id": "capability"
},
"billing": {
"amount": "0.002",
"currency": "USD",
"balance_after": "9.998"
}
}
}From a response recorded 2026-10-12 18:57 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.
Instagram post comments · $0.0020 / a call · Parameters, fields and errors on the endpoint's page →
And without code?
Once connected, say “take @nasa's latest 50 reels as a table of caption, time, likes, comments and plays, then a page of comments under the 3 most commented”.
To connect: paste this to your AI assistant: “Read https://dataxapi.com/agents.md and set up DataXAPI here. My API key is dx_…; use it for every DataXAPI call.” A client that takes a remote MCP server can be given https://api.dataxapi.com/mcp with the header Authorization: Bearer <key> instead.
What to watch
Collect only what is public. Copying by hand, a plugin and a scraper all sign in with your own Instagram account, and going fast or taking much gets it limited, at worst banned; a data API uses no account of yours. Being able to read something is not a right to republish it: keep to the law and the author's rights, and take more care where personal information is in it.
Why DataXAPI
- Steady: endpoints were available 99.9% of the last 30 days, on a public status page you can check.
- Fast: a paid call took 2.5 seconds at the median over the last 7 days (counted 2026-11-06).
- Fewer tokens: across 226 endpoints, one recorded real response each, the platform's own JSON comes to 9.2M tokens and what an AI reads through DataXAPI's MCP server to 452k, 95% fewer; the JSON of a direct API call is 90% fewer too (counted 2026-11-06). Every platform answers in one shape: the author in
author, counts inmetrics, the next page inpage.next_cursor, so another platform needs no new parser. - See before you pay: every endpoint's page shows a recorded real response, field by field.
- Spending you control: a failed call is not charged; each key can have a limit,
X-Max-Pricecaps one call, and the sameIdempotency-Keywithin 24 hours is never charged twice. - Ready for AI: a remote MCP server listed in the official MCP registry as
com.dataxapi/mcp, usable from Claude, Cursor and ChatGPT. - Free trial of up to 333 calls, no card.
Endpoints
Each with its price; every page has the parameters, the fields and a recorded response.
Sources
What this page says of other services is from their own pages and documents, read on 2026-12-02.
Start with one key.
254 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.