Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Instagram General Search (V2)

เอกสาร API
https://api.sandbase.ai/v1/api/instagram/v2/general-search

Returns Instagram search results matching a specified keyword, including media items, user profiles, and engagement statistics.

ราคา
$0.002USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 1 ไม่บังคับ

Playground

อินพุต
Search keyword
Pagination token from previous response
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 15.9 KB · 364 บรรทัด
[
  {
    "data": {
      "data": {
        "count": 8,
        "items": [
          {
            "ai_interactive_embodiment_attachment_style_info": null,
            "ai_label_info": null,
            "are_remixes_crosspostable": true,
            "attribution": null,
            "audience": null,
            "audio": null,
            "autodub_status": null,
            "basel_encoding_timeout": null,
            "boost_unavailable_identifier": null,
            "boost_unavailable_reason": null,
            "boosted_by_sponsor": null,
            "boosted_post_id": null,
            "boosted_status": null,
            "branded_content_ads_boost_post_tokens": null,
            "byoa_langs": null,
            "can_modify_carousel": null,
            "can_reply": null,
            "can_reshare": true,
            "can_save": true,
            "caption": {
              "content_type": "comment",
              "created_at": 1764077059,
              "created_at_utc": 1764077059,
              "did_report_as_spam": false,
              "fb_mentioned_users": null,
              "hashtags": [
                "#catsoftheday",
                "#cat",
                "… 2 more items in the full response"
              ],
              "id": "3773673916037486064",
              "is_covered": false,
              "is_ranked_comment": false,
              "mentions": [],
              "private_reply_status": 0,
              "share_enabled": false,
              "status": "Active",
              "text": "#catsoftheday #cat #cutecats #catlovers❤️",
              "text_translation": null,
              "type": 1,
              "user": {
                "fbid_v2": "17841447606552454",
                "follower_count": 240938,
                "full_name": "𝐂𝐀𝐓𝐘 𝐂𝐑𝐔𝐒𝐇",
                "has_onboarded_to_text_post_app": null,
                "id": "47539634885",
                "is_active": null,
                "is_private": false,
                "is_verified": false,
                "profile_pic_id": "3737640702256854188",
                "profile_pic_url": "https://scontent-iad3-1.cdninstagram.com/v/t51.82787-19/562433378_18068299718586886_5033416524834714439_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-iad3-1.cdninstagram.com&_nc_cat=110&_nc_oc=Q6cZ2gEu9_I__YWMu5pKJmxnWjE5zle3Q4EUtZ0…",
                "social_context": null,
                "type": "XDTUserDict",
                "username": "catycrushdaily"
              }
            },
            "caption_is_edited": false,
            "carousel_last_edited_at": null,
            "carousel_media": null,
            "carousel_media_count": null,
            "carousel_media_pending_post_count": null,
            "clips_attribution_info": null,
            "clips_captions": null,
            "clips_captions_translations_urls": null,
            "clips_metadata": {
              "achievements_info": {
                "num_earned_achievements": null,
                "show_achievements": false
              },
              "additional_audio_info": {
                "additional_audio_username": null,
                "audio_reattribution_info": {
                  "should_allow_restore": false
                }
              },
              "audio_canonical_id": "18438577903101394",
              "audio_ranking_info": {
                "best_audio_cluster_id": "759395327171495"
              },
              "audio_type": "original_sounds",
              "branded_content_tag_info": {
                "can_add_tag": false
              },
              "clips_creation_entry_point": "clips",
              "content_appreciation_info": {
                "enabled": false,
                "entry_point_container": null
              },
              "contextual_highlight_info": null,
              "disable_use_in_clips_client_cache": false,
              "is_fan_club_promo_video": false,
              "is_public_chat_welcome_video": false,
              "is_shared_to_fb": false,
              "mashup_info": {
                "can_toggle_mashups_allowed": false,
                "has_been_mashed_up": true,
                "has_nonmimicable_additional_audio": false,
                "is_creator_requesting_mashup": false,
                "is_light_weight_check": true,
                "is_pivot_page_available": true,
                "mashup_type": null,
                "mashups_allowed": true,
                "non_privacy_filtered_mashups_media_count": 28,
                "original_media": null
              },
              "merchandising_pill_info": null,
              "music_info": null,
              "original_sound_info": {
                "allow_creator_to_rename": true,
                "audio_filter_infos": null,
                "audio_id": "25096617513312696",
                "audio_parts": [
                  "…"
                ],
                "audio_parts_by_filter": [
                  "…"
                ],
                "can_remix_be_shared_to_fb": true,
                "consumption_info": {
                  "is_bookmarked": false,
                  "is_trending_in_clips": false,
                  "should_mute_audio_reason": ""
                },
                "duration_in_ms": 10197,
                "hide_remixing": false,
                "ig_artist": {
                  "full_name": "𝐂𝐀𝐓𝐘 𝐂𝐑𝐔𝐒𝐇",
                  "has_onboarded_to_text_post_app": null,
                  "id": "47539634885",
                  "is_private": false,
                  "is_verified": false,
                  "profile_pic_id": "3737640702256854188",
                  "profile_pic_url": "https://scontent-iad3-1.cdninstagram.com/v/t51.82787-19/562433378_18068299718586886_5033416524834714439_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-iad3-1.cdninstagram.com&_nc_cat=110&_nc_oc=Q6cZ2gEu9_I__YWMu5pKJmxnWjE5zle3Q4EUtZ0…",
                  "type": "XDTUserDict",
                  "username": "catycrushdaily"
                },
                "is_audio_automatically_attributed": true,
                "is_explicit": false,
                "is_original_audio_download_eligible": false,
                "is_reuse_disabled": false,
                "is_xpost_from_fb": false,
                "original_audio_subtype": "contains",
                "original_audio_title": "Original audio",
                "original_media_id": "3773673916037486064",
                "progressive_download_url": "https://scontent-iad6-1.cdninstagram.com/o1/v/t2/f2/m69/AQMMqW5R4OZq6MiLT9C0klxjeexpDXkZ1gQUwS13JcpwbDfY_rz_bUxv1SY9XnwnPVHujDiTIGf0hEYPbY-ygINX.mp4?strext=1&_nc_cat=106&_nc_sid=ef5aa3&_nc_ht=scontent-iad6-1.cdninstagram.com&_nc_ohc=8DUcMRnQ-9cQ7kNvwGj7DjP&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l…",
                "should_mute_audio": false,
                "time_created": 1764077060,
                "trend_rank": null
              },
              "originality_info": null,
              "professional_clips_upsell_type": 0,
              "reusable_text_attribute_string": null,
              "shopping_info": null,
              "show_achievements": false,
              "show_tips": null,
              "template_info": null
            },
            "clips_tab_pinned_user_ids": [],
            "clips_text": null,
            "clips_trial": null,
            "coauthor_producer_can_see_organic_insights": false,
            "coauthor_producers": [],
            "code": "DReyG7PklXw",
            "collection_media": null,
            "comment_count": 1150,
            "comment_inform_treatment": {
              "should_have_inform_treatment": false,
              "text": ""
            },
            "comment_likes_enabled": true,
            "comments_disabled": null,
            "…": "137 more fields in the full response"
          },
          {
            "ai_interactive_embodiment_attachment_style_info": null,
            "ai_label_info": null,
            "are_remixes_crosspostable": true,
            "attribution": null,
            "audience": null,
            "audio": null,
            "autodub_status": null,
            "basel_encoding_timeout": null,
            "boost_unavailable_identifier": null,
            "boost_unavailable_reason": null,
            "boosted_by_sponsor": null,
            "boosted_post_id": null,
            "boosted_status": null,
            "branded_content_ads_boost_post_tokens": null,
            "byoa_langs": null,
            "can_modify_carousel": null,
            "can_reply": null,
            "can_reshare": true,
            "can_save": true,
            "caption": {
              "content_type": "comment",
              "created_at": 1782015472,
              "created_at_utc": 1782015472,
              "did_report_as_spam": false,
              "fb_mentioned_users": null,
              "hashtags": [
                "#cat",
                "#寵物",
                "… 3 more items in the full response"
              ],
              "id": "3924152311394648361",
              "is_covered": false,
              "is_ranked_comment": false,
              "mentions": [],
              "private_reply_status": 0,
              "share_enabled": false,
              "status": "Active",
              "text": "曼赤肯弟弟(。・ω・。)\n\n寶寶一個月大囉~\n\n#cat #寵物 #幼貓 #曼赤肯 #catlife",
              "text_translation": "曼赤肯弟弟(。・ω・。) \n\nBaby is one month old ~\n\n #cat #寵物 #幼貓 #曼赤肯 #catlife",
              "type": 1,
              "user": {
                "fbid_v2": "17841461137123116",
                "follower_count": 124012,
                "full_name": "豆花貓舍",
                "has_onboarded_to_text_post_app": null,
                "id": "60984933904",
                "is_active": null,
                "is_private": false,
                "is_verified": true,
                "profile_pic_id": "3149703093822609138",
                "profile_pic_url": "https://scontent-iad3-1.cdninstagram.com/v/t51.2885-19/361111301_659108669117614_9036149317455377233_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-iad3-1.cdninstagram.com&_nc_cat=110&_nc_oc=Q6cZ2gEu9_I__YWMu5pKJmxnWjE5zle3Q4EUtZ0por…",
                "social_context": null,
                "type": "XDTUserDict",
                "username": "douhua._cat"
              }
            },
            "caption_is_edited": false,
            "carousel_last_edited_at": null,
            "carousel_media": null,
            "carousel_media_count": null,
            "carousel_media_pending_post_count": null,
            "clips_attribution_info": null,
            "clips_captions": null,
            "clips_captions_translations_urls": null,
            "clips_metadata": {
              "achievements_info": {
                "num_earned_achievements": null,
                "show_achievements": false
              },
              "additional_audio_info": {
                "additional_audio_username": null,
                "audio_reattribution_info": {
                  "should_allow_restore": false
                }
              },
              "audio_canonical_id": "18597911386059389",
              "audio_ranking_info": {
                "best_audio_cluster_id": "881431958342121"
              },
              "audio_type": "original_sounds",
              "branded_content_tag_info": {
                "can_add_tag": false
              },
              "clips_creation_entry_point": "clips",
              "content_appreciation_info": {
                "enabled": true,
                "entry_point_container": {
                  "comment": "…",
                  "pill": "…"
                }
              },
              "contextual_highlight_info": null,
              "disable_use_in_clips_client_cache": false,
              "is_fan_club_promo_video": false,
              "is_public_chat_welcome_video": false,
              "is_shared_to_fb": false,
              "mashup_info": {
                "can_toggle_mashups_allowed": false,
                "has_been_mashed_up": true,
                "has_nonmimicable_additional_audio": false,
                "is_creator_requesting_mashup": false,
                "is_light_weight_check": true,
                "is_pivot_page_available": true,
                "mashup_type": null,
                "mashups_allowed": true,
                "non_privacy_filtered_mashups_media_count": 27,
                "original_media": null
              },
              "merchandising_pill_info": null,
              "music_info": null,
              "original_sound_info": {
                "allow_creator_to_rename": true,
                "audio_filter_infos": null,
                "audio_id": "36399572316354999",
                "audio_parts": [
                  "…"
                ],
                "audio_parts_by_filter": [
                  "…"

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

API README

Instagram General Search (V2) API

Returns Instagram posts and reels that match a search keyword. Each item includes the caption, hashtags, comment count and audio details. Send a keyword and optionally a pagination_token to get the next page.

Use cases

  • Find reels and posts that use a topic keyword such as cat.
  • Collect the hashtags that creators attach to posts about a topic.
  • Rank posts for a keyword by comment_count to spot those with the most discussion.
  • Group results by clips_metadata.audio_type to see how many posts use original sounds.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v2/general-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "cat"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword
pagination_tokenstringNoPagination token from previous response

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "count": 8,
    "items": [
      {
        "ai_interactive_embodiment_attachment_style_info": null,
        "ai_label_info": null,
        "are_remixes_crosspostable": true,
        "attribution": null,
        "audience": null,
        "audio": null,
        "autodub_status": null,
        "basel_encoding_timeout": null,
        "boost_unavailable_identifier": null,
        "boost_unavailable_reason": null,
        "boosted_by_sponsor": null,
        "boosted_post_id": null
      }
    ]
  },
  "pagination_token": "GU1VCxop…"
}

Response fields

FieldMeaning
data.countNumber of items in this page of results.
data.items[].codeShort post code for the item. Use it to identify the post on Instagram.
data.items[].caption.hashtagsList of hashtags in the post caption, each with a leading #.
data.items[].caption.created_at / data.items[].caption.created_at_utcCaption creation time as a Unix timestamp in seconds.
data.items[].caption.idID of the caption object.
data.items[].comment_countNumber of comments on the post.
data.items[].clips_metadata.audio_typeType of audio on the reel, for example original_sounds.
data.items[].clips_metadata.audio_canonical_idID of the audio track used in the reel.
data.items[].ai_label_info.subtitle_textLabel text shown for posts flagged as AI content. The field is null when no AI label exists.
pagination_tokenToken to pass as pagination_token to request the next page.

Notes

  • Set keyword to any search term. Only keyword is required.
  • To get the next page, repeat the call with the same keyword and the pagination_token from the previous response.
  • Many fields on each item are null when they do not apply to the post, such as carousel_media on a reel.
  • To search only reels, use Instagram Reels Search. To search accounts, use Instagram User Search (V2).

Pricing

$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Instagram$0.002 ต่อการเรียกJSON
Instagram$0.002 ต่อการเรียกJSON
Instagram$0.002 ต่อการเรียกJSON
Instagram$0.002 ต่อการเรียกJSON
Instagram$0.002 ต่อการเรียกJSON
Instagram$0.002 ต่อการเรียกJSON

คู่มือ:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Instagram General Search (V2) API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/instagram/v2/general-search โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Instagram General Search (V2) API ราคาเท่าไร?

$0.002 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Instagram General Search (V2) API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: keyword (string). ตัวเลือก: pagination_token (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Instagram General Search (V2) API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Instagram ไหม?

ไม่จำเป็น Instagram General Search (V2) ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Instagram API แยกต่างหาก