---
title: "Search posts by hashtag"
description: "Public posts under a hashtag."
url: https://docs.sonderlabs.co.uk/search/hashtag
---

# Search posts by hashtag

Public posts under a hashtag.

`GET /v1/search/hashtag` (coming soon)

> **Coming soon:** this endpoint is not served yet; the shape below is what it will look like. [Ask for it](https://docs.sonderlabs.co.uk/access) if you need it.

Reads the hashtag's own page on each platform: the posts filed under it, newest and most viewed. Leave off the `#`.

## Platform support

- TikTok: Live
- Instagram: Limited. Popular public posts and recent Reels under the hashtag, not its full archive.
- YouTube: Live
- Facebook: Limited. Searched as text: posts whose text contains the tag.
- X: Limited. Searched as text: posts whose text contains the tag.
- Threads: Not available. Threads has no hashtag pages.
- Reddit: Not available. Reddit has no hashtags; use subreddit search.
- Snapchat: Live

## Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `tag` | query | string | yes | The hashtag, without `#`. |
| `platforms` | query | string | no | Comma-separated platforms to search. Defaults to every platform that supports this search. |
| `since` | query | date | no | Earliest post date (ISO 8601). Defaults to 30 days ago. |
| `until` | query | date | no | Latest post date. Defaults to now. |
| `limit` | query | integer | no | Results per page, 1 to 100. Default 25. |
| `cursor` | query | string | no | The `next` value from the previous page. |

## Example

cURL:

```bash
curl -G https://yourteam.sonderlabs.co.uk/v1/search/hashtag \
  -H "Authorization: Bearer $SONDER_API_KEY" \
  -d tag=rampage \
  -d platforms=tiktok,youtube \
  -d limit=25
```

JavaScript:

```js
const params = new URLSearchParams({
  tag: "rampage",
  platforms: "tiktok,youtube",
  limit: "25",
});
const res = await fetch(`https://yourteam.sonderlabs.co.uk/v1/search/hashtag?${params}`, {
  headers: {
    Authorization: `Bearer ${process.env.SONDER_API_KEY}`,
  },
});
const data = await res.json();
```

Python:

```python
import os, requests

res = requests.get(
    "https://yourteam.sonderlabs.co.uk/v1/search/hashtag",
    headers={"Authorization": f"Bearer {os.environ['SONDER_API_KEY']}"},
    params={
        "tag": "rampage",
        "platforms": "tiktok,youtube",
        "limit": 25
    },
)
data = res.json()
```

Response:

```json
{
  "tag": "rampage",
  "posts": [
    {
      "id": "3b70da3b8927c24a1bc153cfe6bc2c89",
      "platform": "youtube",
      "externalId": "gRhWXJHej74",
      "url": "https://www.youtube.com/shorts/gRhWXJHej74",
      "creator": {
        "handle": "OutOfCollective",
        "name": "Out of Collective",
        "followers": 60600
      },
      "caption": "Szymon Godziek absolutely launching that gap #rampage #redbull #mtb",
      "hashtags": [
        "rampage",
        "redbull",
        "mtb"
      ],
      "postedAt": "2026-10-10T16:21:58Z",
      "durationSec": 24,
      "views": 4140448,
      "viewsEstimated": false,
      "likes": 23730,
      "comments": 88,
      "shares": 0,
      "transcriptExcerpt": null,
      "onscreenText": "RAMPAGE",
      "asOf": "2026-11-03T00:06:37Z"
    }
  ],
  "next": "aGFzaHRhZzoyNQ",
  "asOf": "2026-11-02T23:04:08Z"
}
```
