JustSERPDocs
Instagram

Instagram Post

One public Instagram post, reel or carousel, read as a visitor with no account and answered as the document with `post`: counts, time, every carousel item with its pictures and video files, tags, topics and the page's first 15 comments (`preview_comments`; `has_more_comments` says there are more, and `instagram_comments` pages them).

GET
/v1/instagram/post

One public Instagram post, reel or carousel, read as a visitor with no account and answered as the document with post: counts, time, every carousel item with its pictures and video files, tags, topics and the page's first 15 comments (preview_comments; has_more_comments says there are more, and instagram_comments pages them). link is the video file for a video or reel, else the largest picture. likes is null when the author hides counts. Addresses are signed and expire: search again for fresh ones. An unknown post is 404 profile_not_found (after two sightings). zero_retention is not handled.

Authorization

headerX-API-Key<token>

Your API key.

Query Parameters

cancel_token?string

A name you make up for this request (a UUID is fine), so you can later GET /v1/cancel with it. Only you know it, so only you can cancel. Use a new one for every request, retries included: a cancelled token stays cancelled for a few minutes.

Length1 <= length <= 128
post_id*string

The shortcode (DavpizrjugI), or the address of a post, reel or video (/p/, /reel/, /tv/, with or without the user in front). Anything else is 400.

Response Body

The post, as the document. When the page could not be parsed, the usual envelope.

application/json
  1. response

The first keys of a document-form answer. Unlike DocumentHead there is no search_information unless the engine has one (there is none for the AI engines, Events, Events Details, Facebook, Tripadvisor Place, Trending Now and the Apple engines' places).

search_metadata*
search_parameters*

The parameters the search ran with, defaults filled in; engine is the engine's name.

search_information?
post?
Example Request
curl -X GET 'https://api.justserp.com/v1/instagram/post?post_id=DavpizrjugI'
Example Response
{  "search_metadata": {    "id": "string",    "status": "Success",    "created_at": "string",    "request_url": "string",    "html_url": "string"  },  "search_parameters": {},  "search_information": {},  "post": {    "id": "string",    "media_id": "string",    "permalink": "string",    "type": "image",    "link": "string",    "width": 0,    "height": 0,    "caption": "string",    "has_edited_caption": true,    "accessibility_caption": "string",    "likes": 0,    "comments": 0,    "iso_date": "string",    "user": {      "id": "string",      "username": "string",      "name": "string",      "avatar": "string",      "is_verified": true    },    "topics": [      {        "id": "string",        "name": "string"      }    ],    "tagged_users": [      {        "id": "string",        "username": "string",        "name": "string",        "avatar": "string",        "is_verified": true,        "x": 0,        "y": 0      }    ],    "carousel_items": [      {        "position": 0,        "id": "string",        "media_id": "string",        "permalink": "string",        "type": "string",        "link": "string",        "width": 0,        "height": 0,        "duration": 0,        "has_audio": true,        "accessibility_caption": "string",        "image_versions": [          {            "url": "string",            "width": 0,            "height": 0          }        ],        "video_versions": [          {            "url": "string",            "type": 0          }        ],        "thumbnail": "string"      }    ],    "image_versions": [      {        "url": "string",        "width": 0,        "height": 0      }    ],    "video_versions": [      {        "url": "string",        "type": 0      }    ],    "thumbnail": "string",    "preview_comments": [      {        "position": 0,        "id": "string",        "text": "string",        "iso_date": "string",        "likes": 0,        "user": {          "id": "string",          "username": "string",          "avatar": "string"        }      }    ],    "has_more_comments": true  }}