INSTAGRAM API
Search Hashtag Posts
Retrieve search hashtag posts from Instagram with a single API request.
GET
/api/data/v1/instagram/search/hashtag1credit base cost
Request parameters
Up to 1 creditThe hashtag to search for. Include or omit the #.
Only return Google-indexed posts found in this relative window.
Use all to search public posts and reels, or reels to only return reels. Defaults to all.
The cursor returned by the previous response. It is the next Google results page number and cannot exceed 11; cursor 12 or greater returns a 400 response.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/instagram/search/hashtag?hashtag=makeup' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"hashtag": "funnydogs",
"media_type": "all",
"posts": [
{
"id": "3714950709444987377",
"__typename": "XDTGraphVideo",
"shortcode": "DOOJ_zSjcnx",
"url": "https://www.instagram.com/reel/DOOJ_zSjcnx/",
"caption": "Well we tried to be subtle… #funnydogs #funny #whiteboxer #australianshepherd",
"thumbnail_src": "https://scontent-ord5-2.cdninstagram.com/v/t51.82787-15/542212527_18130644664455761_8262846918103190683_n.jpg?stp=c0.509.1312.1312a_dst-jpg_e35_s640x640_sh2.08_tt6&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_cat=105&_nc_oc=Q6cZ2gGAVcFN0K6MoOopK41K4dWjOeZZaT9xgOadaLiAbdnmQSVNlQgD_lz8yQLaXrtvYeY&_nc_ohc=eV6SPEh2O88Q7kNvwHcNeFx&_nc_gid=tAUZdiRnIdGjcNvGfTjMvg&edm=ANTKIIoBAAAA&ccb=7-5&oh=00_Af6BLCF7O_laTkSuoqn5Ebg8ZWg57JkaXtBAb6nH0KapPg&oe=6A1D1BB2&_nc_sid=d885a2",
"display_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.82787-15/542212527_18130644664455761_8262846918103190683_n.jpg?stp=dst-jpg_e35_p1080x1080_sh2.08_tt6&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_cat=105&_nc_oc=Q6cZ2gGAVcFN0K6MoOopK41K4dWjOeZZaT9xgOadaLiAbdnmQSVNlQgD_lz8yQLaXrtvYeY&_nc_ohc=eV6SPEh2O88Q7kNvwHcNeFx&_nc_gid=tAUZdiRnIdGjcNvGfTjMvg&edm=ANTKIIoBAAAA&ccb=7-5&oh=00_Af6TdnB6cfe_BkRBRYP65isRGJfDrp2evUQY9O_ReUHv2g&oe=6A1D1BB2&_nc_sid=d885a2",
"video_url": "https://scontent-ord5-2.cdninstagram.com/o1/v/t2/f2/m86/AQNG_gCzevxl8xiNB2lVRlcV8c3o3r2ZyeLeWfaY4eaHdyRX3_Z1mty2jrHuH5Z66vTC5SXrhmpdG5re9MNyf1jCtWVyPKAWQFQ037o.mp4?_nc_cat=104&_nc_sid=5e9851&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_ohc=ByTiQjuOr9wQ7kNvwGpBh0x&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTEyMDQ3OTIyMDA0MTUwMSwiYXNzZXRfYWdlX2RheXMiOjI2NCwidmlfdXNlY2FzZV9pZCI6MTAwOTksImR1cmF0aW9uX3MiOjY1LCJ1cmxnZW5fc291cmNlIjoid3d3In0%3D&ccb=17-1&vs=638842146c84456b&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC80QTQ2OURBNUJBQTE1RjdFODZFRjQxRThCOUU1RTNBOV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYRmlnX3hwdl",
"has_audio": false,
"accessibility_caption": null,
"product_type": "clips",
"video_duration": 65.733,
"clips_music_attribution_info": {
"artist_name": "_layla_the_boxer",
"song_name": "Original audio",
"uses_original_audio": true,
"should_mute_audio": false,
"should_mute_audio_reason": "",
"audio_id": "1303301604923923"
},
"is_video": true,
"owner": {
"id": "13582495760",
"username": "_layla_the_boxer",
"is_verified": true,
"profile_pic_url": "https://scontent-ord5-3.cdninstagram.com/v/t51.2885-19/420493539_1460561894498614_4791883467164866946_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-3.cdninstagram.com&_nc_cat=110&_nc_oc=Q6cZ2gGAVcFN0K6MoOopK41K4dWjOeZZaT9xgOadaLiAbdnmQSVNlQgD_lz8yQLaXrtvYeY&_nc_ohc=aeHo4Q_mApIQ7kNvwERao4Z&_nc_gid=tAUZdiRnIdGjcNvGfTjMvg&edm=ANTKIIoBAAAA&ccb=7-5&oh=00_Af4Fxb_M04AcFcB7JVo3PYiMVir3WS0vIloaPKB0igyV_g&oe=6A1D1119&_nc_sid=d885a2",
"full_name": "Layla the Boxer",
"is_private": false,
"is_unpublished": false,
"follower_count": 1369176,
"post_count": 1184
},
"taken_at": "2025-09-05T12:51:42.000Z",
"is_ad": false,
"like_count": 35854,
"is_affiliate": false,
"is_paid_partnership": false,
"location": null,
"comment_count": 1263,
"comments": [
{
"id": "18099897668494530",
"text": "😂😅🤣😍❤️🥰",
"owner": {
"id": "70821489119",
"is_verified": false,
"profile_pic_url": "https://scontent-ord5-3.cdninstagram.com/v/t51.2885-19/466368394_545365701466258_2087161965910224562_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-3.cdninstagram.com&_nc_cat=110&_nc_oc=Q6cZ2gGAVcFN0K6MoOopK41K4dWjOeZZaT9xgOadaLiAbdnmQSVNlQgD_lz8yQLaXrtvYeY&_nc_ohc=JxQ38FoXdhsQ7kNvwH3PKC0&_nc_gid=tAUZdiRnIdGjcNvGfTjMvg&edm=ANTKIIoBAAAA&ccb=7-5&oh=00_Af5bZb_HVbD8jFTK8i271c6IoeUyGR3iiKL-YVd-tFY_Yw&oe=6A1D05C8&_nc_sid=d885a2",
"username": "jesshman66"
},
"like_count": 0,
"created_at": "2026-01-25T13:33:43.000Z"
}
]
}
],
"cursor": "2",
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"hashtag": {
"type": "string"
},
"media_type": {
"type": "string"
},
"posts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"__typename": {
"type": "string"
},
"shortcode": {
"type": "string"
},
"url": {
"type": "string"
},
"caption": {
"type": "string"
},
"thumbnail_src": {
"type": "string"
},
"display_url": {
"type": "string"
},
"video_url": {
"type": "string"
},
"has_audio": {
"type": "boolean"
},
"accessibility_caption": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"product_type": {
"type": "string"
},
"video_duration": {
"type": "number"
},
"clips_music_attribution_info": {
"type": "object",
"properties": {
"artist_name": {
"type": "string"
},
"song_name": {
"type": "string"
},
"uses_original_audio": {
"type": "boolean"
},
"should_mute_audio": {
"type": "boolean"
},
"should_mute_audio_reason": {
"type": "string"
},
"audio_id": {
"type": "string"
}
}
},
"is_video": {
"type": "boolean"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"username": {
"type": "string"
},
"is_verified": {
"type": "boolean"
},
"profile_pic_url": {
"type": "string"
},
"full_name": {
"type": "string"
},
"is_private": {
"type": "boolean"
},
"is_unpublished": {
"type": "boolean"
},
"follower_count": {
"type": "integer"
},
"post_count": {
"type": "integer"
}
}
},
"taken_at": {
"type": "string"
},
"is_ad": {
"type": "boolean"
},
"like_count": {
"type": "integer"
},
"is_affiliate": {
"type": "boolean"
},
"is_paid_partnership": {
"type": "boolean"
},
"location": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"comment_count": {
"type": "integer"
},
"comments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"text": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"is_verified": {
"type": "boolean"
},
"profile_pic_url": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"like_count": {
"type": "integer"
},
"created_at": {
"type": "string"
}
}
}
}
}
}
},
"cursor": {
"type": "string"
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}