# Search Instagram top media by keyword

Searches public Instagram media for required `keyword` and returns top posts plus related keywords. `media_count` and `related_keywords_count` set result sizes; `cursor` pages.

- Platform: Instagram
- Request: `GET https://api.toolzerhub.com/v1/instagram/search/top`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/instagram/search/get-popular-search

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `keyword` | query | yes | string | Keyword or hashtag text to search public media for. |
| `media_count` | query | no | integer |  Default: 12. |
| `related_keywords_count` | query | no | integer | Number of related keyword suggestions to return, 0-50. Default: 10. |
| `include_description` | query | no | boolean | Whether to include a short topic description for the keyword. Default: true. |
| `cursor` | query | no | string | Pass the previous response's page_info.end_cursor value. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/instagram/search/top?keyword=<keyword>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
