Instagram Posts Scraper API
Extract posts, 12 by default as structured JSON from public Instagram Posts targets. Queue a request, then retrieve the result with its responseId.
Decide before you build
- Endpoint
- POST /scrape/data-scraper
- Scrapers
- instagramPost
- Cost
- 30 credits / call
- Free plan
- 500 credits / month
- Call pattern
- async, POST then GET
- On failure
- credits refunded
- Response format
- JSON
- Concurrency
- by plan tier
Launching a Social Media scrape costs 30 credits. Retrieving a pending result costs nothing; failed scrapes are refunded.
Try the Instagram Posts scraper on your own targetRun a request against a public target and inspect the JSON before you integrate.
Open the live testWhat you get back
instagramPostSingle post
Use instagramPost to retrieve single post data from a public Instagram target.
- Required input: url
- No optional input parameters
- Structured JSON once the result is ready
- Public data only; no account login is used
Call the Instagram Posts scraper
Send the scraper name with the input required by that scraper. The POST returns a responseId to poll for the final JSON.
# POST - queue a public social media scrape
curl -X POST "https://api.scraping-bot.io/scrape/data-scraper" \
-u "yourUsername:yourApiKey" \
-H "Content-Type: application/json" \
-d '{
"scraper": "instagramPost",
"url": "https://example.com/public-page"
}'# GET - retrieve the result after the POST returns a responseId
curl -G "https://api.scraping-bot.io/scrape/data-scraper-response" \
-u "yourUsername:yourApiKey" \
--data-urlencode "responseId=RESPONSE_ID" \
--data-urlencode "scraper=instagramPost"Code example
Authenticate with your ScrapingBot username and API key, then poll until the queued result is ready.
const auth = "Basic " + Buffer.from(
"yourUsername:yourApiKey",
).toString("base64");
const queued = await fetch("https://api.scraping-bot.io/scrape/data-scraper", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: auth },
body: JSON.stringify({
"scraper": "instagramPost",
"url": "https://example.com/public-page"
}),
});
const { responseId } = await queued.json();
let result;
do {
await new Promise((resolve) => setTimeout(resolve, 5000));
result = await fetch(
"https://api.scraping-bot.io/scrape/data-scraper-response?" +
new URLSearchParams({ responseId, scraper: "instagramPost" }),
{ headers: { Authorization: auth } },
).then((response) => response.json());
} while (result.status === "pending");Run this call in two minutesCreate an account, copy your API key, then use the example above.
Get your API keyRequest parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
scraper | string | — | One of the scraper names supported by this endpoint. |
url | string | — | Public page URL, including https://. |
Response example
Example of the JSON returned by the Instagram Posts scraper once the result is ready.
[
{
"url": "https://www.instagram.com/p/DebosTBBz39/",
"user_posted": "bsmart_tv",
"description": "🟡 La French Tech change de dimension\n\n🎙️💬 \"77% d'augmentation par rapport à l'année dernière : c'est une rentrée très dynamique.\" \n\n📺 @julie_huguet, directrice de @lafrenchtech, présente le changement de dimension de la mission qu'elle dirige au micro de @mfrmatt depuis l'…",
"hashtags": [
"#BIG2026",
"#big"
],
"num_comments": 1,
"date_posted": "2026-10-13T10:52:31.000Z",
"likes": 64,
"videos": [
"https://scontent-phl2-1.cdninstagram.com/o1/v/t2/f2/m86/AQMV231odcXOYYT0kweMeq2LW3XzAIIe2w0XKSVFBRYL4DLUr93D6fW1dKNLylBgpTb5kUZrWXTyesQ8SN0aEd406c8DaqX6wPsXg80.mp4?_nc_cat=107&_nc_sid=5e9851&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_ohc=IZZa8jhPR74Q7kNvwFFFVm3&efg=eyJ2ZW5jb2…"
],
"location": [
"Accor Arena"
],
"location_details": {
"pk": "214494063",
"name": "Accor Arena",
"lat": 48.838616526571,
"lng": 2.3786046445636,
"profile_pic_url": null,
"__typename": "XDTLocationDict"
},
"post_id": "4006975259411955197",
"shortcode": "DebosTBBz39",
"content_type": "Reel",
"pk": "4006975259411955197",
"content_id": "DebosTBBz39",
"thumbnail": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/844838833_18121564481056055_7702333286916408995_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_nc_cat=103&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=PuhGmUCbsjcQ7kNvwFfvyk1&_nc_oc…",
"product_type": "clips",
"followers": 39000,
"posts_count": 10000,
"profile_image_link": "https://scontent-phl2-1.cdninstagram.com/v/t51.2885-19/459444280_1203473874198971_5965770151504789936_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=108&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy40MDAuQzMifQ%3D%3D&_nc_ohc=QpSffntxwgEQ7kNvwGW67D4&_nc_oc=Adrj8…",
"is_verified": true,
"user_posted_id": "31727256054",
"post_content": [
{
"index": 0,
"type": "Video",
"url": "https://scontent-phl2-1.cdninstagram.com/o1/v/t2/f2/m86/AQMV231odcXOYYT0kweMeq2LW3XzAIIe2w0XKSVFBRYL4DLUr93D6fW1dKNLylBgpTb5kUZrWXTyesQ8SN0aEd406c8DaqX6wPsXg80.mp4?_nc_cat=107&_nc_sid=5e9851&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_ohc=IZZa8jhPR74Q7kNvwFFFVm3&efg=eyJ2ZW5jb2…",
"id": "4006975259411955197",
"alt_text": "Video by B SMART 4Change on October 13, 2026. May be an image of one or more people, magazine and text.",
"thumbnail": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/844838833_18121564481056055_7702333286916408995_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_nc_cat=103&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=PuhGmUCbsjcQ7kNvwFfvyk1&_nc_oc…"
}
],
"audio": null,
"profile_url": "https://www.instagram.com/bsmart_tv",
"videos_duration": [
{
"url": "https://scontent-phl2-1.cdninstagram.com/o1/v/t2/f2/m86/AQMV231odcXOYYT0kweMeq2LW3XzAIIe2w0XKSVFBRYL4DLUr93D6fW1dKNLylBgpTb5kUZrWXTyesQ8SN0aEd406c8DaqX6wPsXg80.mp4?_nc_cat=107&_nc_sid=5e9851&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_ohc=IZZa8jhPR74Q7kNvwFFFVm3&efg=eyJ2ZW5jb2…",
"video_duration": 88.896004
}
],
"images": [],
"alt_text": "Video by B SMART 4Change on October 13, 2026. May be an image of one or more people, magazine and text.",
"photos_number": 0,
"audio_url": null,
"thumbnail_array": [
"https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/844838833_18121564481056055_7702333286916408995_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_nc_cat=103&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=PuhGmUCbsjcQ7kNvwFfvyk1&_nc_oc…"
],
"timestamp": "2026-10-15T08:09:41.489Z",
"input": {
"url": "https://www.instagram.com/p/DebosTBBz39/",
"country": ""
}
}
]Credits, failures and limits
| Case | Credits | Notes |
|---|---|---|
| Launch a scrape | 30 credits | Consumed when a result is ready. |
| Result not ready | Not consumed | The API returns a pending status; retry after a few seconds. |
| Failed, blocked or timed-out scrape | Refunded | Credits are returned for an unsuccessful request. |
Instagram Posts API or Raw HTML scraper?
| Instagram Posts API | Raw HTML scraper | |
|---|---|---|
| Endpoint | /scrape/data-scraper | /scrape/raw-html |
| Returns | Posts, 12 by default JSON | Rendered page HTML |
| Flow | Asynchronous: POST then GET | One synchronous request |
| Starting cost | 30 credits | 1 credit |
| Use it when | You need parsed Instagram Posts data | You need your own extraction logic |
Questions about the Instagram Posts API
- Which Instagram Posts scraper names can I use?
- This page supports instagramPost. Send the exact name in the scraper field.
- Why does the API return a responseId?
- Social Media requests are asynchronous. The responseId lets you retrieve the result without holding the initial request open.
- What if the result is still pending?
- Wait a few seconds and repeat the GET request. A pending response does not consume credits.
- Does this scraper access private account data?
- No. It is intended for public pages and does not sign in to a social media account to access private data.
Source: ScrapingBot API documentation.
Other social media scrapers
Browse the Social Media category for the complete list of guides. Read How to scrape Instagram.
Trusted by developers and social media teams.
Customer reviews apply to ScrapingBot's service overall, not specifically to this scraper.
Start scraping Instagram Posts today
500 free credits every month. No card required, cancel anytime.
