Skip to content

How to find trending Instagram reels and topic posts with an API

Updated · 3 steps

Instagram publishes two discovery surfaces anyone can see without signing in: Popular pages for topics (instagram.com/popular/<topic>/) and the Reels feed. Fetchproof returns both as JSON, and a post lookup fills in a reel's play count.

Use it for trend research, finding creators in a niche, or seeding a content calendar.

01

Get the top posts for a topic

Pass the topic as words or as the page's slug. The response has the page title, Instagram's rounded total_media_count, its topic summary in description with source links, suggested_terms for related topics, and the first 12 posts, each with play_count, caption, URL and owner.

GET /v1/instagram/search/popular 1 credit per call

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;
Excerpt of published sample response Full 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 b…",
    "source_uris": [
      "https://www.pizzeriaunodue.com/"
    ],
    "linked_terms": []
  },
  "suggested_terms": [
    "best tavern style pizza in chicago"
  ],
  "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…",
      "display_url": "https://scontent-iad3-2.cdninstagram.com/v/t51.75761-15/503015082_18035086031644378_858700…",
      "video_url": "https://scontent-iad3-2.cdninstagram.com/o1/v/t2/f2/m367/AQPSmCPTREYv3borZBeq9SjvOqbMRplrv…",
      "play_count": 182651,
      "owner": "{…}"
    }
  ],
  "cursor": null,
  "has_more": true
}
02

See what the Reels feed shows right now

Call it with no parameters to get the reels Instagram's signed-out Reels feed is showing, usually 8. Each reel has its shortcode, URL, caption, taken_at, video and image URLs, like_count, comment_count and creator. play_count is null in this feed.

GET /v1/instagram/reels/trending 1 credit per call

cURL

curl --request GET 'https://api.fetchproof.com/v1/instagram/reels/trending' \
  --header 'x-api-key: YOUR_API_KEY'

JavaScript

const response = await fetch("https://api.fetchproof.com/v1/instagram/reels/trending", {
  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/reels/trending",
    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/reels/trending", 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/reels/trending");
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;
Excerpt of published sample response Full response →
{
  "success": true,
  "credits_remaining": 100,
  "credits_charged": 1,
  "reels": [
    {
      "id": "4029523604859589504_1551084036",
      "pk": "4029523604859589504",
      "shortcode": "Dfrvl6JtROA",
      "url": "https://www.instagram.com/reel/Dfrvl6JtROA/",
      "caption": "Grab life by the labia 💅\n\n#motivational #momlife #relatable #mumsofinstagram #comedy",
      "taken_at": "2026-11-13T13:32:36.000Z",
      "media_type": 2,
      "product_type": "clips",
      "video_url": "https://scontent-iad6-1.cdninstagram.com/o1/v/t2/f2/m86/AQPV_3gJai1yLuTtVFYGXV7dQNmOCRjL7u…",
      "video_versions": [
        "{…}"
      ],
      "image_url": "https://scontent-iad6-1.cdninstagram.com/v/t51.71878-15/900840492_1453998943573834_6785260…",
      "image_versions2": "{…}",
      "…": "9 more fields"
    }
  ]
}
03

Fill in a reel's play count

Pass a reel URL with include_play_count=true to add play_count, the plays Instagram shows on the reel. It's read from the owner's 12 newest reels, so it's null for older ones.

GET /v1/instagram/post 1 credit per call

cURL

curl --request GET 'https://api.fetchproof.com/v1/instagram/post?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDLDXI0fylTC%2F&include_play_count=true' \
  --header 'x-api-key: YOUR_API_KEY'

JavaScript

const response = await fetch("https://api.fetchproof.com/v1/instagram/post?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDLDXI0fylTC%2F&include_play_count=true", {
  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/post?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDLDXI0fylTC%2F&include_play_count=true",
    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/post?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDLDXI0fylTC%2F&include_play_count=true", 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/post?url=https%3A%2F%2Fwww.instagram.com%2Freel%2FDLDXI0fylTC%2F&include_play_count=true");
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;
Excerpt of published sample response Full response →
{
  "success": true,
  "credits_remaining": 100,
  "credits_charged": 1,
  "data": {
    "xdt_shortcode_media": {
      "__typename": "XDTGraphVideo",
      "id": "3657869083548472514",
      "shortcode": "DLDXI0fylTC",
      "thumbnail_src": "https://scontent-iad6-1.cdninstagram.com/v/t51.75761-15/509601086_18503874985017172_856368…",
      "dimensions": "{…}",
      "display_url": "https://scontent-iad6-1.cdninstagram.com/v/t51.75761-15/509601086_18503874985017172_856368…",
      "display_resources": [
        "{…}"
      ],
      "accessibility_caption": null,
      "has_audio": true,
      "video_url": "https://scontent-iad3-1.cdninstagram.com/o1/v/t2/f2/m86/AQPIiBLJBqG6YM9FzeabZmQkGTo94LpWkF…",
      "video_view_count": 155769,
      "product_type": "clips",
      "…": "11 more fields"
    }
  }
}

Limits

Instagram only has Popular pages for some topics. A topic without one returns 404 at 0 credits. Each Popular page and the Reels feed return their first page only. The Reels feed is Instagram's own signed-out feed, not a ranked global chart, and repeated calls can overlap.

What it costs

Each call costs 1 credit, and errors cost 0. cache_max_age on post lookups reuses a recent copy for 0 credits.

Try it with 100 free credits

Sign up with an email address, no card. Credits never expire. Errors cost 0 credits, and each endpoint page lists exactly what it charges.