---
title: "Search what is said and shown"
description: "Posts Sonder holds whose speech, on-screen text or caption matches a phrase, with the matching line."
url: https://docs.sonderlabs.co.uk/search/inside-videos
---

# Search what is said and shown

Posts Sonder holds whose speech, on-screen text or caption matches a phrase, with the matching line.

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

Searches the words inside videos, not just their captions: what is said (transcripts) and what is written on screen. This finds the clip of an interview that never names the show in its caption, or a fan edit with the title burned in.

It searches posts Sonder already holds: your campaigns' posts and Sonder's trend data. Each result says where the match was (`said`, `onscreen` or `caption`) and quotes the line.

## Platform support

- TikTok: Live
- Instagram: Limited. Speech is searchable on Reels with 20,000 views or more; on-screen text and captions on all.
- YouTube: Live
- Facebook: Limited. Captions and the text on the post's image only; no speech.
- X: Limited. Captions and the text on the post's image only; no speech.
- Threads: Limited. Captions and the text on the post's image only; no speech.
- Reddit: Limited. Titles, text and the text on the post's image only; no speech.
- Snapchat: Limited. Spotlights only.

## Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | The phrase. |
| `where` | query | string | no | `said`, `onscreen`, `caption`, or a comma list. Default all three. |
| `campaign` | query | string | no | Only this campaign's posts. |
| `platforms` | query | string | no | Comma-separated platforms to search. Defaults to every platform that supports this search. |
| `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/inside \
  -H "Authorization: Bearer $SONDER_API_KEY" \
  --data-urlencode "q=what I can say on television" \
  -d where=said,onscreen
```

JavaScript:

```js
const params = new URLSearchParams({
  q: "what I can say on television",
  where: "said,onscreen",
});
const res = await fetch(`https://yourteam.sonderlabs.co.uk/v1/search/inside?${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/inside",
    headers={"Authorization": f"Bearer {os.environ['SONDER_API_KEY']}"},
    params={
        "q": "what I can say on television",
        "where": "said,onscreen"
    },
)
data = res.json()
```

Response:

```json
{
  "results": [
    {
      "post": {
        "id": "abf505e6a8dd939360d5beaec605b807",
        "platform": "youtube",
        "url": "https://www.youtube.com/shorts/1c19BTs-dQU",
        "creator": {
          "handle": "celebrityreporter1224"
        },
        "views": 6518916,
        "durationSec": 56
      },
      "match": {
        "where": "onscreen",
        "text": "I'm rapidly trying to think | about what I can say on | television"
      }
    }
  ],
  "next": null
}
```
