Instagram Popular Search API
Get Instagram's public Popular page for a topic (instagram.com/popular/<topic>/), as a signed-out visitor sees it: the page title, its rounded reel count (total_media_count, as Instagram rounds it), Instagram's topic summary with sources, related search terms, and the first 12 posts with play counts and creators. The query is turned into the page's path ("best pizza in chicago" → /popular/best-pizza-in-chicago/). Instagram has Popular pages only for some topics: a topic without one returns 404 at 0 credits. Only the first page is available signed out: cursor is always null and passing one returns 400.
Quick start
cURL
curl --request GET 'https://api.fetchproof.com/v1/instagram/search/popular?query=best+pizza+in+chicago' \
--header 'x-api-key: YOUR_API_KEY' JavaScript
const response = await fetch("https://api.fetchproof.com/v1/instagram/search/popular?query=best+pizza+in+chicago", {
method: 'GET',
headers: {
'x-api-key': process.env.FETCHPROOF_API_KEY,
},
});
const data = await response.json();
console.log(data); Python
import os
import requests
response = requests.get(
"https://api.fetchproof.com/v1/instagram/search/popular?query=best+pizza+in+chicago",
headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]},
)
print(response.json()) Go
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.fetchproof.com/v1/instagram/search/popular?query=best+pizza+in+chicago", nil)
req.Header.Set("x-api-key", os.Getenv("FETCHPROOF_API_KEY"))
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
} PHP
<?php
$ch = curl_init("https://api.fetchproof.com/v1/instagram/search/popular?query=best+pizza+in+chicago");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
'x-api-key: ' . getenv('FETCHPROOF_API_KEY'),
],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response; {
"success": true,
"credits_remaining": 100,
"credits_charged": 1,
"query": "best pizza in chicago",
"title": "Best Pizza In Chicago",
"total_media_count": 5400,
"description": {
"plain_text": "Chicago pizza divides into deep-dish, stuffed, and thin tavern styles, so favorites vary by neighborhood. Pizzeria Uno started deep-dish in 1943 and Pizzeria Due offers a Victorian setting with 4.4 stars. Giordano's near Millennium Park ...",
"source_uris": [
"https://www.pizzeriaunodue.com/",
"https://giordanos.com/locations/prudential-plaza-millennium-park/",
"https://www.zarellachicago.com/"
],
"linked_terms": []
},
"suggested_terms": [
"best tavern style pizza in chicago",
"chicago pizza the best pizza in coimbatore rs puram photos",
"best chicago style pizza in houston"
],
"posts": [
{
"id": "3645729063969738991",
"shortcode": "DKYO0SNO9Dv",
"url": "https://www.instagram.com/p/DKYO0SNO9Dv/",
"type": "video",
"caption": "THIS WAS VOTED THE TOP PIZZA IN CHICAGO (ad)\n\nAnd I grew up on this pizza so for me it was really special to make this \n\nI had no idea about just how much detail goes into everything from the cheese to the crust to the sauce \n\nThis is my...",
"display_url": "https://scontent-iad3-2.cdninstagram.com/v/t51.75761-15/503015082_18035086031644378_8587007474747208291_n.jpg?stp=dst-jpg_e35_s640x640_tt6&ccb=7-5&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pb...",
"video_url": "https://scontent-iad3-2.cdninstagram.com/o1/v/t2/f2/m367/AQPSmCPTREYv3borZBeq9SjvOqbMRplrvqtWnW7w-YbkHM46PdifK_mAa-rpIsUz8F7J7jtHqdUc0McZlPykusl2ng8ibWB1wDBJbT0.mp4",
"play_count": 182651,
"owner": {
"id": "49393308377",
"username": "chicagofoodhq",
"is_verified": true,
"profile_pic_url": "https://scontent-iad3-1.cdninstagram.com/v/t51.2885-19/453429209_797467048893608_670821396195426075_n.jpg?stp=dst-jpg_s150x150_tt6&ig_cache_key=GNnHBhuoXCvEStUCABu-9XOBPE8JbkULAAAB1501500j-ccb7-5&ccb...="
}
},
{
"id": "3727685309657002240",
"shortcode": "DO7Zgn8jDEA",
"url": "https://www.instagram.com/p/DO7Zgn8jDEA/",
"type": "video",
"caption": "The top rated pizzerias in Chicago, based on over 75 million ratings on Beli. Let us know what you think should have made the list! 🍕\n\n1. PIZZ’AMICI @pizz.amici \n2. Zarella Pizzeria & Taverna @zarellachicago \n3. Spacca Napoli Pizzeria @...",
"display_url": "https://scontent-iad3-1.cdninstagram.com/v/t51.71878-15/552244555_1337356334411371_4029753443573856062_n.jpg?stp=dst-jpg_e35_s640x640_tt6&ccb=7-5&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbW...",
"video_url": "https://scontent-iad3-2.cdninstagram.com/o1/v/t2/f2/m86/AQMehyesm_OWFFjFgQX_dCQYOdFsmKRB03ie6UsL_0BdPmVfzn3TFI7j77id5K0SdWxNHOuPOqOktdfDrp4fsJ8JjFvw3hI1Z1WQkdo.mp4",
"play_count": 551181,
"owner": {
"id": "12075484423",
"username": "beli_eats",
"is_verified": true,
"profile_pic_url": "https://scontent-iad6-1.cdninstagram.com/v/t51.2885-19/340010466_5957962437654718_218790656723620361_n.jpg?stp=dst-jpg_s150x150_tt6&ig_cache_key=GOIlRBS_eK46vCoVAAmSL27xTAkDbkULAAAB1501500j-ccb7-5&ccb=7-5&efg=eyJ..."
}
},
{
"id": "3870906478689288019",
"shortcode": "DW4OO71CH9T",
"url": "https://www.instagram.com/p/DW4OO71CH9T/",
"type": "video",
"caption": "Chicago… this getting serious now 👀🍕\n\nPart 4 of asking real people who got the BEST pizza in the city and y’all still not agreeing…\n\nWho you got? ⬇️\n\n#chicagofood\n#chicagopizza\n#foodreview\n#foodie\n#jovanapproved",
"display_url": "https://scontent-iad6-1.cdninstagram.com/v/t51.71878-15/663239831_1243623407542556_5276491049648962316_n.jpg?stp=dst-jpg_e35_s640x640_tt6&ccb=7-5&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbW...",
"video_url": "https://scontent-iad3-1.cdninstagram.com/o1/v/t2/f2/m86/AQMqYJW6RcGNzRIJu7G2uiZ54ugGkccp1H0a8HX2Wgsk5eN_alHRkH5ApIW6pfTXCcN49keDxA-MwOs5EviZA8cOCGhGTyo4xfPleVk.mp4",
"play_count": 176720,
"owner": {
"id": "80061600360",
"username": "jovanapproved",
"is_verified": true,
"profile_pic_url": "https://scontent-iad3-2.cdninstagram.com/v/t51.82787-19/671217968_17870320464664361_5284173443499581495_n.jpg?stp=dst-jpg_s150x150_tt6&ig_cache_key=GDD5ASgpl1E39nw-ADdgWAfAJ1VJbmNDAQAB1501500j-ccb7-5..."
}
}
],
"cursor": null,
"has_more": true
} What it returns
- success boolean
- credits_remaining integer
- credits_charged integer
- query string
- title stringnull
- total_media_count integernull
- description objectnull
- suggested_terms array
- posts array
- cursor stringnull
Parameters
The topic to look up, as words (best pizza in chicago) or as the page's slug (best-pizza-in-chicago)
Not supported: only the first page is available signed out. Passing one returns 400.
Use cases
- See the top reels Instagram shows for a topic
- Research what's popular for a local search like best pizza in Chicago
- Find related search terms for a topic
- Get Instagram's summary of a topic with its sources
- Find creators who rank for a topic
Billing
Errors cost zero credits. Empty results follow this operation’s rules.
Default: 1 credit
An empty result costs 0 credits.
How charges are determined
Cost is decided per call, not per endpoint: the same operation can cost different amounts depending on what it returns.
A call that fails costs 0 credits. A result served from cache costs 0 credits.
`default` is the cost when no rule matches. Rules are evaluated in order and the first whose conditions all hold wins.
A `when` condition is one of: `param` (the request parameter is true), `outcome` (the classifier's outcome), `empty` / `nonEmpty` (a response field is empty and absent, or a non-empty array or string), `flag` (a response field is exactly true).
A cost of `{ perStartedMinute: n, of: [fields] }` is n x max(1, ceil(seconds / 60)), so even a short result bills at least one minute.
Guides
Related Instagram endpoints
FAQ
How much does the Instagram Popular Search API cost?
A call costs 1 credit by default. Errors cost 0 credits. New accounts get 100 free credits with no card. After that, credits come in one-time packs that never expire: 25,000 for $27 and 500,000 for $297 (plus any tax). There is no subscription.
What do I need to call it?
An API key in the x-api-key header, plus query. You don't need a Instagram account or developer app.
What does it return?
Typed JSON. Top-level fields include query, title, total_media_count, description, suggested_terms and posts. The full schema and a real sample response are on this page and in the API reference.
Is this an official Instagram API?
No. Fetchproof is an unofficial API that returns public Instagram data only.