Comments on one of your Instagram posts
instagram.instagram.post.commentsList the comments on one of your Instagram posts
- Price
- freeプロバイダー原価
- Success rate
- 100%Last 30 days · 1,777 calls
- Latency p50
- 165 msp95 481 ms
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/instagram.instagram.post.comments?limit=5&fields=id%2Ctext%2Cusername%2Ctimestamp%2Clike_countPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
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
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
ig_media_id | 文字列 | 必須 | media id from instagram.user.posts | 17900000000000000 |
| クエリパラメータ | ||||
limit | 整数 | 任意 | 25 | |
fields | 文字列 | 任意 | id,text,username,timestamp,like_count,replies{id,text,username,timestamp} | |
- パスパラメータ
ig_media_id文字列必須media id from instagram.user.posts
例:
17900000000000000- クエリパラメータ
limit整数任意例:
25fields文字列任意例:
id,text,username,timestamp,like_count,replies{id,text,username,timestamp}
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。