Platforms/Instagram/Topic

Instagram Topic and Hashtag API

GET ยท 1 credit

Send a topic or a hashtag, and get Instagram's summary of it, related searches, and the posts and reels its page shows.

GET /v1/instagram/topics

What people use it for

  • Trend research: see the posts and reels Instagram leads with for a topic or a hashtag.
  • Keyword ideas: read the related searches Instagram suggests next to a topic.
  • Campaign tracking: follow a branded hashtag's page and the reels on it.

How it works with other endpoints

Each post's code goes to Post and Post comments. Post lists the topics a post is linked to, which this endpoint takes.

Limits

  • The posts and reels the topic's page shows; no next page.
  • Image and video links are signed by Instagram and expire after a while: save the files you need soon after the call.

Example request

const url = `${process.env.API_URL}/v1/instagram/topics?topic=harry+potter`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
topicNoA topic, such as harry potter, or a hashtag, with or without the #. Give topic or url.
urlNoA topic's link, instagram.com/popular/<topic>, or a hashtag's, instagram.com/explore/tags/<tag>. Give topic or url.

Example response

{
  "data": {
    "name": "harry-potter",
    "url": "https://www.instagram.com/popular/harry-potter/",
    "description": "Explore posts and reels about Harry Potter, from fan art to film locations.",
    "related": [
      "harry potter aesthetic",
      "hogwarts",
      "harry potter quotes"
    ],
    "posts": [
      {
        "id": "3507777777777777777",
        "code": "DcX9pQrLm2a",
        "url": "https://www.instagram.com/reel/DcX9pQrLm2a/",
        "type": "video",
        "is_reel": true,
        "caption": "Visiting the real Hogwarts #harrypotter",
        "created_at": null,
        "likes": 210000,
        "comment_count": 2400,
        "plays": 5600000,
        "thumbnail": "https://scontent.cdninstagram.com/v/t51.29350-15/topic-reel.jpg?oe=6750A1B2",
        "video_url": null,
        "width": null,
        "height": null,
        "author": "wizardingtravels",
        "author_id": "5600000000",
        "author_name": "Wizarding Travels",
        "author_verified": false
      }
    ]
  },
  "page": null,
  "meta": {
    "platform": "instagram",
    "endpoint": "topic",
    "params": {
      "topic": "harry potter"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-30T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

Does it work on hashtags?

Yes. Send a hashtag with or without the #, or a link to instagram.com/explore/tags/<tag>.

What is the description?

Instagram's own summary of the topic, written for its page.

Are reels' plays included?

Yes. A reel on a topic's page carries its plays.

Works with

Use cases

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required