Scraper APIInstagram
instagram.post
One public Instagram post or reel: caption, hashtags, like and comment counts, publication time, owner, and its photos and videos.
- Id
instagram.post- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/instagram.post/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
url | string | The post's or reel's address, e.g. https://www.instagram.com/p/C0xFHGOrBN7/ or https://www.instagram.com/reel/<shortcode>/.Limit: at most 2048 characters. |
shortcode | string | The post's short code instead: the part of its address after /p/ or /reel/.Limit: at most 40 characters. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
shortcode | string | The post's short code: the part of its address after /p/ or /reel/. |
url | string | The post's address. |
post_id | string or null | Instagram's numeric id of the post. |
type | "photo" | "video" | "carousel" | photo, video (a reel or a video post) or carousel (several photos or videos). |
is_reel | boolean or null | True when the post is a reel. |
caption | string or null | The caption, as written; null when the post has none. |
hashtags | array of string | The hashtags written in the caption, without the #, in order. |
mentions | array of string | The handles written in the caption, without the @, in order. |
taken_at | string (date-time) or null | When the post was published, in UTC. |
like_count | integer or null | Number of likes; null when the account hides like counts on this post. |
comment_count | integer or null | Number of comments. |
likes_hidden | boolean or null | True when the account hides like and view counts on this post. |
owner_username | string or null | The handle of the account that published the post. |
owner_full_name | string or null | That account's display name. |
owner_id | string or null | Instagram's numeric id of that account. |
owner_verified | boolean or null | True when that account carries the verified badge. |
coauthors | array of string | The handles of the accounts the post is shared with as co-authors. |
location_name | string or null | The place the post is tagged with, when it is tagged with one. |
audio_title | string or null | The title of a reel's audio, e.g. "Original audio" or a song's name. |
media | array of object | The post's photos and videos, in order: one for a photo or a video, several for a carousel. |
type (in media[]) | "photo" | "video" | photo or video. |
image_url (in media[]) | string or null | The photo, or the video's cover, at its largest size. A signed address that stops working after some days. |
video_url (in media[]) | string or null | The video file's address, for a video. A signed address that stops working after some days. |
width (in media[]) | integer or null | Width in pixels of the original. |
height (in media[]) | integer or null | Height in pixels of the original. |
alt_text (in media[]) | string or null | Instagram's own description of the image for screen readers, when it gives one. |
fetched_at | string (date-time) | When the post's page was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/instagram.post/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.instagram.com/p/Df5ASbnCINp/"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("instagram.post", {
"url": "https://www.instagram.com/p/Df5ASbnCINp/",
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("instagram.post", {
url: "https://www.instagram.com/p/Df5ASbnCINp/",
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "instagram.post", map[string]any{"url": "https://www.instagram.com/p/Df5ASbnCINp/"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("instagram.post", Map.of("url", "https://www.instagram.com/p/Df5ASbnCINp/"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run instagram.post --input url=https://www.instagram.com/p/Df5ASbnCINp/Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"url": "https://www.instagram.com/p/Df5ASbnCINp/"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "instagram.post",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"url": "https://www.instagram.com/p/Df5ASbnCINp/"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"shortcode": "Df5ASbnCINp",
"url": "https://www.instagram.com/p/Df5ASbnCINp/",
"post_id": "4033256207883469673",
"type": "carousel",
"is_reel": false,
"caption": "Have you ever seen a bumblebee nest taking shape? In this image from our Pictures of the Year 2026, Nat Geo photographer Anand Varma photographed three common eastern bumblebees crawling around irregular beeswax cells, which colonies build … [truncated]",
"hashtags": [],
"mentions": [],
"taken_at": "2026-11-18T17:07:08Z",
"like_count": 4909,
"comment_count": 25,
"likes_hidden": false,
"owner_username": "natgeo",
"owner_full_name": "National Geographic",
"owner_id": "787132",
"owner_verified": true,
"coauthors": [],
"location_name": null,
"audio_title": null,
"media": [
{
"type": "photo",
"image_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/917538203_18720622468019133_1319102811738277293_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=NDAzMzI1NjA3ODA5NjU5MDA5MQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMjA0OC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=qDFSyRYonsgQ7kNvwEqhHQb&_nc_oc=AdqnblPhiJyfDuooCZ6WcaI3-S2HvVVv2gR1FH2R2dApMvjgSlRRsCIQRhzKk_zS33Q&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=hv9y1U_g5fO44TXxh59qwA&_nc_ss=79689&_nc_ct=RQosPBUIFQIlBAAAAA&oh=00_AQS1IBE6eQ1bZNxoNxZGB0xzUflpgGHlwfBbOJZTK6GVJw&oe=6B03D754",
"video_url": null,
"width": 2048,
"height": 1488,
"alt_text": "Photo by National Geographic on November 18, 2026. May be an image of goldfish, paper weight, display case and text."
},
{
"type": "photo",
"image_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/910548122_18720622483019133_5794070247493813873_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=NDAzMzI1NjA4MjcwMTk0NzkxNw%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuNDA5Ni5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=DbS2X0e-5w0Q7kNvwHmTGXC&_nc_oc=AdrhHFlCjzeefHHXXqXvaaPo8SeUXbBKEjbKH4RwVjH-GD18NUcwjGWAg-a5zZKUX64&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=hv9y1U_g5fO44TXxh59qwA&_nc_ss=79689&_nc_ct=RQosPBUIFQIlBAAAAA&oh=00_AQRPpRFw_XPCFXXzVBDBj_VgfG0GHMfAIWV0VJz7NAO55g&oe=6B03ABB3",
"video_url": null,
"width": 4096,
"height": 2977,
"alt_text": "Photo by National Geographic on November 18, 2026. May be a graphic of fish, poster and text."
}
],
"fetched_at": "2026-11-19T18:07:40.833590Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
caption: 663 characters, the first 239 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Instagram scrapers are in their own section there.