API · Instagram
GET /instagram/search/hashtag
Instagram posts and reels carrying a hashtag.
| Request | GET /v1/instagram/search/hashtag |
| Operation id | instagram.search.hashtag |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Instagram posts and reels carrying a hashtag.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
hashtag | string | yes | Hashtag, with or without #. Example: funnydogs. |
media_type | "all" | "reels" | no | all (default) or reels. One of all, reels. |
date_posted | "last-day" | "last-week" | "last-month" | "last-year" | no | One of last-day, last-week, last-month, last-year. |
cursor | string | no | The previous page’s next_cursor. Omit for the first page. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Posts with the hashtag. | InstagramMediaList |
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 |
InstagramMediaList fields
| Field | Type | Description |
|---|---|---|
items | InstagramMedia[] | |
more_available | boolean | |
next_cursor | string | null | Pass as cursor for the next page; null on the last page. |
user | InstagramUserShort |
Errors use one shape everywhere; see Errors for every code and what to do.