Post Comments
A post's comments with their likes, about 22 a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringThe post's link.
id?stringThe post's media id, instead of url.
cursor?stringnextCursor of the previous page.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.instagram.postComments({ url: "https://www.instagram.com/p/Df147tCiAyB/" });Example Response
{ "data": [ { "id": "18037614338911355", "postId": "4032379434794749057", "parentId": null, "text": "Last is fake", "createdAt": "2026-11-25T05:56:31.000Z", "author": { "id": "71555241893", "username": "obicnjak", "displayName": null, "avatarUrl": "https://scontent-bos5-1.cdninstagram.com/v/t51.82787-19/881132460_17944070352385894_2663051968055980428_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=105&_nc_map=urlgen_bucketless&ig_cache_key=GKwDhTRmty1zCcA-AIyxYc6nD-UkbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=PtoOTAN_xhcQ7kNvwEzS0CM&_nc_oc=AdqReWsYcpNYpNz626ZbboxRChznFP7vOdtoi_KfATKGBZ_9LyFdk5akAursVoAUQiU&_nc_zt=24&_nc_ht=scontent-bos5-1.cdninstagram.com&_nc_gid=9EQQH7JGj-ZSEEegUjH1tA&_nc_ss=79b8c&_nc_ct=RQosPBUCFQIAAAA&oh=00_AQRZtaHtz9JrJXUO4TeqhbfqwKbHCofVjqVxfvayLKEyuA&oe=6B0CD3B4", "verified": false, "url": "https://www.instagram.com/obicnjak/" }, "likes": 0, "replies": null, "ext": { "covered": false } }, { "id": "18151791271601993", "postId": "4032379434794749057", "parentId": null, "text": "great shot", "createdAt": "2026-11-25T01:14:36.000Z", "author": { "id": "15884616547", "username": "tomomi85352", "displayName": null, "avatarUrl": "https://scontent-bos5-1.cdninstagram.com/v/t51.82787-19/927548956_18155067538528548_6222448229785698867_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=104&_nc_map=urlgen_bucketless&ig_cache_key=GBxGSTck2YEP8H9AADOConGyk1pWbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy41MTIuQzMifQ%3D%3D&_nc_ohc=noy2pinQ6HkQ7kNvwEKJZ7R&_nc_oc=AdpCifkzH8Fq8ILi77DO380kGCYsPVqUc1edyvouDdHSebbRjhpnk-kMVVZGGFTyOFU&_nc_zt=24&_nc_ht=scontent-bos5-1.cdninstagram.com&_nc_gid=9EQQH7JGj-ZSEEegUjH1tA&_nc_ss=79b8c&_nc_ct=RQosPBUCFQIAAAA&oh=00_AQRVv_eHw26IypHTxKpksQwj6lhN49uIxqtc5TpoGGHHaw&oe=6B0CBC5A", "verified": false, "url": "https://www.instagram.com/tomomi85352/" }, "likes": 0, "replies": null, "ext": { "covered": false } } ], "pagination": { "nextCursor": "{\"is_server_cursor_inverse\":true,\"server_cursor\":\"AQHTCsl8o8CuPSC7hHswJMHuNHcJm0EGZEDX1sdPjG0v8BJR_h5LjaM9aWZ-_BCZiMKismuC6pJCftMX-2tPUQvOQA\"}", "hasMore": true }}