codestringzorunlu
The unique shortcode for the Instagram post.
https://api.sandbase.ai/v1/api/instagram/post-commentsGet top-level comments for an Instagram post by shortcode, with cursor pagination and popular or newest sorting. Use it to review audience feedback or analyze discussion around a known post.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
Returns top-level comments for an Instagram post, plus the post caption and the total comment count. It needs the post shortcode as code. You can sort by popular or newest.
popular to find the comments that drew the most likes.curl -X POST "https://api.sandbase.ai/v1/api/instagram/post-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"code": "DfAOoAXRg3L"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | The unique shortcode for the Instagram post. |
minId | string | No | Pagination cursor returned as next_min_id from the previous response. |
sortOrder | string | No | Sort order for the comments. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"_rid": "1318fda1bfbe9",
"ai_topic_filters": [],
"can_view_more_preview_comments": false,
"caption": {
"bit_flags": 0,
"content_type": "comment",
"created_at": 1793116772,
"created_at_for_fb_app": 1793116772,
"created_at_utc": 1793116772,
"did_report_as_spam": false,
"is_covered": false,
"is_created_by_media_owner": true,
"is_ranked_comment": true,
"media_id": "4017275189435174347",
"pk": "18115995458110011",
"private_reply_status": 0
},
"caption_is_edited": false,
"comment_count": 14729,
"comment_cover_pos": "bottom",
"comment_filter_param": "no_filter",
"comment_likes_enabled": true,
"comments": [
{
"bit_flags": 0,
"child_comment_count": 0,
"comment_index": 0,
"comment_like_count": 5,
"content_type": "comment",
"created_at": 1793544285,
"created_at_for_fb_app": 1793544285,
"created_at_utc": 1793544285,
"did_report_as_spam": false,
"has_disliked_comment": false,
"has_liked_comment": false,
"inline_composer_display_condition": "never"
}
],
"fb_comments": [],
"filter_options": []
}
| Field | Meaning |
|---|---|
comments[] | List of top-level comments on the post. |
comments[].pk | ID of the comment, as a string. |
comments[].text | Text of the comment, including emoji. |
comments[].created_at_utc | Time the comment was posted, as a Unix timestamp. |
comments[].comment_like_count | Number of likes on the comment. |
comments[].child_comment_count | Number of replies to the comment. 0 means no replies. |
comments[].user.id / comments[].user.full_name | ID and display name of the person who wrote the comment. |
comments[].user.is_verified | Whether the commenter has a verified account. |
comment_count | Total number of comments on the post. |
caption.text | Caption of the post. The text can be cut short. |
next_min_id | Cursor for the next page. Pass it as minId in the next request. |
/p/ or /reel/, for example DfAOoAXRg3L.next_min_id value from the response as minId. Keep the same sortOrder.next_min_id is a JSON string. Pass it back as is.child_comment_count above 0, use Instagram Comment Replies.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/post-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "DfAOoAXRg3L",
"sortOrder": "newest"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
codestringzorunluThe unique shortcode for the Instagram post.
minIdstringPagination cursor returned as next_min_id from the previous response.
sortOrderstringSort order for the comments.
Varsayılan: "newest"
Olası değerler: popular, newest
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Instagram | $0.014286 çağrı başına | JSON |
Instagram | Kullanım başına $0.0011'den itibaren | JSON |
Instagram | Kullanım başına $0.001'den itibaren | JSON |
Instagram | Kullanım başına $0.0011'den itibaren | JSON |
Instagram | Kullanım başına $0.0012'den itibaren | JSON |
Instagram | Kullanım başına $0.0011'den itibaren | JSON |
Kılavuzlar:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/instagram/post-comments adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.014286, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: code (string). İsteğe bağlı: minId (string) ve sortOrder (popular, newest arasından biri). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Instagram Post Comment List, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Instagram API erişimi için ayrıca başvuru yapmanız gerekmez.