---
title: "Search posts by keyword"
description: "Public posts that match a word or phrase on each platform, in a date window."
url: https://docs.sonderlabs.co.uk/search/keyword
---

# Search posts by keyword

Public posts that match a word or phrase on each platform, in a date window.

`GET /v1/search/keyword` (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.

Runs the platform's own search for `q` on every platform you list and returns the matching public posts in one shape. Results are fresh: each search reads the platforms at request time, then de-duplicates across them.

Use quotes for an exact phrase. Matching is the platform's: a TikTok search also matches spoken words and captions; a Reddit search matches titles and text.

## Platform support

- TikTok: Live
- Instagram: Limited. Instagram has no open keyword search: results come from popular and indexed public Reels, so niche terms can return few posts.
- YouTube: Live
- Facebook: Live. Most recent first.
- X: Live
- Threads: Limited. Recent public posts only; no deep paging.
- Reddit: Live
- Snapchat: Live

## Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | The word or phrase. |
| `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. |
| `sort` | query | string | no | `relevance` (default), `recent` or `views`. |
| `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/keyword \
  -H "Authorization: Bearer $SONDER_API_KEY" \
  --data-urlencode "q=red bull rampage" \
  -d platforms=tiktok,youtube,x \
  -d since=2026-10-01 \
  -d limit=25
```

JavaScript:

```js
const params = new URLSearchParams({
  q: "red bull rampage",
  platforms: "tiktok,youtube,x",
  since: "2026-10-01",
  limit: "25",
});
const res = await fetch(`https://yourteam.sonderlabs.co.uk/v1/search/keyword?${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/keyword",
    headers={"Authorization": f"Bearer {os.environ['SONDER_API_KEY']}"},
    params={
        "q": "red bull rampage",
        "platforms": "tiktok,youtube,x",
        "since": "2026-10-01",
        "limit": 25
    },
)
data = res.json()
```

Response:

```json
{
  "posts": [
    {
      "id": "9dda86b0e89c04f35bcbf8e8528fd7d0",
      "platform": "tiktok",
      "externalId": "7695058711135423766",
      "url": "https://www.tiktok.com/@reversecomponents/video/7695058711135423766",
      "creator": {
        "handle": "reversecomponents",
        "name": "Reverse Components",
        "followers": 27100
      },
      "caption": "RED BULL RAMPAGE 2026 is on! 🔥🔥🔥 Clips from the last practice runs of Szymon Godziek ⚔️",
      "hashtags": [],
      "postedAt": "2026-10-10T15:17:59Z",
      "durationSec": 40,
      "views": 30900,
      "viewsEstimated": false,
      "likes": 5936,
      "comments": 7,
      "shares": 114,
      "transcriptExcerpt": null,
      "onscreenText": null,
      "asOf": "2026-11-02T23:04:08Z"
    },
    {
      "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": "c2VhcmNoOjI1",
  "asOf": "2026-11-02T23:04:08Z"
}
```
