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/successプロバイダー原価
- Success rate
- 100%Last 30 days · 1,511 calls
- Latency p50
- 1.9 sp95 3.2 s
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.instagram-get-post-comments-v1?code=DX66rPHpvn_&sortOrder=newestPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
code | 文字列 | 必須 | The unique shortcode for the Instagram post. | DX66rPHpvn_ |
minId | 文字列 | 任意 | Pagination cursor returned as next_min_id from the previous response. | |
sortOrder | 文字列 | 任意 | Sort order for the comments. Available Values: - `popular`: Popular - `newest`: Newest One of: popular, newest. | newest |
- クエリパラメータ
code文字列必須The unique shortcode for the Instagram post.
例:
DX66rPHpvn_minId文字列任意Pagination cursor returned as next_min_id from the previous response.
sortOrder文字列任意Sort order for the comments. Available Values: - `popular`: Popular - `newest`: Newest One of: popular, newest.
例:
newest
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.01476/success です。サービス料を含みます。