Instagram post or reel details API

Caption, counts, media, owner, tagged users, co-authors, sound and carousel children of one post or reel.

GETapi.socialscrape.io/v1/instagram/post
Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits
Status
Betashape may still gain fields

For videos stats.views is the view count of the post's embed page (extra.views_source = embed_views), which differs from the play count of the reels tab.

You send one of url or id.

Request

Send your key in the x-api-key header.

curl
curl -G "https://api.socialscrape.io/v1/instagram/post" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode 'url=https://www.instagram.com/reel/DfF3eqGSKKc/'
Python
import os
import requests

params = {
    "url": "https://www.instagram.com/reel/DfF3eqGSKKc/",
}
res = requests.get(
    "https://api.socialscrape.io/v1/instagram/post",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
    timeout=60,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/instagram/post");
url.search = new URLSearchParams({
  url: "https://www.instagram.com/reel/DfF3eqGSKKc/",
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape Instagram post or reel details",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/instagram/post",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "https://www.instagram.com/reel/DfF3eqGSKKc/"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Parameters

NameTypeRequiredDescription
urlurlone ofPost or reel URL (/p/..., /reel/..., /tv/...).
idstringone ofShortcode or numeric media id. Also accepted as shortcode, media_id.
include_play_countbooleanSet false to skip the extra fetch for the video view count and answer faster.
regionstringTwo-letter country code (ISO 3166-1) for results that vary by country. Also accepted as country, geo.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are public data, not yours.

Status 200Sample
{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_c79d38f5e72c10e56a98d808",
  "data": {
    "object": "post",
    "platform": "instagram",
    "id": "DfF3eqGSKKc",
    "url": "https://www.instagram.com/reel/DfF3eqGSKKc/",
    "type": "reel",
    "author": {
      "id": "673882723",
      "handle": "nasajohnson",
      "name": "NASA’s Johnson Space Center",
      "url": "https://www.instagram.com/nasajohnson/",
      "avatar_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.2885-19/11421977_902607023152688_677352411_a.jpg?_nc_cat=1&ccb=7-5&_nc_sid=f7ccc5&efg=eyJ2ZW5jb2RlX3RhZyI6InBy...",
      "verified": true
    },
    "title": null,
    "text": "More power loading. 🔋\n\nToday, NASA astronaut Anil Menon and CSA (Canadian Space Agency) astronaut Joshua Kutryk conducted a spacewalk to install the 7th of ...",
    "published_at": "2026-10-29T20:35:35Z",
    "duration_seconds": 41.376,
    "language": null,
    "hashtags": [],
    "mentions": [],
    "stats": {
      "views": 90356,
      "likes": 6271,
      "comments": 64,
      "shares": null,
      "saves": null,
      "dislikes": null
    },
    "media": {
      "thumbnail_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.82787-15/865204930_18640535563026724_3353517023594775034_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_nc_cat=1&ccb=7-5&...",
      "video_url": "https://scontent-ord5-2.cdninstagram.com/o1/v/t2/f2/m86/AQMgO65IBSO4D1Fg1v8qWRLjCR7N-LaX4H_sPQeyoyjFQE149o094RWHdy1qn9GBy1VHAND2Io7UoTGpUBgIXE-YSbD4UnaCrO694...",
      "audio_url": null,
      "image_urls": null,
      "width": 1080,
      "height": 1920
    },
    "song": {
      "id": "29430201353240150",
      "title": "Original audio",
      "artist": "nasajohnson",
      "url": "https://www.instagram.com/reels/audio/29430201353240150/"
    },
    "location": null,
    "is_pinned": null,
    "is_sponsored": null,
    "extra": {
      "accessibility_caption": "Video by NASA’s Johnson Space Center on October 29, 2026. May be an image of poster, magazine and text.",
      "coauthors": [
        "iss",
        "nasa"
      ],
      "media_id": "4018862241843028636",
      "owner_followers": 1578779,
      "product_type": "clips",
      "published_from": "taken_at"
    }
  },
  "cursor": null,
  "has_more": null
}

Fields

One Post in data.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"post"
platformPlatformyes
idstringyes
urlstring or null
type"video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown"
authorAuthor or null
titlestring or null
textstring or null
published_atstring (ISO 8601 date-time) or null
duration_secondsnumber or null
languagestring or null
hashtagsstring[] or null
mentionsstring[] or null
statsStats
Show the other 6 fields
FieldTypeAlwaysNotes
mediaMedia
songSongRef or null
locationPlace or null
is_pinnedboolean or null
is_sponsoredboolean or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

Is there an SDK call for it?

The preview Python client has client.instagram.post(...) and the TypeScript client client.instagram.post(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.

Can an AI agent call it?

Yes. The MCP server reaches every built endpoint, with the same prices.

Build on social data early.

Developers and agent builders get the first keys.

Get early access