Comments on one of your Instagram posts
instagram.instagram.post.commentsList the comments on one of your Instagram posts
- Price
- freeAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 1 777 calls
- Latency p50
- 165 msp95 481 ms
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/instagram.instagram.post.comments?limit=5&fields=id%2Ctext%2Cusername%2Ctimestamp%2Clike_countPreviewTry onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
reads comments on YOUR OWN media only — instagram_basic does not open other accounts' comment threads (use the scraped any_account route for those). Replying needs instagram_manage_comments, which treg does not request
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de chemin | ||||
ig_media_id | chaîne | Obligatoire | media id from instagram.user.posts | 17900000000000000 |
| Paramètres de requête | ||||
limit | entier | Facultatif | 25 | |
fields | chaîne | Facultatif | id,text,username,timestamp,like_count,replies{id,text,username,timestamp} | |
- Paramètres de chemin
ig_media_idchaîneObligatoiremedia id from instagram.user.posts
Exemple :
17900000000000000- Paramètres de requête
limitentierFacultatifExemple :
25fieldschaîneFacultatifExemple :
id,text,username,timestamp,like_count,replies{id,text,username,timestamp}
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/instagram.instagram.post.comments?limit=5&fields=id%2Ctext%2Cusername%2Ctimestamp%2Clike_count' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/instagram.instagram.post.comments?limit=5&fields=id%2Ctext%2Cusername%2Ctimestamp%2Clike_count",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/instagram.instagram.post.comments?limit=5&fields=id%2Ctext%2Cusername%2Ctimestamp%2Clike_count", {
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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à free, frais de service inclus.