Instagram Profile Posts Scraper API
List a public profile's posts, newest first, with caption, likes, comments and post time. Page through with next_cursor or stop at a date.
{ "summary": { "username": "nasa", "has_more": true, "user_id": "528817151" }, "items": [ { "data": { "like_count": 163541, "comment_count": 1720, "code": "DeCPVhERA8e", "id": "3999826868370149150", "is_video": true, "like_and_view_counts_disabled": false, "media_type": 2, "original_height": 1920, "original_width": 1080, "taken_at": 1791036618, "caption": { "text": "Room with a view. Check out my new digs as I camp out in Dragon until our departure. With Crew-13’s arrival we have a very full house on th…" }, "owner": { "username": "astro_jessica", "id": "4092263381", "is_verified": true }, "coauthor_producers": [ { "username": "nasa", "is_verified": true }, { "username": "iss", "is_verified": true } ] } }, { "data": { "like_count": 34280, "comment_count": 258, "code": "DeCNJEyOkpq", "id": "3999817217276004970", "is_video": true, "like_and_view_counts_disabled": false, "media_type": 2, "original_height": 1920, "original_width": 1080, "taken_at": 1791035813, "caption": { "text": "From Florida to the front door in under eight hours. 🚀\n\n@nasa’s @spacex Crew-13 lifted off from Cape Canaveral, Florida, at 11:10 a.m. EDT …" }, "owner": { "username": "nasajohnson", "id": "673882723", "is_verified": true }, "coauthor_producers": [ { "username": "nasa", "is_verified": true }, { "username": "nasakennedy", "is_verified": true } ] } } ]}
| # |
|---|
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
| 11 |
| 12 |
| 13 |
| 14 |
| 15 |
What you send, what comes back
The input object it accepts, and every field of a record, with the values from the response above.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| url | string | yes | The profile's username or URL. | https://www.instagram.com/nasa |
| cursor | string | no | Pass next_cursor from the last response, with the same profile, to get the next page. | |
| limit | integer | no | How many posts to return in this call. | |
| max_pages | integer | no | How many pages to read in this call. A smaller number answers faster. | |
| since | integer | no | Only posts from this moment on, as a Unix timestamp. Pinned posts can appear out of date order. |
| Field | Type | What it is | Example |
|---|---|---|---|
| items[].data.like_count | integer | Likes, as Instagram shows them. | 163,541 |
| items[].data.comment_count | integer | Comments, as Instagram shows them. | 1720 |
| items[].data.taken_at | integer | When it was posted, as a Unix time in seconds. | 1,791,036,618 |
| items[].data.code | string | The post's short code, the last part of its link. | DeCPVhERA8e |
| items[].data.caption | object | The post's caption. | 1 fields |
| items[].data | object | The post. | 13 fields |
| items[].data.coauthor_producers | array | Accounts credited as co-authors of the post. | 2 records |
| items[].data.id | string | The post's Instagram ID. | 3999826868370149150 |
| items[].data.is_video | boolean | Whether the post is a video. | true |
| items[].data.like_and_view_counts_disabled | boolean | Whether the account hides like and view counts. | false |
| items[].data.media_type | integer | Instagram's media type: 1 a photo, 2 a video, 8 a carousel. | 2 |
| items[].data.original_height | integer | The photo or video's original height, in pixels. | 1920 |
| items[].data.original_width | integer | The photo or video's original width, in pixels. | 1080 |
| items[].data.owner | object | The account that posted it. | 3 fields |
| items | array | The account's posts. | 50 records |
| summary | object | Totals and paging details for this answer. | 3 fields |
| summary.has_more | boolean | Whether more posts are available. | true |
| summary.user_id | string | The account's Instagram ID. | 528817151 |
| summary.username | string | The account's username. | nasa |
Call it from your code
Set UPSCRAPE_API_KEY to your key and copy a working request. No SDK needed.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "instagram.profile-posts.list", "input": { "url": "https://www.instagram.com/nasa" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "instagram.profile-posts.list", "input": { "url": "https://www.instagram.com/nasa" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "instagram.profile-posts.list", "input": { "url": "https://www.instagram.com/nasa" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
{ "summary": { "username": "nasa", "has_more": true, "user_id": "528817151" }, "items": [ { "data": { "like_count": 163541, "comment_count": 1720, "code": "DeCPVhERA8e", "id": "3999826868370149150", "is_video": true, "like_and_view_counts_disabled": false, "media_type": 2, "original_height": 1920, "original_width": 1080, "taken_at": 1791036618, "caption": { "text": "Room with a view. Check out my new digs as I camp out in Dragon until our departure. With Crew-13’s arrival we have a very full house on th…" }, "owner": { "username": "astro_jessica", "id": "4092263381", "is_verified": true }, "coauthor_producers": [ { "username": "nasa", "is_verified": true }, { "username": "iss", "is_verified": true } ] } }, { "data": { "like_count": 34280, "comment_count": 258, "code": "DeCNJEyOkpq", "id": "3999817217276004970", "is_video": true, "like_and_view_counts_disabled": false, "media_type": 2, "original_height": 1920, "original_width": 1080, "taken_at": 1791035813, "caption": { "text": "From Florida to the front door in under eight hours. 🚀\n\n@nasa’s @spacex Crew-13 lifted off from Cape Canaveral, Florida, at 11:10 a.m. EDT …" }, "owner": { "username": "nasajohnson", "id": "673882723", "is_verified": true }, "coauthor_producers": [ { "username": "nasa", "is_verified": true }, { "username": "nasakennedy", "is_verified": true } ] } } ]}
More Instagram endpoints
The same API key runs every one of them.
The same data from other platforms
-
Bluesky Search public Bluesky posts by keyword, page by page, and continue the Latest order with a date-window cursor. Posts search1 credit per call
-
Facebook Lists recent posts from a public Facebook group with text, date, media, reactions, comments, and shares. Private groups are reported as private. Group posts3 credits per call
-
LinkedIn Company posts from LinkedIn, as JSON. Company posts5 credits per 10 results per call
-
Linktree Profile posts from Linktree, as JSON. Profile posts5 credits per call
-
Reddit List public posts from one or more subreddits, with new, hot, top, and rising rankings and cursor pagination. May take up to 60 seconds. Posts1 credit per 50 results per call
-
TikTok List the videos that carry a hashtag, by its name or ID, page by page. Hashtag videos5 credits per call
Instagram Profile Posts Scraper API FAQ
The short answers. The docs have the long ones.
How much does the Instagram Profile Posts Scraper API cost?
1 credit per 12 results per successful call, shown before it runs. You buy credits once, and paid credits never expire.
What do I send?
Send url. The input fields below list every option with its type and limits.
Do I need an Instagram login?
No. It reads public Instagram data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds instagram.profile-posts.list, checks its price and runs it with the same credits as the REST API.