JustSERPDocs
Instagram

Instagram Comments

The comments of a public Instagram post, read as a visitor with no account and answered as the document: `post`, `comments` and `pagination`.

GET
/v1/instagram/comments

The comments of a public Instagram post, read as a visitor with no account and answered as the document: post, comments and pagination. The first page is the 15 comments the post's page carries. pagination is absent on the last page. replies (a reply count) and user.is_verified appear only when set. An unknown post is 404 profile_not_found. 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, or the address of a post, reel or video (as for instagram_post).

next_page_token?string

The previous answer's pagination.next_page_token (base64 JSON). A token this API did not give, or one of another post, is 400.

Response Body

The comments, 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?

As instagram_post's post, without preview_comments.

comments?array<>
pagination?

Absent on the last page.

Example Request
curl -X GET 'https://api.justserp.com/v1/instagram/comments?post_id=DbTmwYKFkZo'
Example Response
{  "search_metadata": {    "id": "string",    "status": "Success",    "created_at": "string",    "request_url": "string",    "html_url": "string"  },  "search_parameters": {},  "search_information": {    "total_results": 0  },  "post": {    "id": "string",    "media_id": "string",    "permalink": "string",    "type": "string",    "caption": "string",    "likes": 0,    "comments": 0  },  "comments": [    {      "position": 0,      "id": "string",      "text": "string",      "iso_date": "string",      "likes": 0,      "user": {        "id": "string",        "username": "string",        "avatar": "string",        "is_verified": true      },      "replies": 0    }  ],  "pagination": {    "next_page_token": "string"  }}