Instagram General Search (V2)
https://api.sandbase.ai/v1/api/instagram/v2/general-searchReturns Instagram search results matching a specified keyword, including media items, user profiles, and engagement statistics.
- Price
- $0.003USD / callFirst 100 calls per day free (shared per organization)
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 1 optional
Try the model
Playground
[
{
"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",
"#cutecats",
"#catlovers❤️"
],
"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__YWMu5pKJmxnWjE5zle3Q4EUtZ0poriVvp-H_pdq5zsaqLx6LRdCpYVOiK8&_nc_ohc=FzGv5AcqMecQ7kNvwEIgdez&_nc_gid=XInWpHQzb1pbe1s5tiZRvw&edm=ADuq63kBAAAA&ccb=7-5&ig_cache_key=GGINhiEG8mvaBTFAAEezWkGpSdpFbmNDAQAB1501500j-ccb7-5&oh=00_AQPfkhn9h0STHszTLqWZAB2y9lGEwDRc-bhUyM-7OAV_cA&oe=6ACABA03&_nc_sid=cebafd",
"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_canonical_id": "18469949035106986",
"audio_start_time_in_ms": 0,
"audio_type": "licensed_music",
"display_artist": "LatinMemories Lw",
"display_title": "Sad Piano Memories",
"duration_in_ms": 30,
"ig_artist": null,
"is_bookmarked": false,
"is_explicit": false,
"parent_start_time_in_ms": 0,
"thumbnail_uri": "https://scontent-iad3-2.cdninstagram.com/v/t39.30808-6/725133200_71061129752849_9008002225369957442_n.jpg?stp=dst-jpg_s168x128_tt6&_nc_cat=111&ccb=7-5&_nc_sid=2f2557&_nc_ohc=G7NotBdzRfUQ7kNvwF6gPtg&_nc_oc=AdqmyCrTJ62A2B7rgQ84MFzL0lyAOeu0sv1cfEdTFCxbrC2T6SLeJec2T1LmtulWI3E&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-iad3-2.cdninstagram.com&_nc_gid=XInWpHQzb1pbe1s5tiZRvw&_nc_ss=7339b&oh=00_AQPBZNmyY78FhbKpGg8TSfBFJEYRfFQKbaFgGFJyIfH_eA&oe=6ACAAA22"
}
],
"audio_parts_by_filter": [
{
"audio_canonical_id": "18469949035106986",
"audio_start_time_in_ms": 0,
"audio_type": "licensed_music",
"display_artist": "LatinMemories Lw",
"display_title": "Sad Piano Memories",
"duration_in_ms": 30,
"is_bookmarked": false,
"is_explicit": false,
"parent_start_time_in_ms": 0,
"thumbnail_uri": "https://scontent-iad3-2.cdninstagram.com/v/t39.30808-6/725133200_71061129752849_9008002225369957442_n.jpg?stp=dst-jpg_s168x128_tt6&_nc_cat=111&ccb=7-5&_nc_sid=2f2557&_nc_ohc=G7NotBdzRfUQ7kNvwF6gPtg&_nc_oc=AdqmyCrTJ62A2B7rgQ84MFzL0lyAOeu0sv1cfEdTFCxbrC2T6SLeJec2T1LmtulWI3E&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-iad3-2.cdninstagram.com&_nc_gid=XInWpHQzb1pbe1s5tiZRvw&_nc_ss=7339b&oh=00_AQPBZNmyY78FhbKpGg8TSfBFJEYRfFQKbaFgGFJyIfH_eA&oe=6ACAAA22"
}
],
"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__YWMu5pKJmxnWjE5zle3Q4EUtZ0poriVvp-H_pdq5zsaqLx6LRdCpYVOiK8&_nc_ohc=FzGv5AcqMecQ7kNvwEIgdez&_nc_gid=XInWpHQzb1pbe1s5tiZRvw&edm=ADuq63kBAAAA&ccb=7-5&ig_cache_key=GGINhiEG8mvaBTFAAEezWkGpSdpFbmNDAQAB1501500j-ccb7-5&oh=00_AQPfkhn9h0STHszTLqWZAB2y9lGEwDRc-bhUyM-7OAV_cA&oe=6ACABA03&_nc_sid=cebafd",
"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=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5WSV9VU0VDQVNFX1BST0RVQ1RfVFlQRS4uQzMuMC5wcm9ncmVzc2l2ZV9hdWRpbyIsInhwdl9hc3NldF9pZCI6ODEzOTQ4MDUxNDM2NDAyLCJhc3NldF9hZ2VfZGF5cyI6MzE0LCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6MTAsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&_nc_gid=XInWpHQzb1pbe1s5tiZRvw&_nc_ss=733ba&_nc_zt=28&oh=00_AQPcTZzZrEDRZaCFlFbTBGJIxQzjXUmYiPvivSi8FxxV6Q&oe=6ACAC9F4",
"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,
"content_views_count": null,
"creative_config": {
"capture_type": "clips_v2",
"creation_tool_info": [
{
"appearance_effect": 0,
"camera_tool": 179,
"color_filters": "",
"duration_selector_seconds": 0,
"speed_selector": 0,
"timer_selector_seconds": 0
},
{
"appearance_effect": 0,
"camera_tool": 97,
"color_filters": "",
"duration_selector_seconds": 0,
"speed_selector": 0,
"timer_selector_seconds": 0
}
],
"effect_configs": null
},
"crosspost_metadata": {
"fb_downstream_use_xpost_metadata": {
"downstream_use_xpost_deny_reason": "NONE"
}
},
"cta_rendering_config": null,
"deleted_reason": 0,
"device_timestamp": 908953868710284,
"dominant_color": null,
"dynamic_ad_carousel_card_starting_index": null,
"facepile_top_likers": null,
"fb_like_count": null,
"fb_play_count": null,
"fbid": "18134213926467695",
"filter_type": 0,
"floating_context_items": [],
"fundraiser_tag": {
"beneficiary_name": null,
"beneficiary_username": null,
"can_viewer_donate": null,
"can_viewer_remove_fundraiser_tag": null,
"contextual_title_str": null,
"formatted_amount_raised": null,
"formatted_fundraiser_progress_info_text": null,
"formatted_goal_amount": null,
"fundraiser_id": null,
"fundraiser_owner_username": null,
"fundraiser_title": null,
"fundraiser_type": null,
"is_media_owner_fundraiser_owner": null,
"progress_str": null,
"show_fundraiser_owner_attribution": null,
"thumbnail_display_url": null
},
"gen_ai_detection_method": {
"detection_method": "NONE"
},
"gizmo_content_url": null,
"has_audio": true,
"has_hidden_comments": null,
"has_liked": false,
"has_more_comments": true,
"has_reshares": null,
"has_shared_to_fb": 0,
"has_views_fetching": true,
"has_views_fetching_on_search_grid": null,
"horizon_attribution_info": null,
"id": "3773673916037486064",
"ig_media_sharing_disabled": false,
"igtv_series_info": null,
"igtv_shopping_info": null,
"image_versions": {
"additional_items": {
"first_frame": {
"height": 1136,
"url": "https://scontent-iad3-2.cdninstagram.com/v/t51.71878-15/587206010_871102805575431_6636478252618138414_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=111&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjY0MC5zZHIudmlkZW9fYWRkaXRpb25hbF9jb3Zlcl9mcmFtZS5DMyJ9&_nc_ohc=aKRJEGrpDEwQ7kNvwEYH510&_nc_oc=AdqF_AqBhw5xzez3vt5ZF3n3vdHLZQIEfK09GIBvcfEh4r6w7T3TDAprIAsMDfqsQJY&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-iad3-2.cdninstagram.com&_nc_gid=XInWpHQzb1pbe1s5tiZRvw&_nc_ss=7a3ba&oh=00_AQPCwrlk8FH86E5wP3e_Ghj2DIWfy_OcN7VCBhEma-Jm9A&oe=6ACAD083",
"width": 640
},
"igtv_first_frame": {
"height": 1136,
"url": "https://scontent-iad3-2.cdninstagram.com/v/t51.71878-15/587206010_871102805575431_6636478252618138414_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=111&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjY0MC5zZHIudmlkZW9fYWRkaXRpb25hbF9jb3Zlcl9mcmFtZS5DMyJ9&_nc_ohc=aKRJEGrpDEwQ7kNvwEYH510&_nc_oc=AdqF_AqBhw5xzez3vt5ZF3n3vdHLZQIEfK09GIBvcfEh4r6w7T3TDAprIAsMDfqsQJY&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-iad3-2.cdninstagram.com&_nc_gid=XInWpHQzb1pbe1s5tiZRvw&_nc_ss=7a3ba&oh=00_AQPCwrlk8FH86E5wP3e_Ghj2DIWfy_OcN7VCBhEma-Jm9A&oe=6ACAD083",
"width": 640
}
},
"animated_thumbnail_spritesheet_info_candidates": null,
"items": [
{
"height": 960,
"url": "https://scontent-iad3-1.cdninstagram.com/v/t51.82787-15/587172868_18073675160586886_954510788744545958_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=108&ig_cache_key=Mzc3MzY3MzkxNjAzNzQ4NjA2NDE4MDczNjc1MTU0NTg2ODg2.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjU0MC5zZHIudmlkZW9fZGVmYXVsdF9jb3Zlcl9mcmFtZS5DMyJ9&_nc_ohc=foQ0qa73_NkQ7kNvwFKzPpV&_nc_oc=Adof7a4bMtNOTBzPwEyj0vXciF1Bscv6eTms-Hgxc9Jrk9T52D4C88AYbsyRACHzIXY&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-iad3-1.cdninstagram.com&_nc_gid=XInWpHQzb1pbe1s5tiZRvw&_nc_ss=7a3ba&oh=00_AQOaTXoUukoPe02_v4CBx9K2MAsLokGj_9gyABRQOL2Thw&oe=6ACAB3AD",
"width": 540
}
],
"scrubber_spritesheet_info_candidates": {
"default": {
"file_size_kb": 291,Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.003 / run
- Daily free calls
- First 100 calls per day free (shared per organization)
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- keyword
- string · required
- pagination_token
- string · optional
Access
- Provider
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/instagram/v2/general-search
- Authentication
- Bearer API key
API README
Instagram General Search (V2) API
Query Instagram posts and related media content by specifying a keyword. Use pagination_token to retrieve subsequent pages of results.
Use cases
- Discover trending media posts and reels related to specific topics.
- Monitor engagement metrics and captions across keyword-specific posts.
- Identify active creators producing content around target search terms.
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"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword |
pagination_token | string | No | Pagination token from previous response |
Example response
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"data": {
"items": [
{
"caption_is_edited": false,
"coauthor_producer_can_see_organic_insights": false,
"comment_count": 1150,
"device_timestamp": 908953868710284,
"filter_type": 0,
"id": "3773673916037486064",
"like_and_view_counts_disabled": false,
"like_count": 54439,
"media_name": "reel",
"media_type": 2,
"caption": {
"content_type": "comment",
"id": "3773673916037486064",
"private_reply_status": 0,
"status": "Active",
"text": "#catsoftheday #cat #cutecats #catlovers❤️",
"type": 1
},
"clips_metadata": {
"audio_canonical_id": "18438577903101394",
"audio_type": "original_sounds",
"professional_clips_upsell_type": 0
},
"user": {
"follower_count": 240938,
"full_name": "𝐂𝐀𝐓𝐘 𝐂𝐑𝐔𝐒𝐇",
"id": "47539634885",
"profile_pic_id": "3737640702256854188",
"profile_pic_url": "https://scontent-iad3-1.cdninstagram.com/v/t51.82787-19/562433378_18068299718586…",
"type": "XDTUserDict"
}
}
]
}
}
Notes
- Pass
pagination_tokenfrom a previous response to paginate through search results.
Related APIs
- Instagram Comment Replies (V2): Retrieves a paginated list of replies to an Instagram comment using the post URL or shortcode and the target comment ID.
- Instagram Hashtag Posts (V2): Returns posts associated with a specific hashtag.
- Instagram Highlight Stories: Returns all stories contained within a specific Instagram highlight using its unique identifier.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/instagram/v2/general-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"keyword": "cat"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Instagram General Search (V2)This API Instagram | $0.003 per call | JSON | Jul 31, 2026 |
Instagram | $0.003 per call | JSON | Jul 31, 2026 |
Instagram | $0.003 per call | JSON | Jul 31, 2026 |
Instagram | $0.003 per call | JSON | Jul 31, 2026 |
Instagram | $0.003 per call | JSON | Jul 31, 2026 |
Instagram | $0.003 per call | JSON | Jul 31, 2026 |
Questions
FAQ
How do I use the Instagram General Search (V2) API?
Send a POST request to https://api.sandbase.ai/v1/api/instagram/v2/general-search with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the Instagram General Search (V2) API cost?
$0.003 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.
What parameters does the Instagram General Search (V2) API accept?
Required: keyword (string). Optional: pagination_token (string). The Parameters table and the Playground on this page list every field.
What does the Instagram General Search (V2) API return?
A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.
Do I need a Instagram developer account or API key?
No. Instagram General Search (V2) runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Instagram API access separately.
