# Instagram Hashtag search API (instagram.hashtag_search)

- Canonical page: [https://everyinfra.com/en/instagram-api/hashtag_search](https://everyinfra.com/en/instagram-api/hashtag_search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "instagram", "action": "hashtag_search", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of 15 per target, no next_page_token (to read further, page one target at a time with the single-target action; limit is ignored)
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=instagram&action=hashtag_search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | The word to search, such as `coffee`, one word per call, with or without #. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | Position from 1: the order of this row within this result. user_search: first the accounts returned by Instagram's search box (matched_by is search_box), in the search box's order; then the authors of posts found with this keyword, added to fill up the count (matched_by is post_author); results without matched_by carry the position at which Instagram ranks the account for this keyword. similar_profiles: the account's place among the similar accounts, ordered by followers. likers: the account's place in the list of likers. |
| name | Name of the object itself, for account, product and business capabilities. |
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| post_count | Total posts. null means not disclosed, not 0. |
| post_count_label | The post count as Instagram writes it, such as 2.2K posts. |
| url | Link to the record on the platform. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "instagram",
  "action": "hashtag_search",
  "params": {
    "keyword": "coffee"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "instagram",
        "action": "hashtag_search",
        "params": {
            "keyword": "coffee",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-21T07:18:47Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 5. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "instagram",
  "action": "hashtag_search",
  "results": [
    {
      "rank": 1,
      "name": "coffeecoffeecoffee",
      "id": "•••",
      "post_count": 1277620,
      "post_count_label": "1.2M posts",
      "url": "https://www.instagram.com/explore/tags/coffeecoffeecoffee/",
      "platform": "instagram"
    },
    {
      "rank": 2,
      "name": "coffeephotography",
      "id": "•••",
      "post_count": 1211660,
      "post_count_label": "1.2M posts",
      "url": "https://www.instagram.com/explore/tags/coffeephotography/",
      "platform": "instagram"
    }
  ],
  "count": 5,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=instagram
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
