Instagram

Post Comments

Fetch post POPULAR (only ~ 15) or RECENT comments. Popular comments only can be fetched with empty cursor, no more are shown. Recent comments can be paginated over using the cursor.

API Pricing (per request): 2 units

Try the API

get/instagram/post/comments

Request

  • Base URL: https://ensembledata.com/apis
  • URL: https://ensembledata.com/apis/instagram/post/comments
  • Auth: none declared

Query parameters

media_idinteger required

Media ID can be found using the other APIs.

cursorstring required

Parameter to manually handle pagination. Each response contains a nextCursor which can be used to retrieve the next page of results by sending it as the next cursor. If the nextCursor is not present in the response, it means that there are no more results to retrieve.

sorting'popular' | 'recent' required

An enumeration.

Fetch TOP comments (only 15 allowed) OR RECENT (start from most recent and iterate)

tokenstring required

Private token assigned to each client to access the APIs.

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.