Instagram post comments by shortcode
justoneapi.x.instagram-get-post-comments-v1Retrieves top-level comments for an Instagram post by shortcode, with cursor pagination and popular or newest sorting.
- Price
- $0.01476/successZum Anbieterpreis
- Success rate
- 100 %Last 30 days · 1.511 calls
- Latency p50
- 1.9 sp95 3.2 s
- Last verified
- 28.07.2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.instagram-get-post-comments-v1?code=DX66rPHpvn_&sortOrder=newestPreviewTry onlineDemnächstProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameter
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Abfrageparameter | ||||
code | Zeichenkette | Erforderlich | The unique shortcode for the Instagram post. | DX66rPHpvn_ |
minId | Zeichenkette | Optional | Pagination cursor returned as next_min_id from the previous response. | |
sortOrder | Zeichenkette | Optional | Sort order for the comments. Available Values: - `popular`: Popular - `newest`: Newest One of: popular, newest. | newest |
- Abfrageparameter
codeZeichenketteErforderlichThe unique shortcode for the Instagram post.
Beispiel:
DX66rPHpvn_minIdZeichenketteOptionalPagination cursor returned as next_min_id from the previous response.
sortOrderZeichenketteOptionalSort order for the comments. Available Values: - `popular`: Popular - `newest`: Newest One of: popular, newest.
Beispiel:
newest
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.instagram-get-post-comments-v1?code=DX66rPHpvn_&sortOrder=newest' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.instagram-get-post-comments-v1?code=DX66rPHpvn_&sortOrder=newest",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.instagram-get-post-comments-v1?code=DX66rPHpvn_&sortOrder=newest", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.01476/success einschließlich Servicegebühr abgerechnet.