# Instagram Hashtag Search

Search Instagram hashtags by keyword and get matching hashtags with their post counts. Returns up to ~55 hashtag suggestions in a single response (Instagram does not paginate this surface). An empty result list is a definitive answer: no hashtags match the keyword. A completed lookup costs one credit because every lookup uses costly dedicated Instagram proxies.

- **Documentation:** [https://scrappa.co/docs/instagram-api/instagram_hashtag_search](https://scrappa.co/docs/instagram-api/instagram_hashtag_search)
- **API group:** Instagram API
- **Endpoint:** `GET https://scrappa.co/api/instagram/hashtags/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | Yes | Search keyword (e.g. nature) |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/instagram/hashtags/search?q=nature"
```

## Example response

```json
{
    "success": true,
    "query": "nature",
    "hashtags": [
        {
            "id": "17841562498105353",
            "name": "nature",
            "media_count": 858237927,
            "formatted_media_count": "858M",
            "search_result_subtitle": "858M posts"
        }
    ],
    "hashtags_count": 55
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The q parameter is missing or empty. |
| 503 | Instagram Upstream Unavailable | Instagram rejected or failed all bounded attempts through approved proxies. Retry the request later. The request is retryable and does not consume credits. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
