Docs menu

Instagram post or reel details

Beta GET /v1/instagram/post

GET /v1/instagram/post

Caption, counts, media, owner, tagged users, co-authors, sound and carousel children of one post or reel. 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.

  • Cost: 1 credit
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • Cache: Results are kept up to 30 days; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLone ofPost or reel URL (/p/..., /reel/..., /tv/...). Accepted hosts: instagram.com, instagr.am.
idstringone ofShortcode or numeric media id. Also accepted as shortcode, media_id.
include_play_countbooleannoSet false to skip the extra fetch for the video view count and answer faster. Default true.

Send at least one of url, id. If you send several, the first listed is used and the rest are ignored.

Every request also accepts:

  • region: two-letter country code for results that vary by country. Changing it restarts the cursor chain.
  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).

Example request#

Set your key in the environment first (see Authentication).

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,
)
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": {}
}

Example response#

This is a sample from a recorded response, lists and long text are shortened. Status 200.

{
  "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=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xNTAuQzMifQ%3D%3D&_nc_ohc=4BYI5YfrJ3MQ7kNvwFFve1G&_nc_oc=Adr183I...",
      "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 8 new roll out solar arrays. The final new array is slated to be installed during th...",
    "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&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc...",
      "video_url": "https://scontent-ord5-2.cdninstagram.com/o1/v/t2/f2/m86/AQMgO65IBSO4D1Fg1v8qWRLjCR7N-LaX4H_sPQeyoyjFQE149o094RWHdy1qn9GBy1VHAND2Io7UoTGpUBgIXE-YSbD4UnaCrO694xk.mp4?_nc_cat=102&_nc_sid=5e9851&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_ohc=4...",
      "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",
      "tagged_users": [
        "nasa",
        "iss",
        "astro_anil"
      ],
      "topics": [
        "spacewalk",
        "iss",
        "astronaut"
      ],
      "views_source": "embed_views"
    }
  },
  "cursor": null,
  "has_more": null
}

Response#

A Post object in data.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe platform says this profile, post or item does not exist.

Every request can also fail with the account and platform errors listed on the Errors page.

Example error:

{
  "ok": false,
  "error": {
    "code": "not_found",
    "message": "The platform says this profile, post or item does not exist.",
    "retryable": false
  },
  "credits_charged": 0,
  "request_id": "req_ad07f2ef1c7bd8ece6d4c1c3"
}