API · Instagram
GET /instagram/search/popular
Instagram’s popular-search page for a topic: top posts, summary, related searches.
| Request | GET /v1/instagram/search/popular |
| Operation id | instagram.search.popular |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Instagram’s popular-search page for a topic: top posts, summary, related searches.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Topic. Example: basketball. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The topic page. | InstagramPopularSearch |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account or post does not exist, or was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Instagram is temporarily unavailable. Retryable; nothing was charged. | Error |
InstagramPopularSearch fields
| Field | Type | Description |
|---|---|---|
query | string | |
slug | string | The keyword page: instagram.com/popular/<slug>/. |
description | string | null | The summary Instagram shows on the keyword page, when it has one. |
related_keywords | string[] | |
items | InstagramMedia[] |
Errors use one shape everywhere; see Errors for every code and what to do.