# YouTube search with every filter, as JSON.

> Search YouTube videos, channels, playlists, Shorts and live streams with filters for length, date, sort, 4K, subtitles and licence. 3 credits per 20 results.

Videos, channels, playlists, shorts and live streams, filtered by length, upload date, features and sort, up to 100 results in one call.

[Get started](https://wagamiai.com/signup)

Sign up is open, no card needed. Read the [docs](https://wagamiai.com/docs) or the [plain-text reference](https://wagamiai.com/llms-full.txt).

### Every filter

The filters people use on YouTube: upload date, length, sort by views or date, and features such as 4K, HDR, subtitles, Creative Commons and live.

### Suggestions and hashtags

/v1/suggest returns what people type after a few letters, /v1/hashtag the videos on a hashtag page. Both are made for finding topics.

### Priced per answer

3 credits per 20 results ($1.50 per 1,000 searches of 20). A search that finds nothing costs nothing, and your balance is the only limit.

A search

## You send JSON. You get JSON.

Every field in the answer is named the same on every call.

- Videos, channels, playlists, shorts, live
- Up to 100 results a call
- Also an MCP tool: search_youtube

POST /v1/search

```
curl -X POST "https://wagamiai.com/v1/search" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "f1 onboard", "upload": "week", "duration": "short", "sort": "views", "limit": 20}'
```

answer

```
{ "ok": true,
  "items": [
    { "id": "…", "title": "…", "channel": "…",
      "channel_id": "…", "views": …,
      "duration": …, "published_ts": …,
      "thumbnail": "…" },
    …
  ] }
```

Questions

## Good to know

### What does a search cost?

3 credits per 20 results returned, at least 3 when anything comes back: $1.50 per 1,000 searches of 20 at the base rate. A search with no results is free. See [pricing](https://wagamiai.com/pricing).

### Can I search only Shorts or live streams?

Yes: set `kind` to `shorts` or `live`. Channels, playlists and movies have their own kinds too.

### Which filters are there?

Kind (video, channel, playlist, movie, shorts, live), upload date (hour to year), length (short, medium, long), sort (relevance, views, date, rating) and features (HD, 4K, HDR, subtitles, Creative Commons, live, 360, VR180, 3D and more). Every parameter is in the [docs](https://wagamiai.com/docs#search).

### Can an AI agent use it?

Yes, as the `search_youtube` tool on the [MCP server](https://wagamiai.com/mcp), or over plain HTTPS.

## One key. Pay per answer.

2,000 credits = $1, from $25. Credits never expire and errors are never charged.

[Get started](https://wagamiai.com/signup) [See pricing](https://wagamiai.com/pricing)

---
This is the Markdown copy of https://wagamiai.com/youtube-search-api (WagamiAI). Every page has one: add `.md` to its address. All pages: https://wagamiai.com/llms.txt
