# WagamiAI: the full reference

> WagamiAI is a research tool that works alongside YouTube, for creators and the AI agents that work for them. A web app finds niches that are breaking out, shows any channel's growth, estimated earnings and the videos carrying it, and turns that into your next video. The same research works inside your own AI (an MCP server for Claude, Cursor, VS Code and Windsurf) and through an API: search, channels, videos, transcripts, captions, comments, outlier videos, similar channels, media links for clips, image search, all as JSON over HTTPS. One key and one balance for all of it; errors are never charged. Sign up at https://wagamiai.com/signup.

Base URL: https://wagamiai.com. Not affiliated with YouTube or Google.
This is the whole API reference as plain text, for AI assistants and agents. The short version is https://wagamiai.com/llms.txt, the same as OpenAPI 3.1 is https://wagamiai.com/openapi.json, the MCP server page is https://wagamiai.com/mcp and the docs with examples are https://wagamiai.com/docs.

## What changed

Updates to the service, newest first. An entry that needs something from you says what to send. AI agents: read this section when you start, and again whenever an answer carries a notice field or an X-New-Address header.
- 9 Nov 2026, performance and reliability improvements. General improvements to speed, reliability and answers. Nothing changes on your side.

## Quick start

Base URL: https://wagamiai.com. Create an account, add credits, make a key in your client area, put it in an environment variable, then call any endpoint:

```bash
export WAGAMI_KEY="ytg_…"
curl -X POST "https://wagamiai.com/v1/video" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ"}'
```

```python
import os, requests

API = "https://wagamiai.com"
S = requests.Session()
S.headers["Authorization"] = f"Bearer {os.environ['WAGAMI_KEY']}"

r = S.post(f"{API}/v1/channel/videos", json={"ref": "@veritasium", "sort": "popular", "limit": 10})
r.raise_for_status()
for v in r.json()["items"]:
    print(v["views"], v["title"])

# pictures for any query
r = S.post(f"{API}/v1/images", json={"query": "mountain cabin at dusk", "layout": "wide", "limit": 10})
for img in r.json()["items"]:
    print(img["width"], img["height"], img["url"])
```

```javascript
const API = "https://wagamiai.com";
const r = await fetch(`${API}/v1/search`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.WAGAMI_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ query: "f1 onboard", duration: "short", upload: "week", limit: 10 }),
});
const data = await r.json();
if (!r.ok || !(data.ok ?? data.success)) throw new Error(`${r.status} ${data.class ?? ""}: ${data.error}`);
```

### A client in one file (no install)

Prefer not to write HTTP code? Fetch ytapi.py with your key (Python 3.8+, standard library only). It reads your key from WAGAMI_KEY (YTAPI_KEY works too) and the base URL from YTAPI_URL, waits out busy answers on its own, and saves media straight to disk. GET /v1 lists every endpoint.

```bash
export YTAPI_URL="https://wagamiai.com" WAGAMI_KEY="ytg_…"
curl -fsS -H "Authorization: Bearer $WAGAMI_KEY" -o ytapi.py "$YTAPI_URL/v1/client"

python3 ytapi.py video dQw4w9WgXcQ
python3 ytapi.py search "deep sea documentary" --limit 5
python3 ytapi.py endpoints
```

```python
from ytapi import Client, ApiError

api = Client()                       # reads WAGAMI_KEY / YTAPI_URL
print(api.video("dQw4w9WgXcQ")["video"]["title"])
api.clip("dQw4w9WgXcQ", 42, 52, "clip.mp4")   # media opens with your first payment
```

## AI agents

An AI agent can set itself up from this page or from GET /v1 (the same steps as JSON under agent_setup). It needs one thing from you: an API key. With the key, GET /v1/setup returns that key's own setup as plain text: what it may call, its limits, and, once media is open for it, how to install the media add-on and the one tool that joins video, so clips and videos are fetched, joined and cut on that machine. The add-on itself is public (GET /v1/plugin, no key needed); only the calls it makes use the key.
- Keep the key in the WAGAMI_KEY environment variable or an ignored .env file. Never print, log or commit it, and never send it to a browser.
- Run the steps in order and stop on the first error.
- Keep up by itself: when an answer has class addon_outdated or links_only, or carries addon_update, read GET /v1/setup again, follow it, and repeat the call. That is how changes are announced.
- Give an agent its own key with a credit cap and only the access it needs (Your account), so it can never spend more than you planned.

```bash
export WAGAMI_KEY="<your key>"          # PowerShell: $env:WAGAMI_KEY = "<your key>"
curl -s -H "Authorization: Bearer $WAGAMI_KEY" https://wagamiai.com/v1/limits   # the answer has "ok": true
curl -s -H "Authorization: Bearer $WAGAMI_KEY" https://wagamiai.com/v1/setup    # this key's setup: follow it
```

Without the add-on, your own code orders Clip, Video media or Audio with "delivery": "links" and joins the streams on its machine (Media links), or uses the developer client from GET /v1/client. If a call fails: 401 a wrong key; 402 out of credits or at the key's credit cap; 403 not enabled on the key; 429 a limit, so wait for Retry-After.

## MCP for AI agents

Agents that speak the Model Context Protocol (Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and other MCP clients) can use the API as tools, with nothing to install on our side. The address is https://wagamiai.com/mcp (Streamable HTTP, JSON answers) and it takes the same key as every other call, in the Authorization: Bearer header. Each tool runs the endpoint named beside it, with the same limits, access and prices; only answered calls are charged, and a refusal comes back to the agent as a tool error that says what to do (add credits, wait, fix an argument). Give the agent its own key with a credit cap (Your account).

Apps that connect by the address alone sign you in to your WagamiAI account instead of taking a key: No API key is needed. What the app uses is paid from your account's credits, at the same prices as a key.

```
1. Open Customize, then Connectors.
2. Press + Add, then Add custom connector.
3. Name it WagamiAI, paste the address https://wagamiai.com/mcp and press Continue.
4. Under Authentication keep Sign in now, leave OAuth client as it is, and press Add.
5. Sign in to your WagamiAI account and press Allow.
6. In a chat, press +, then Connectors, and switch WagamiAI on.
```

With a key in a header:

```
claude mcp add --transport http wagami https://wagamiai.com/mcp --header "Authorization: Bearer YOUR_WAGAMI_KEY"
```

```
{
  "mcpServers": {
    "wagami": {
      "url": "https://wagamiai.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_WAGAMI_KEY"
      }
    }
  }
}
```

```
{
  "servers": {
    "wagami": {
      "type": "http",
      "url": "https://wagamiai.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_WAGAMI_KEY"
      }
    }
  }
}
```

```
{
  "mcpServers": {
    "wagami": {
      "serverUrl": "https://wagamiai.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_WAGAMI_KEY"
      }
    }
  }
}
```

```
{
  "mcpServers": {
    "wagami": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://wagamiai.com/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer YOUR_WAGAMI_KEY"
      }
    }
  }
}
```

### Tools
- Tool | What (endpoint) | Credits
- search_youtube | Search YouTube (/v1/search) | Costs 3 credits per 20 results returned (at least 3 when anything comes back); an answer with nothing in it costs nothing.
- get_video | Video details (/v1/video) | Costs 3 credits a call.
- get_videos | Many videos at once (/v1/videos) | Costs 1 credit per video answered (YouTube's own verdicts, such as removed, count; one we could not read costs nothing); an answer with nothing in it costs nothing.
- get_channel | Channel details (/v1/channel) | Costs 3 credits a call.
- get_channel_videos | A channel's videos (/v1/channel/videos) | Costs 3 credits per 50 items returned (at least 3 when anything comes back); an answer with nothing in it costs nothing.
- get_playlist | Playlist (/v1/playlist) | Costs 3 credits per 50 videos returned (at least 3 when anything comes back); an answer with nothing in it costs nothing.
- get_comments | Comments (/v1/comments) | Costs 3 credits per 50 comments returned (at least 3 when anything comes back); an answer with nothing in it costs nothing.
- get_transcript | Transcript (/v1/transcript) | Costs 3 credits a call; an answer with nothing in it costs nothing.
- get_transcripts | Many transcripts at once (/v1/transcripts) | Costs 3 credits per transcript that comes back; a video with none in that language, or one that could not be read, costs nothing, and an answer with nothing in it costs nothing.
- get_captions | Timed captions (/v1/captions) | Costs 3 credits a call; an answer with nothing in it costs nothing.
- get_related_videos | Related videos (/v1/related) | Costs 3 credits a call; an answer with nothing in it costs nothing.
- get_similar_channels | Similar channels (/v1/similar) | Costs 15 credits a call; an answer with nothing in it costs nothing.
- get_channel_outliers | A channel's outlier videos (/v1/channel/outliers) | Costs 3 credits per 50 videos checked (window 60 = 6 credits); when no video beats the channel's usual views, an answer with nothing in it costs nothing.
- find_channels | Find channels (/v1/channels/find) | Costs 2 credits per channel returned; an answer with nothing in it costs nothing; max_credits caps a call.
- find_outlier_videos | Find outlier videos (/v1/videos/find) | Costs 1 credit per video returned; an answer with nothing in it costs nothing.
- get_channel_profiles | Channel profiles (/v1/channels/profile) | Costs 2 credits per channel returned; an answer with nothing in it costs nothing.
- check_monetization | Check monetization (/v1/channels/profile) | Costs 2 credits per channel returned; an answer with nothing in it costs nothing.
- get_title_formats | Title formats (/v1/titles/formats) | Costs 3 credits a call; an answer with nothing in it costs nothing.
- get_ideas | Video ideas (/v1/ideas) | Costs 5 credits a call; an answer with nothing in it costs nothing.
- list_niches | Niches (/v1/niches) | Costs 3 credits a call.
- get_community_posts | Community posts (/v1/posts) | Costs 3 credits per 50 posts returned (at least 3 when anything comes back); an answer with nothing in it costs nothing.
- get_hashtag_videos | Hashtag videos (/v1/hashtag) | Costs 3 credits per 50 videos returned (at least 3 when anything comes back); an answer with nothing in it costs nothing.
- get_search_suggestions | Search suggestions (/v1/suggest) | Costs 3 credits a call; an answer with nothing in it costs nothing.
- resolve_youtube_link | Resolve a link (/v1/resolve) | Costs 3 credits a call.
- get_thumbnail | Thumbnail (/v1/thumbnail) | Costs 3 credits a call.
- get_storyboard | Storyboard (/v1/storyboard) | Costs 3 credits a call; an answer with nothing in it costs nothing.
- search_images | Image search (/v1/images) | Costs 4 credits a search that finds at least one picture, nothing when none is found. Previews (the thumb links) are free; each full picture fetched through its fetch link costs 3.
- get_media_links | Video and audio links (/v1/download) | Costs 12 credits a minute up to 1080p and 36 above 1080p, counted by the second (a whole video counts its length, a clip or a range only its own length; parts of a credit carry over to the next order). Fetching the stream links it returns is free.
- channel_report | Channel report (/v1/report-fast) | Costs 3 credits a piece: one piece per video, one per 50 videos listed, with comments one per 50 comments per video, and with transcripts one per video (charged for what came back; 20 videos: 63 credits, with transcripts 123).
- get_playbook | Research plan (/v1/playbooks) | Free: it costs no credits.
- get_social_video | Facebook, Instagram or X video (/v1/social) | Costs 12 credits a minute of the post's videos together, counted by started minute (a length the site does not give counts as one minute); a post that is gone, not public or has no video costs nothing. Fetching the file links it returns is free.
- check_balance_and_limits | Balance and limits (/v1/limits) | Free: it costs no credits.

Protocol versions 2026-07-28 (metadata on every request, server/discover) and 2025-11-25, 2025-06-18 and 2025-03-26 (the initialize handshake) are served on the same address. Listing the tools is free. GET /v1/setup shows the same setups; put your own key where they say YOUR_WAGAMI_KEY. The same on one page, for people and agents: the MCP server page.

## Authentication

Every call needs Authorization: Bearer <key>. Keys start with ytg_. You make them in your client area, and each secret is shown once, when it is made. A lost secret can't be recovered: give that key a new secret in the client area (the old one stops at once) and update your code.
- Keep the key on your server. Never ship it in a browser or mobile app; the API does not answer browser requests from other sites.
- A key can be set to expire, and on request we can limit it to your own IP addresses. If either applies, you'll get a 403 with a plain reason.
- Too many failed attempts from one address are briefly blocked (429): 5 minutes at first, longer only if it keeps happening the same day. A valid key is never blocked this way.
- Our address is https://wagamiai.com (MCP: https://wagamiai.com/mcp). Code and MCP setups still on wagami.fun must change their base URL (same key, same paths): every answer there carries a notice field and an X-New-Address header. From 20 Feb 2027 wagami.fun refuses calls for part of every hour (410, class moved), and from 27 Feb 2027 it refuses all of them.
- Send a User-Agent header that names your app, for example my-app/1.0. Python's built-in urllib sends a default one that is refused with a 403. requests, httpx, curl and Node set their own and need nothing.

## Your account

Your account holds your credits, your keys and their history. Create one at /signup with your email and a password: no invite and no card needed. Choose a plan (it adds credits every month), make a key, and call the API or connect an agent over MCP. Already have an account? Sign in at /signin. Got an invite code (WG-XXXX-XXXX) or a setup link? Use /setup. Lost access? Ask us for a new link.

### Keys
- Make up to 20 keys, one per app, client or agent. All of them draw on your account's credits.
- Name: a label of your own, so usage reads clearly.
- Expiry: an optional last day. After it the key answers 403 key_expired.
- Credit cap: the most this key may spend (0 = no cap). At the cap it answers 402 key_credit_cap, while your other keys keep working.
- Access: choose which groups of endpoints a key may call; anything else answers 403 not_permitted. A key left open may call everything.
- Switch a key off and on, give it a new secret, or delete it. Its calls stay in your usage history.

### Usage and spend

The client area shows your balance and what you spent today and over 7 and 30 days, usage per day, per endpoint and per key, the latest calls with their status, time and credits, every credit added to your account, and a CSV export of your calls.

Media (download, clip and audio) opens with your account's first payment.

## Credits and billing

Calls are paid in credits: 2,000 credits = $1. Each call has a fixed price, listed below and on Pricing, and is taken from your account's balance.
- You pay only for a successful answer (any 2xx). Errors, refusals, limits and anything that fails on our side cost nothing.
- The same call asked again costs the same, whether its answer was fresh or ready already.
- Lookups, captions and transcripts (video, channel, related, suggestions, resolve, thumbnail, storyboard) cost 3 credits each ($1.50 per 1,000).
- Search costs 3 credits per 20 results returned (at least 3 when anything comes back). Lists cost 3 credits per 50 items returned (at least 3 when anything comes back): a channel's videos, shorts, live or playlists tab, playlist entries, comments, community posts and hashtag pages. That is $0.03 per 1,000 comments or videos.
- /v1/videos costs 1 credit per video answered (YouTube's own verdicts, such as removed or private, count; an item we could not answer this time, marked "retry": true, costs nothing), a thumbnail pack 3 per thumbnail in it. An answer with nothing in it costs nothing, on every route: a search with no results, an empty list of videos, comments, posts or related videos, no suggestions, no storyboard, a transcript or captions answer with no track in that language. An image search costs 4 credits ($2 per 1,000) when it finds at least one picture (up to 100 of them) and nothing when it finds none; previews are free and a full picture is 3 credits, once per link (image search API, image search prices compared).
- Media (whole video, clip, audio) costs 12 credits a minute up to 1080p ($6 per 1,000 minutes) and 36 above 1080p (1440p and 4K come with media on paid accounts), counted by the second: a whole video counts its length, a clip the clip (an 8 s clip is 1.6 credits). Parts of a credit carry over to your next media order, so every second is paid once and never rounded up; the call history shows each order's seconds and what was carried. Your balance is checked against the video's real length once it is known. An order for the whole video of a live stream, or one that has just ended, whose length is not known yet, answers 422 length_unknown and costs nothing: ask for a part with start and end. Fetching its stream links is free.
- A channel report is charged for what it returns, never more than the limits you asked for: 3 credits per video, plus 3 per 50 videos listed (a report on one video by its link has no listing), plus (with comments) 3 per 50 comments returned per video, plus (with transcripts) 3 per video. 100 videos cost 306 credits ($0.15); with a transcript for each, 606. Before it runs, your balance must cover the most it can cost. A queued report is paid at that most up front; what it did not use comes back to your balance (all of it if the report fails) and shows in your credit history. Asking for the same fast report again within 10 minutes, or while it is still running, answers at once with that report and is charged like it. Polling is free.
- GET /v1/limits, /v1/health, /v1/setup, /v1 and these docs are free.
- A media order whose links pass nothing before they end (5 hours) gets its credits back by itself.

### YouTube data
- Call | Endpoint | Credits
- Search videos, channels and playlists | /v1/search | 3 per 20 results
- Video details | /v1/video | 3 per call
- Channel details | /v1/channel | 3 per call
- Playlist | /v1/playlist | 3 per 50 videos
- Related videos | /v1/related | 3 per call
- Search suggestions | /v1/suggest | 3 per call
- Hashtag page | /v1/hashtag | 3 per 50 videos
- Resolve a link | /v1/resolve | 3 per call
- Thumbnail | /v1/thumbnail | 3 per call
- Storyboard (preview frames) | /v1/storyboard | 3 per call
- A channel's videos, shorts, live and playlists | /v1/channel/videos | 3 per 50 items
- Comments | /v1/comments | 3 per 50 comments
- Community posts | /v1/posts | 3 per 50 posts
- Similar channels | /v1/similar | 15 per call
- A channel's outlier videos | /v1/channel/outliers | 3 per 50 videos checked

### Research
- Call | Endpoint | Credits
- Find channels by topic and figures | /v1/channels/find | 2 per channel returned
- Channel profiles: figures and labels | /v1/channels/profile | 2 per channel
- Find outlier videos by topic and figures | /v1/videos/find | 1 per video returned
- Niches with their figures | /v1/niches | 3 per call
- Title formats that work, a draft title compared | /v1/titles/formats | 3 per call
- Video ideas from what is working | /v1/ideas | 5 per call

### YouTube data
- Call | Endpoint | Credits
- Timed captions | /v1/captions | 3 per call
- Plain text transcript | /v1/transcript | 3 per call

### Bulk
- Call | Endpoint | Credits
- Many videos in one call | /v1/videos | 1 per video
- Transcripts of many videos in one call | /v1/transcripts | 3 per transcript
- Thumbnails as one ZIP | /v1/thumbnails-zip | 3 per thumbnail

### Images
- Call | Endpoint | Credits
- Image search (up to 100 pictures) | /v1/images | 4 per search
- Full picture from a search result | /v1/image/{token} | 3 per picture

### Media
- Call | Endpoint | Credits
- Whole video up to 1080p | /v1/download | 12 per minute
- Clip up to 1080p | /v1/clip | 12 per minute
- Audio | /v1/audio | 12 per minute
- Facebook, Instagram or X video | /v1/social | 12 per minute
- Media above 1080p (1440p, 4K) | /v1/download · /v1/clip above 1080p | 36 per minute

### Reports
- Call | Endpoint | Credits
- Channel report | /v1/report | 3 per video
- Channel report in one call | /v1/report-fast | 3 per video

### When credits run out

A call your account can't pay for answers 402 and costs nothing. Branch on its class:
- Class | Meaning | What to do
- out_of_credits | The balance is below this call's price. The answer carries your balance. | Top up, then repeat the call. Free calls keep working.
- key_credit_cap | This key reached the credit cap you set for it. | Raise or clear the cap in the client area, or use another key.
- account_paused | The account is paused. | Ask in the support chat.
- account_required | This key is not part of a WagamiAI account yet. | Sign in to your account, or create one at /signup, and the key joins it.

```
HTTP/1.1 402 Payment Required

{"ok": false, "class": "out_of_credits", "balance": 0, "error": "…"}
```

Credits are taken as answers go out, so a burst of calls already in flight when the balance runs out can take it a little below zero; the next call is refused.

### Adding credits

Credits come with a plan: every plan adds credits each month, and while a plan is active you can add more as deposits from $5, at 2,000 credits per $1 from $20 (1,600 per $1 from $5, 1,800 from $10), with extra credits on bigger deposits (+5 % from $40, +10 % from $75, +15 % from $120, +25 % from $500 and above). A plan gives the same credits for each dollar as a deposit of the same amount. The top ups on Pricing are these steps: $5 (8,000 credits), $10 (18,000), $25 (50,000), $50 (105,000), $100 (220,000), $500 (1,250,000). Accounts that bought credits before 7 November 2026 keep the earlier extra credits (+10 % from $50, +20 % from $100, +35 % from $250, +60 % from $500) until 7 February 2027, and never get fewer credits than these steps. Credits never expire. In your client area, open Credits, pick a package or enter an amount and continue to the secure checkout. You pay on Stripe's secure checkout page (card, Apple Pay or Google Pay), and the credits are added as soon as the payment is confirmed. Deposits are final: see the Refund policy. Pressing pay again on an order that is still waiting reopens the same payment page for 20 minutes. We never see or keep your card details. The calculator on Pricing shows what a deposit buys.

## Errors

JSON answers carry "ok": true on success. The /api/* routes and the reports (/v1/report, /v1/report/{id}, /v1/report-fast) and /v1/thumbnails-zip use "success" instead, so check ok ?? success (and the HTTP status). Failures carry error in plain words and a stable class you can branch on. A failure you can try again says "retry": true and comes with a Retry-After header; one without "retry": true is final for what you sent: change what error says, then call again. A failed call is never charged.
- Status | Class | Meaning
- 400 | bad_request | The body is not a JSON object, or a field has the wrong type.
- 401 | key_missing · key_unknown · unauthorized | No key, or an unknown key.
- 402 | out_of_credits · key_credit_cap · account_paused · account_required | Your account cannot pay for this call, and nothing was charged: the balance is below the call's price (out_of_credits, with your balance; for media, the price of the video's real length; for a report, the most it can cost), this key reached the credit cap set for it (key_credit_cap; your other keys keep working), the account is paused (account_paused), or this key is not yet part of an account (account_required: sign in to your account, or create one, and the key joins it). Add credits or raise the key's cap in your client area, then repeat the call. See Credits and billing.
- 403 | not_permitted · key_disabled · key_expired · ip_not_allowed · media_off | The key lacks the permission for this call, is paused, past its end date, called from an address it doesn't allow, or media is not open for it yet (media_off: media opens with your account's first payment). A not_permitted answer names the permission it needed (needed) and lists what this key may call (allowed, the same list as GET /v1/limits), so a program or an AI agent can pick another route.
- 404 | unknown_route · link_expired · not_found | Unknown route (unknown_route; docs links this page), a media or picture link that has ended (link_expired: order again), or a job that isn't yours (not_found).
- 405 | wrong_method | The route takes the other method (GET or POST); error names the right one.
- 409 | links_only | A media order without delivery: "links": send "delivery": "links"; example is the exact call.
- 410 | addon_outdated · link_spent | An add-on older than the current one: the answer carries the one command that updates it; run it and repeat the call. A media link that passed along all it may (link_spent: ten times its stream for a link paid in credits): order again.
- 411 / 413 | bad_request · too_large | A chunked body, or a body over 64 KB.
- 422 | not_found · yt_unavailable · members_only · geo_block · drm · age_restricted · live_not_started · live_no_recording · post_live · not_available · no_tab · too_long · live · length_unknown · bad_ref · too_many_refs · bad_query · bad_input · restricted_content | YouTube's own answer about this item (retrying won't change it), or an invalid parameter: bad_ref (not a YouTube id, handle or link), too_many_refs (a batch over its limit: split it), bad_query (an empty or over-long search), bad_input (another parameter, such as an unsupported height; error names it). length_unknown: an order for the whole video of a live stream, or one that has just ended, whose length is not known yet; nothing is charged, ask for a part with start and end. restricted_content: adult, graphic or other harmful content, which is not available through the service (age_restricted likewise for videos YouTube marks for adults only); neither is charged.
- 429 | rate_limited · daily_quota · download_quota · endpoint_quota · slow_down · concurrency · jobs_open · busy | Too many calls at once (concurrency, or account_concurrency for your whole account), too many report jobs open, or busy media. Keys a partner gave out also have that partner's limits per minute, per day and per endpoint (rate_limited, daily_quota, download_quota, endpoint_quota, slow_down); keys on your own account have none of those. Wait for Retry-After. Every answer you can simply send again carries "retry": true.
- 500 | internal | Our own fault, not your call's. Try again after Retry-After (retry: true).
- 503 | busy | Busy right now. Try again shortly (retry: true).
- 504 | timeout | The call took longer than 90 seconds. It is not counted against your limits. Retry after Retry-After: the work often finishes meanwhile and the repeat is answered at once. Media never waits: its links come back at once.
Temporary errors. A 503 or 504 with "retry": true means YouTube is not answering for the moment. Wait for Retry-After and try again.

### What your code should do
- On 429, 503 and 504: wait the Retry-After seconds (plus a second or two at random), then retry. Give up after a few tries. A call that is refused or times out is never counted.
- On 402: stop and top up, or raise the key's credit cap. Retrying unchanged won't help.
- On any other 4xx: don't retry; fix the call. The error says what's wrong.
- Every answer carries an X-Request-Id. Quote it when you report a problem, and we can find that exact call.
- Keep your key on your server. Never put it in a web page, an app or a public repository. If it leaks, give it a new secret in your client area right away: the old one stops at once.

## Limits

Your balance is the only limit. Keys on your account have no cap on calls per minute, per day or per week, on downloads, or on batch calls: they work for as long as your balance covers them and stop with 402 out_of_credits when it runs out. Calls running at the same time never spend the same credits twice, so a key can't go past its balance. You can still give one key a spending cap of your own (402 key_credit_cap).
- What | Your keys | Notes
- credits | Your balance | The only limit. GET /v1/limits shows it under credits.
- max_concurrent | 12 per account | Calls in flight at once, shared by your keys. One more waits up to 40 s for a free slot, so a steady stream simply queues; only a call that waits longer gets 429.
- max_height | 1080 | The highest video resolution served: 1080p, or 2160p with media on paid accounts.
- max_seconds | 0 (none) | The longest video, clip or audio range you can get, in seconds, when your key has one; caps.max_seconds in GET /v1/limits is the one that counts for you. Longer asks answer 422 with class too_long; a longer video can still be cut into clips within it.

Keys a partner gave out keep that partner's limits per minute, day and week. For those, every answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (seconds until 00:00 UTC) and the 60-second window in X-RateLimit-Limit-Minute / X-RateLimit-Remaining-Minute, and GET /v1/limits shows what is left of each.

If media is busy you'll get 429 with Retry-After, so wait and try again.

### Choosing a resolution

Media opens with your account's first payment. /v1/download and /v1/clip take an optional height: "best" (the default) or one of 144, 240, 360, 480, 720, 1080, 1440, 2160. You get the tallest picture the video offers up to that height, and never more than your key's max_height. Every key gets up to 1080; 1440 and 2160 come with media on paid accounts. POST /v1/video returns a resolutions list with the heights a video offers. Any other value returns 422.

```bash
curl -X POST "https://wagamiai.com/v1/video" \
  -H "Authorization: Bearer $WAGAMI_KEY" -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ"}'          # ... "resolutions": [144, 240, 360, 480, 720, 1080]

curl -X POST "https://wagamiai.com/v1/download" \
  -H "Authorization: Bearer $WAGAMI_KEY" -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ", "height": 720, "delivery": "links"}'
```

## Endpoints

### Basics: Health (GET /v1/health)

Price: free. Needs the key.
Docs: https://wagamiai.com/docs#health

Status plus your key's remaining quota. media is ok, or busy when media orders should wait a moment. Free: it does not count against limits.

Example:
```bash
curl "https://wagamiai.com/v1/health" \
  -H "Authorization: Bearer $WAGAMI_KEY"
```

Returns:
```
{"ok": true, "status": "ok", "media": "ok", "time": "…", "limits": {…}}
```

### Basics: Limits (GET /v1/limits)

Price: free. Needs the key.
Docs: https://wagamiai.com/docs#key-limits

Your key's caps and what is left this minute, today (resets 00:00 UTC) and this week (resets Monday 00:00 UTC). A weekly cap of 0 means none, and its …_left is null. endpoints lists every endpoint group this key may call, with its endpoints, today's use and, where one is set, its daily cap per person (daily_cap), for the whole account (account_daily_cap) and what is left (left_today). A group not listed is not open to this key. For a key on an account, credits has the account's balance, what this key has spent (key_spent), its own cap (key_credit_cap, null = none) and where to add more (add). Free.

Example:
```bash
curl "https://wagamiai.com/v1/limits" \
  -H "Authorization: Bearer $WAGAMI_KEY"
```

Returns:
```
{"ok": true, "key": "you", "limits": {"per_min_left": 118, "daily_requests_left": 9500, "weekly_requests_left": null, …}, "caps": {"weekly_requests": 0, …}, "expires": null, "endpoints": [{"permission": "search.videos", "what": "…", "endpoints": ["POST /v1/search", …], "used_today": 12, "daily_cap": 500, "left_today": 488}, …]}
```

### Basics: Research plans (GET /v1/playbooks)

Price: free. Needs the key.
Docs: https://wagamiai.com/docs#playbooks

Step-by-step research plans for an assistant or an agent to follow: finding rising channels, sizing up a niche, studying a channel or a video, title, thumbnail and script studies, video ideas, a script outline, a production plan. Without a query: every plan in one line (name, family, title, about, needs). With ?name=NAME&about=TEXT: that plan's steps as plan, and under calls the endpoint behind every tool the steps name. Free.

Example:
```bash
curl "https://wagamiai.com/v1/playbooks" \
  -H "Authorization: Bearer $WAGAMI_KEY"
```

Returns:
```
{"ok": true, "playbooks": [{"name": "niche_scorecard", "family": "scout", "title", "about", "needs": "topic"}, …], "next"}
```

### Basics: Media add-on (GET /v1/plugin)

Price: free. No key needed.
Docs: https://wagamiai.com/docs#add-on

The media add-on as a zip, the same file for everyone. Public: no key is needed to fetch it, so an AI agent can fetch it before anything else. It uses your key only when it runs, and GET /v1/setup says how to install it. From 1.6 on it keeps itself up to date (at once when an answer says a newer one is out, else every 6 hours, in the background; WAGAMI_UPDATE=0 (or update=no in the add-on's options) turns that off). An older add-on is told on every answer: the field addon_update and the header X-Addon-Update name the current version and where to get it.

Example:
```bash
curl "https://wagamiai.com/v1/plugin" \
  -o wagami.zip
```

Returns:
```
wagami.zip (pyproject.toml + the add-on)
```

### Basics: Add-on version (GET /v1/plugin/version)

Price: free. No key needed.
Docs: https://wagamiai.com/docs#add-on-version

The current add-on version and the zip's sha256 and size. Public. An agent that installed the add-on compares it with the installed one (the add-on names its version in its User-Agent) and reinstalls from GET /v1/plugin when it is older.

Example:
```bash
curl "https://wagamiai.com/v1/plugin/version"
```

Returns:
```
{"ok": true, "version": "1.6", "sha256": "…", "size": 9000, "get": "https://…/v1/plugin"}
```

### Basics: Setup (GET /v1/setup)

Price: free. Needs the key.
Docs: https://wagamiai.com/docs#setup

This key's own setup as plain text: what it may call, its limits and, once media is open for it, how to install the media add-on. Made to be handed to an AI agent unchanged. Free.

Example:
```bash
curl "https://wagamiai.com/v1/setup" \
  -H "Authorization: Bearer $WAGAMI_KEY"
```

Returns:
```
WagamiAI API access
Base URL   https://…
API key    <the key you were sent>
Limits     …
Setup for an AI agent (paste this section to it as-is)
   1. …
```

### Search: Search (POST /v1/search)

Price: 3 credits per 20 results. Needs the key.
Docs: https://wagamiai.com/docs#search

YouTube search with every native filter.

Parameters:
- query (string, required): Search text, up to 300 characters.
- kind (string): video (default), channel, playlist, movie, shorts, live.
- limit (int): 1 to 100, default 20.
- upload (string): hour, today, week, month, year.
- duration (string): short (<4 min), medium (4 to 20), long (>20).
- sort (string): relevance, views, date, rating.
- features (string[]): Any of hd, 4k, hdr, subtitles, creative_commons, live, 360, vr180, 3d, location, purchased.
- sp (string): A raw YouTube sp filter token, if you already have one.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/search" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "deep sea documentary", "duration": "long", "sort": "views", "limit": 5}'
```

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

### Search: Mixed search (query string) (GET /api/search)

Price: 3 credits per 20 results. Needs the key.
Docs: https://wagamiai.com/docs#mixed-search

One call returns videos, channels and playlists, each tagged by type, with readable and machine fields side by side. Answers use a success envelope.

Parameters:
- q (string, required): Search text.
- type (string): all (default), video, channel, playlist, movie.
- sort_by (string): relevance, view_count, upload_date, rating.
- upload_date (string): all, hour, today, week, month, year.
- duration (string): all, short, medium, long.
- published_within_days (int): Only items published within this many days.
- limit (int): 1 to 100, default 30.

Example:
```bash
curl -G "https://wagamiai.com/api/search" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  --data "q=the+rise+and+fall&type=video&sort_by=view_count&published_within_days=3&limit=20"
```

Returns:
```
{"success": true, "count": 20, "has_more": true, "estimated_results": null, "results": [{"type": "video", "video_id", "view_count_text", "duration_text", …}]}
```

### Search: Autocomplete (POST /v1/suggest)

Price: 3 credits. Needs the key.
Docs: https://wagamiai.com/docs#suggest

YouTube's search suggestions for a prefix.

Parameters:
- query (string, required): Prefix text.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/suggest" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "how to b"}'
```

Returns:
```
{"ok": true, "suggestions": ["how to boil eggs", …]}
```

### Search: Hashtag (POST /v1/hashtag)

Price: 3 credits per 50 videos. Needs the key.
Docs: https://wagamiai.com/docs#hashtag

Videos on a hashtag page.

Parameters:
- tag (string, required): One hashtag, with or without #.
- limit (int): 1 to 200, default 60.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/hashtag" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tag": "travel", "limit": 20}'
```

Returns:
```
{"ok": true, "items": [...]}
```

### Channels: Channel (POST /v1/channel)

Price: 3 credits. Needs the key.
Docs: https://wagamiai.com/docs#channel

About facts: title, handle, subscribers, video count, links, description, avatar and banner.

Parameters:
- ref (string, required): Handle (@name), channel id (UC…) or channel URL.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/channel" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "@veritasium"}'
```

Returns:
```
{"ok": true, "channel": {"id", "title", "handle", "subscribers", "views", "video_count", "joined", "country", "links", "avatar", "banner", …}}
```

### Channels: Channel tab (POST /v1/channel/videos)

Price: 3 credits per 50 items. Needs the key.
Docs: https://wagamiai.com/docs#channel-videos

Rows from one channel tab.

Parameters:
- ref (string, required): Handle, channel id or URL.
- tab (string): videos (default), shorts, streams, podcasts, playlists.
- limit (int): 1 to 1000, default 60.
- sort (string): newest (default), popular, oldest.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/channel/videos" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "@veritasium", "tab": "videos", "sort": "popular", "limit": 25}'
```

Returns:
```
{"ok": true, "items": [{"id", "title", "views", "duration", "published_ts", "is_short", "live", "thumbnail", "url"}]}
```

### Channels: Community posts (POST /v1/posts)

Price: 3 credits per 50 posts. Needs the key.
Docs: https://wagamiai.com/docs#posts

Text, polls, images and shared videos from the community tab.

Parameters:
- ref (string, required): Handle, channel id or URL.
- limit (int): 1 to 100, default 30.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/posts" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "@mkbhd", "limit": 10}'
```

Returns:
```
{"ok": true, "items": [...]}
```

### Channels: Similar channels (POST /v1/similar)

Price: 15 credits. Needs the key.
Docs: https://wagamiai.com/docs#similar

Channels watched by the same viewers, strongest first, with the channels the creator lists on its own page. strength runs from 0 to 100; seen says how many of the channel's videos it showed up beside; picked is true when the creator lists it. Up to three of its videos come as examples. An answer with nothing in it costs nothing.

Parameters:
- ref (string, required): Handle, channel id or URL.
- limit (int): 1 to 50, default 20.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/similar" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "@veritasium", "limit": 10}'
```

Returns:
```
{"ok": true, "channel_id", "channel", "items": [{"channel_id", "channel", "handle", "url", "strength", "seen", "picked", "subscribers", "examples": [{"id", "title", "views", "url"}]}]}
```

### Channels: Channel outliers (POST /v1/channel/outliers)

Price: 3 credits per 50 videos checked. Needs the key.
Docs: https://wagamiai.com/docs#outliers

A channel's videos that beat its own usual views, biggest first, among the newest videos of a tab (window). Each video comes back with its multiple (how many times the channel's usual views), age_days and still_growing. The channel's channel, handle, subscribers and avatar come with it. 3 credits per 50 videos looked at; when none beat the usual it costs nothing.

Parameters:
- ref (string, required): Handle, channel id or URL.
- tab (string): videos (default) or shorts.
- window (int): How many of the newest videos to check: 10 to 300, default 60.
- min_multiple (number): 1 to 100, default 2.
- limit (int): 1 to 100, default 20.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/channel/outliers" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "@veritasium", "window": 100, "min_multiple": 2}'
```

Returns:
```
{"ok": true, "channel_id", "channel", "handle", "subscribers", "avatar", "tab", "min_multiple", "items": [{"id", "title", "views", "multiple", "age_days", "still_growing", "duration", "published_ts", "is_short", "thumbnail", "url"}]}
```

### Discovery: Find channels (POST /v1/channels/find)

Price: 2 credits per channel returned. Needs the key.
Docs: https://wagamiai.com/docs#channels-find

Channels by topic and figures, in any niche: for example new GTA channels that started in the last month and already average 50,000 views a video. Each channel carries its figures (subscribers, average and typical views, views a day and a month, uploads a week, average length, its best video against its usual views, growth, start date), its niche and sub_niche, who makes it (maker: faceless, mostly_faceless, ai_avatar, clips, compilation, presenter_led, official; faceless true or false once known), its style and format, whether it is monetized, an estimated RPM and monthly revenue range in US dollars, its three best videos, and as_of: when its figures were read. With a topic, only channels that are about it come back, and summary gives the topic's own figures over every channel that matched. 2 credits per channel returned; nothing found costs nothing; max_credits caps a call.

Parameters:
- topic (string): Words to look for, for example GTA, true crime, stoicism. Optional when other filters are given.
- niche / sub_niche (list): Niche ids from /v1/niches.
- faceless (bool): true: only channels known to have no person on camera, or an AI presenter; false: only channels known to be something else. Left out: every channel. With either, maker_unknown in the answer counts the channels that match with their maker not known yet.
- maker / style / format (list): Values from /v1/niches (makers, styles, formats). maker also takes unknown: channels whose maker is not known yet.
- form (string): any (default), long, short, mixed.
- min_ / max_ figures (number): subscribers, avg_views, median_views, monthly_views, views_per_day, uploads_per_week, avg_length_seconds, videos, total_views, outlier, growth, rpm_usd, monthly_revenue_usd, each as min_… and max_….
- started_within_days (int): The channel's first upload in the last N days. Also started_after / started_before (YYYY-MM-DD) and active_within_days (last upload).
- sort (string): relevance (default with a topic), best (default without), views_per_subscriber, monthly_views, newest, subscribers, avg_views, median_views, views_per_day, growth, outlier, revenue, uploads, added, active.
- limit / page (int): 1 to 50 a page (default 20); page from 1.
- live (string): auto (default): the fullest answer; never: the quickest answer; fresh: page 1 also brings up to fresh_max channels found right now (needs a topic), first in the list.
- fresh_max (int): With live: "fresh": at most this many more channels, 1 to 12 (default 6).
- max_credits (int): The most this call may cost.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/channels/find" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"topic": "GTA", "started_within_days": 31, "min_avg_views": 50000, "limit": 6}'
```

Returns:
```
{"ok": true, "query", "filters", "page", "limit", "total", "has_more", "items": [{"id", "title", "handle", "url", "avatar", "subscribers", "avg_views", "median_views", "views_per_day", "monthly_views", "uploads_per_week", "avg_length_seconds", "best_outlier", "growth", "started", "age_days", "last_upload", "form", "niche": {"id", "name"}, "sub_niche", "maker", "faceless", "style", "format", "language", "country", "monetized", "est_rpm_usd": {"low", "high"}, "est_monthly_revenue_usd": {"low", "high"}, "top_videos": [{"id", "title", "views", "outlier", "published", "thumbnail", "url"}], "as_of"}]}
```

### Discovery: Find outlier videos (POST /v1/videos/find)

Price: 1 credit per video returned. Needs the key.
Docs: https://wagamiai.com/docs#videos-find

Videos far above their own channel's usual views, on any topic: the ideas that worked. Each comes with its outlier (how many times its channel's usual views), its title_format, its channel (name, subscribers, niche, maker), its thumbnail and as_of: when its figures were read. With a topic the answer also carries title_formats: the title formats those videos use, each with how many videos and channels use it and real titles as examples. 1 credit per video returned; nothing found costs nothing.

Parameters:
- topic (string): Words in the title, for example GTA.
- niche / sub_niche / maker (list): As in /v1/channels/find; also faceless, monetized and language.
- min_outlier (number): Default 3.
- live (string): auto (default): the fullest answer; never: the quickest answer.
- published_within_days (int): Only videos from the last N days. Also channel_started_within_days.
- min_ / max_ figures (number): views, subscribers (the channel's), length_seconds, outlier.
- form (string): any (default), long, short.
- per_channel (int): Videos of one channel at most, 1 to 50. With a topic the default is 2, so a list is of many channels.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/videos/find" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"topic": "GTA", "max_subscribers": 50000, "published_within_days": 30, "min_outlier": 5}'
```

Returns:
```
{"ok": true, "query", "filters", "total", "has_more", "items": [{"id", "title", "views", "outlier", "published", "age_days", "length_seconds", "is_short", "thumbnail", "url", "channel": {"id", "title", "handle", "subscribers", "median_views", "started", "niche", "maker", "faceless"}}]}
```

### Discovery: Title formats (POST /v1/titles/formats)

Price: 3 credits. Needs the key.
Docs: https://wagamiai.com/docs#titles-formats

The title formats that work for a topic, niche or channel: each with how many videos and channels use it, their median views and how far above their channel's usual they typically go, templates such as {N} things about {X} nobody noticed and real titles as examples. Send a draft title too and it comes back read and compared: its title_formats, template, features, the formats it shares and formats_it_lacks with examples. A draft title sent alone (no topic, niche or channel) is read and costs nothing. 3 credits a call.

Parameters:
- title (string): A draft title, 1 to 300 characters.
- limit (int): 1 to 20 formats (default 15).
- live (string): auto (default): the fullest answer; never: the quickest answer.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/titles/formats" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"topic": "GTA 6", "title": "Lucia's best moments"}'
```

Returns:
```
{"ok": true, "query", "filters", "videos_weighed", "title_formats": [{"id", "label", "family", "videos", "channels", "median_views", "median_outlier", "templates", "examples"}], "title": {"title", "title_format", "title_formats", "template", "features", "compared_with", "shared_formats", "formats_it_lacks", "usual_characters", "usual_words"}}
```

### Discovery: Video ideas (POST /v1/ideas)

Price: 5 credits. Needs the key.
Docs: https://wagamiai.com/docs#ideas

Video ideas from what is working, each a draft title with the real video that proves it (proof: title, views, outlier, channel), its title format and the name it is about (subject). mode today (the default): the formats standing out in a topic, niche or channel now, filled with the names its newest videos are about. like: more like one title, with the videos alike. bend: the formats working in from carried into to, each with in_target: its state there (not_done, rare, done_and_working, done_did_not_stand_out). The answer also carries the formats and subjects the ideas come from. 5 credits a call.

Parameters:
- mode (string): today (default), like (needs title), bend (needs from and to).
- title (string): Mode like: the title to make more like. Without a topic, niche or channel its own subject is where to look.
- from / to (object): Mode bend: each a topic, niche, sub_niche or channel, with any filter.
- limit (int): 1 to 30 ideas (default 12).
- live (string): auto (default) or never.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/ideas" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode": "bend", "from": {"topic": "GTA 6"}, "to": {"topic": "Red Dead Redemption"}}'
```

Returns:
```
{"ok": true, "mode", "source", "target", "source_videos", "target_videos", "ideas": [{"draft", "title_format", "label", "template", "subject": {"name", "videos", "channels"}, "proof": {"id", "title", "views", "outlier", "url", "channel"}}], "formats": [{"id", "label", "videos", "median_outlier", "templates", "proof", "in_target": {"videos", "share", "state", "example"}}], "subjects": [{"name", "videos", "channels", "median_outlier", "example"}]}
```

### Discovery: Channel profiles (POST /v1/channels/profile)

Price: 2 credits per channel. Needs the key.
Docs: https://wagamiai.com/docs#channels-profile

Figures and labels for up to 25 channels you name, any channel on YouTube: the same fields as /v1/channels/find. not_found lists the ones that could not be read. 2 credits per channel. With detail: true the first 5 channels also carry insight: history (subscribers, views and videos day by day), change, look (format, style, how its videos are told and a short description of how they look), breakouts (its uploads far past its usual views), reasons (plain sentences), ideas (title ideas from its breakouts), room (sub-niches beside it), alike (channels like it) and writeup (why it works, in plain sentences: summary, titles, thumbnails, opening, script, format, rhythm, and make_next: up to 3 videos to make, each a title and an angle). Parts with nothing in them are left out.

Parameters:
- refs (list, required): 1 to 25 channels: @handle, UC… id or channel link.
- live (string): auto (default) or never.
- detail (bool): Add insight to the first 5 channels (no extra credits).
- refresh (bool): Bring figures that have grown old up to date.
- check_monetization (bool): Check now whether each channel is monetized: a channel whose answer is older than a day, not known yet or never checked is checked in this call (any channel on YouTube); one checked in the last day is given as it is. monetized is true, false or null (cannot be told yet) and monetized_as_of says when it was checked. Same price.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/channels/profile" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"refs": ["@veritasium", "@kurzgesagt"], "detail": true}'
```

Returns:
```
{"ok": true, "not_found": [], "items": [{"id", "title", "subscribers", "niche", "maker", "faceless", "est_monthly_revenue_usd", "views_per_subscriber", "top_videos", "as_of", "insight": {"history", "change", "look", "breakouts", "reasons", "ideas", "room", "alike", "writeup"}, …}]}
```

### Discovery: Niches (POST /v1/niches)

Price: 3 credits. Needs the key.
Docs: https://wagamiai.com/docs#niches

Every niche with its figures: how many channels, the share without a person on camera and of Shorts channels, median views and subscribers, an estimated RPM range, growth, how many channels started in the last 30 and 365 days, outlier videos in the last 30 days, title formulas that work, the thumbnail style that works, and its sub-niches with their channel counts. It also lists the makers, styles, formats and sorts the find routes take. Send compact: true for the figures alone, or name niches to get only those in full. 3 credits a call.

Parameters:
- niche (list): Niche ids to get in full (from a compact answer).
- compact (bool): true: every niche with its figures only, without formulas and sub-niches.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/niches" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"compact": true}'
```

Returns:
```
{"ok": true, "library": {"channels", "videos"}, "niches": [{"id", "name", "group", "about", "channels", "faceless_share", "shorts_share", "median_views", "median_subscribers", "est_rpm_usd", "growth", "new_channels_30d", "outlier_videos_30d", "title_formulas", "thumbnail_style", "sub_niches": [{"id", "name", "channels"}]}], "makers", "styles", "formats", "channel_sorts", "video_sorts"}
```

### Videos: Video (POST /v1/video)

Price: 3 credits. Needs the key.
Docs: https://wagamiai.com/docs#video

Full metadata for one video, including the resolutions it offers (the standard heights up to max_height), approx_mb (about how many MB the whole video is at each height, when YouTube states it), max_fps, codecs, aspect_ratio, the license text (for example Creative Commons), the song it lists (music), location, release_timestamp (a premiere or a planned live) and live_viewers while it is live. Fields YouTube does not show for a video are null.

Parameters:
- ref (string, required): Video id or any YouTube video link (watch, shorts, live, embed, youtu.be; with or without https://).
- page (bool): Adds more facts about the video: ads, ad_breaks, midroll, ai_label, spoken_lang, made_for_kids, family_safe, category, related.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/video" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ", "page": true}'
```

Returns:
```
{"ok": true, "video": {"id", "title", "description", "channel", "channel_id", "views", "likes", "comments", "duration", "upload_date", "chapters", "heatmap", "tags", "live", "availability", "caption_langs", "max_height", "resolutions", "approx_mb": {"720": 54.2, "1080": 95.0}, "max_fps", "codecs", "license", "music", …}}
```

### Videos: Videos (batch) (POST /v1/videos)

Price: 1 credit per video. Needs the key.
Docs: https://wagamiai.com/docs#videos

Many videos in one call: up to 200 are read a call, 1 credit per video answered. Refs past that, and any not reached in the call's time, come back with "retry": true and cost nothing: send them again. A failed item carries its own error; the rest still return.

Parameters:
- refs (string[], required): 1 to 1,000 ids or URLs (200 read a call).
- page (bool): As in /v1/video.
- max_credits (int): The most this call may spend: fewer videos are read, the rest come back to send again.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/videos" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"refs": ["dQw4w9WgXcQ", "jNQXAC9IVRw"]}'
```

Returns:
```
{"ok": true, "items": [{…}, {"id": "…", "error": {"class", "error"}}]}
```

### Videos: Comments (POST /v1/comments)

Price: 3 credits per 50 comments. Needs the key.
Docs: https://wagamiai.com/docs#comments

Comment threads.

Parameters:
- ref (string, required): Video id or URL.
- limit (int): 1 to 500, default 100.
- sort (string): top (default) or new.
- replies (bool): Include replies.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/comments" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ", "limit": 50, "sort": "top"}'
```

Returns:
```
{"ok": true, "items": [{"author", "text", "likes", "timestamp", …}]}
```

### Videos: Captions (POST /v1/captions)

Price: 3 credits. Needs the key.
Docs: https://wagamiai.com/docs#captions

Timed caption cues, the manual track first, then the automatic one.

Parameters:
- ref (string, required): Video id or URL.
- lang (string): Language code, default en.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/captions" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ", "lang": "en"}'
```

Returns:
```
{"ok": true, "captions": {"id", "lang", "kind": "creator|automatic", "lines": [{"t", "d", "text"}]}}
```

### Videos: Transcript (POST /v1/transcript)

Price: 3 credits. Needs the key.
Docs: https://wagamiai.com/docs#transcript

The captions as plain text.

Parameters:
- ref (string, required): Video id or URL.
- lang (string): Default en.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/transcript" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ"}'
```

Returns:
```
{"ok": true, "transcript": "Today we look at three simple ways to light a small studio…"}
```

### Videos: Transcripts (batch) (POST /v1/transcripts)

Price: 3 credits per transcript. Needs the key.
Docs: https://wagamiai.com/docs#transcripts

Plain-text transcripts of many videos in one call (up to 50 read a call), in the order asked. A video with none in that language has an empty transcript and a hint naming the languages it has; one that cannot be read carries an error of its own (with "retry": true when asking again usually works). kind is creator or automatic. 3 credits per transcript that comes back.

Parameters:
- refs (array, required): 1 to 1,000 video ids or URLs (50 read a call; the rest come back to send again, free).
- lang (string): Default en.
- max_credits (int): The most this call may spend.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/transcripts" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"refs": ["dQw4w9WgXcQ", "jNQXAC9IVRw"]}'
```

Returns:
```
{"ok": true, "items": [{"id", "lang", "kind", "transcript"}, {"id", "error": {"class", "error", "retry"}}]}
```

### Videos: Related (POST /v1/related)

Price: 3 credits. Needs the key.
Docs: https://wagamiai.com/docs#related

The related videos YouTube shows beside a video.

Parameters:
- ref (string, required): Video id or URL.
- limit (int): 1 to 50, default 20.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/related" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ", "limit": 10}'
```

Returns:
```
{"ok": true, "items": [...]}
```

### Videos: Storyboard (POST /v1/storyboard)

Price: 3 credits. Needs the key.
Docs: https://wagamiai.com/docs#storyboard

Preview sprite sheets (the frames shown when you hover the progress bar) with their grid layout. Frame k (counting across the sheets) shows the video at k × interval_s seconds, YouTube's own spacing (1, 2, 5 or 10 s); null means the frames are spread evenly over duration.

Parameters:
- ref (string, required): Video id or URL.
- view (bool): true: the sheets themselves come back as pictures (pictures: each with sheet, from_s, to_s, mime, bytes and picture_base64), for an assistant to look through the video. Same price.
- sheets (int): With view: 1 to 4 sheets spread over the video, default 2.
- at (number): With view: start at this second of the video.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/storyboard" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ"}'
```

Returns:
```
{"ok": true, "storyboard": {"id", "duration", "rows", "cols", "frame_width", "frame_height", "frames", "interval_s": 10.0, "sheets": ["https://i.ytimg.com/sb/…"]}}
```

### Videos: Thumbnail (POST /v1/thumbnail)

Price: 3 credits. Needs the key.
Docs: https://wagamiai.com/docs#thumbnail

The best thumbnail URL, or the image bytes themselves with bytes: true. With view: true the picture comes back inside the answer (picture_base64 beside url, quality, mime, bytes) for an assistant to look at; with refs up to 8 videos' thumbnails come back together (pictures, and not_shown for any that had none), each one shown at the price of a thumbnail.

Parameters:
- ref (string): Video id or URL.
- refs (array): Up to 8 video ids or URLs, in place of ref: their thumbnails as pictures in one answer.
- view (bool): true: the picture itself in the answer (size hq unless quality is given).
- quality (string): maxres (default), sd, hq, mq, default.
- bytes (bool): Stream the image. You can also pass url for any YouTube image (avatar, banner, storyboard tile).

Example:
```bash
curl -X POST "https://wagamiai.com/v1/thumbnail" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ", "quality": "maxres"}'
```

Returns:
```
{"ok": true, "url": "https://i.ytimg.com/vi/…/maxresdefault.jpg"}
```

### Videos: Resolve (POST /v1/resolve)

Price: 3 credits. Needs the key.
Docs: https://wagamiai.com/docs#resolve

Turns a handle, channel URL or custom URL into the canonical channel id.

Parameters:
- ref (string, required): Handle, channel URL or id.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/resolve" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "@veritasium"}'
```

Returns:
```
{"ok": true, "resolved": {"id", "handle", "title", "url"}}
```

### Playlists: Playlist (POST /v1/playlist)

Price: 3 credits per 50 videos. Needs the key.
Docs: https://wagamiai.com/docs#playlist

Playlist facts and entries.

Parameters:
- ref (string, required): Playlist id (PL…) or URL.
- limit (int|"all"): 1 to 1000 or "all", default 200.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/playlist" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "PLFs4vir_WsTwEd-nJgVJCZPNL3HALHHpF", "limit": 25}'
```

Returns:
```
{"ok": true, "playlist": {"id", "title", "count", "entries": [...]}}
```

### Images: Image search (POST /v1/images)

Price: 4 credits per search. Needs the key.
Docs: https://wagamiai.com/docs#images

Pictures for any query, in one list, and the same picture never comes back twice. Each item gives the picture's own address (url), the page it is on and its site (items[].page, items[].host), its size and format, and two links on this service: thumb, a small preview, and fetch, the full picture (see Picture links). 4 credits for a search that finds at least one picture (up to 100 of them); a search that finds none is free. It needs the images.search permission on keys with limited access. The answer repeats the filters the search ran with (filters), in the names you sent. Filters narrow what is found; min_width, min_height and format are checked on each picture, so asking for them can bring back fewer pictures than limit.

Parameters:
- query (string, required): What to look for, 1 to 200 characters.
- limit (int): 1 to 100, default 30.
- safe (string): Always strict: adult pictures are never returned. moderate and off are still accepted and give the same strict results.
- size (string): small, medium, large, wallpaper.
- type (string): photo, clipart, gif, line (line drawings), transparent.
- layout (string): square, wide, tall.
- color (string): color, mono, or one of red, orange, yellow, green, blue, purple, pink, brown, black, gray, white.
- license (string): any (the default: the licence doesn't matter), creative_commons (any Creative Commons licence), commercial (Creative Commons that allows commercial use), public_domain; also modify and modify_commercial (free to change, and to change for commercial use). The older names share, share_commercial and public still work and mean the same as creative_commons, commercial and public_domain. The licence is what the picture's site reports, and a filter, not a grant: every item carries the page it came from (items[].page, null in the rare case it is not known), so check that page for the terms before you publish or reuse the picture.
- time (string): day, week, month, year: only pictures found within that time.
- people (string): face (faces in close up) or portrait (head and shoulders). Best effort: some results may still not show a person.
- min_width (int): 1 to 10000: the smallest width in pixels. Checked on each picture whose size is known; a picture of unknown size (width null) is kept.
- min_height (int): 1 to 10000: the smallest height in pixels, checked the same way.
- format (string): jpg, png, gif, webp. Only pictures known to be in that format come back (items[].format says jpeg for jpg).
- page (int): 1 to 5, default 1: the next pages of results for the same query.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/images" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "northern lights over a lake", "layout": "wide", "license": "commercial", "min_width": 1920, "limit": 30}'
```

Returns:
```
{"ok": true, "query": "northern lights over a lake", "filters": {"safe": "strict", "layout": "wide", "license": "commercial", "min_width": 1920}, "count": 30, "items": [{"id": "…", "title": "Aurora above the still lake", "url": "https://example.org/photos/aurora.jpg", "page": "https://example.org/gallery/aurora", "host": "example.org", "width": 2400, "height": 1350, "format": "jpeg", "thumb": "https://wagamiai.com/v1/image/…?w=thumb", "fetch": "https://wagamiai.com/v1/image/…"}, …]}
```

### Images: Picture links (GET /v1/image/{token})

Price: 3 credits per picture. No key needed.
Docs: https://wagamiai.com/docs#image-link

The thumb and fetch links of an image search answer (if one starts with /, put your base URL in front). They need no header: each is signed for the key that searched and works for 24 hours, so a thumb link can go straight into an <img> tag. ?w=thumb gives a small preview, free and not counted. Without it you get the full picture (any image/*, up to 15 MB) for 3 credits, charged once per link: fetching the same link again is free. A picture its site no longer has, does not share or that is not a picture answers 404 with class: not_found (take another result: asking again will not help); one that could not be reached just now answers 502. Neither costs anything. A link that ended answers 404 with class: link_ended: search again. Keep fetch links on your side: each full picture is charged to your key.

Parameters:
- token (path, required): From items[].thumb or items[].fetch.
- w (query): thumb: the small preview (free).

Example:
```bash
curl "https://wagamiai.com/v1/image/{token}" \
  -o picture.jpg
```

Returns:
```
Picture bytes (Content-Type image/jpeg, image/png, …) · 404 when the link ended or is unknown
```

### Media: Video media (POST /v1/download)

Price: 12 credits per minute · 36 above 1080p. Needs the key.
Docs: https://wagamiai.com/docs#download

Media opens with your account's first payment. Answers at once (200) with the video's picture and sound as two streams links (up to the height you choose, within your key's cap). Your machine fetches them and joins them into one MP4: see Media links. The media add-on and the developer client (GET /v1/client) do all of it by themselves; your key's GET /v1/setup has the exact commands. An order without delivery: "links" answers 409 links_only with what to send instead. A live stream, or one that has just ended, has no length yet: an order for the whole video answers 422 length_unknown and costs nothing; ask for a part with Clip (start and end).

Parameters:
- ref (string, required): Video id or URL.
- height (string|int): best (default) or 144, 240, 360, 480, 720, 1080, 1440, 2160. You get the tallest picture the video offers up to that height, never above your key's max_height. Up to 1080 on every key; 1440 and 2160 come with media on paid accounts.
- audio (bool): false: the picture alone (one video stream, no sound). Default true: picture and sound.
- delivery (string, required): links.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/download" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "jNQXAC9IVRw", "height": 720, "delivery": "links"}'
```

Returns:
```
{"ok": true, "kind": "download", "video": {"id", "title", "channel", "duration", …}, "streams": [{"kind": "video", "url": "/v1/media/…", "format_id": "v720", "ext": "mp4", "codec": "avc1…", "width": 1280, "height": 720, "fps": 30, "size": …}, {"kind": "audio", "url": "/v1/media/…", "format_id": "a128", "ext": "m4a", "codec": "mp4a…", "size": …}], "expires_in": 18000}
```

### Media: Clip (POST /v1/clip)

Price: 12 credits per minute · 36 above 1080p. Needs the key.
Docs: https://wagamiai.com/docs#clip

A time range, up to your key's max_seconds (GET /v1/limits). Media opens with your account's first payment. Answers at once like Video media, plus cut: {"start", "end"}. Your machine reads just that range of each stream (byte ranges) and cuts on the exact frame; see Media links. With clip_only: true each link is a small file of only the part of the video around the clip (a few MB, not the whole video): save it in full, then cut each stream at its own cut_in_file. Without it, a plain download of a link (no Range) gives the video from its start to the end of the clip: the clip stays at its own times and nothing past it is sent or charged; reading in parts (Range, as players and media tools do) reaches the whole video. With clip_only: false a plain download gets the whole video too. Several parts of one video: send cuts instead of start and end. One order answers them all, in clips: each with its own cut and streams (clip-only unless you send clip_only: false), each charged by its own seconds. A part that starts past the video's end comes back as {"cut", "ok": false, "class": "bad_input", "error"} and costs nothing.

Parameters:
- ref (string, required): Video id or URL.
- start (number|string): Seconds (42.8) or a time ("1:05.5", "1:02:03.25"), to the millisecond. Required unless you send cuts.
- end (number|string): Same forms; end − start at most your key's max_seconds. Required unless you send cuts.
- cuts (cut[]): 1-10 parts of the same video, each {"start", "end"} in the same forms, each at most your key's max_seconds. Use it instead of start and end when you need several shots from one video: one order, one answer, faster than one order per shot.
- height (string|int): As in Video media.
- audio (bool): false: the picture alone, as in Video media.
- clip_only (bool): true: each stream's link holds only the part of the video around the clip, and each stream says clip_only: true, starts_at (the video time its file begins at) and cut_in_file ({"start", "end"}: where the clip lies inside that file). A stream that says clip_only: false is the whole video: read its cut range as without the option. Recommended; the add-on (1.8) and the developer client (1.3) use it.
- delivery (string, required): links.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/clip" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ", "start": 42, "end": 52, "height": 1080, "delivery": "links", "clip_only": true}'
```

Returns:
```
{"ok": true, "kind": "clip", "video": {…}, "streams": [{"kind": "video", …, "size": 2418260, "clip_only": true, "starts_at": 40.04, "cut_in_file": {"start": 1.96, "end": 11.96}}, {"kind": "audio", …}], "cut": {"start": 42.0, "end": 52.0}, "expires_in": 18000}
// with "cuts": [{"start": 42, "end": 46}, {"start": 95.5, "end": 99}]
{"ok": true, "kind": "clip", "video": {…}, "clips": [{"cut": {"start": 42.0, "end": 46.0}, "streams": [{"kind": "video", …, "clip_only": true, "starts_at": 40.04, "cut_in_file": {"start": 1.96, "end": 5.96}}, {"kind": "audio", …}]}, {"cut": {"start": 95.5, "end": 99.0}, "streams": […]}], "expires_in": 18000}
```

### Media: Audio (POST /v1/audio)

Price: 12 credits per minute. Needs the key.
Docs: https://wagamiai.com/docs#audio

The best sound as one M4A stream link: the whole track, or a range (given as cut) kept on your machine, up to your key's max_seconds. Media opens with your account's first payment. A whole track needs no joining: save the link as it is.

Parameters:
- ref (string, required): Video id or URL.
- start (number|string): Seconds or a time, as in Clip.
- end (number|string): Same forms.
- delivery (string, required): links.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/audio" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ", "delivery": "links"}'
```

Returns:
```
{"ok": true, "kind": "audio", "video": {…}, "streams": [{"kind": "audio", "url": "/v1/media/…", "ext": "m4a", …}], "expires_in": 18000}
```

### Media: Media links (GET /v1/media/{link})

Price: free. No key needed.
Docs: https://wagamiai.com/docs#media

Each streams[].url is a path on this service: prefix your base URL and fetch it. It needs no key (it is your key's own, made for this one order), supports byte ranges (so a large video resumes where it stopped and can be read in parts), works for expires_in seconds (5 hours), and never counts again. A link passes along what its order covers: a whole video's links their streams three times over (resumes and a second save fit), a clip's links its own part of the video with room to spare (the stream's header and index, the keyframe before cut.start, a minute around the cut and retries). So read only a clip's part (seeking to cut.start, as a media tool's seek does), not the whole stream, or ask the clip with clip_only: true and save each small file in full; A link paid in credits never stops there: what it passes past its order is charged by the second at the order's media rate (bytes past it, as a share of the stream, times its length), each byte once: reading a part again is never charged again, up to its stream ten times over in all; then it answers 410 link_spent (free): order again. With no credits left it answers 402 before passing more. Join the picture and sound into one MP4 with any tool that copies MP4 tracks (nothing to encode again for a whole video); for a clip, read cut.start to cut.end of each and encode just the clip's picture again for an exact first frame. Your key's GET /v1/setup gives the exact commands; the add-on and GET /v1/client do it all. Free.

Parameters:
- link (path, required): From streams[].url.

Example:
```bash
curl "https://wagamiai.com/v1/media/{link}"
```

Returns:
```
Stream bytes (206 with Range) · 404 when the link ended, 402 with no credits for bytes past its order, 410 link_spent past its stream ten times over: order again
```

### Media: Facebook, Instagram or X video (POST /v1/social)

Price: 12 credits per minute. Needs the key.
Docs: https://wagamiai.com/docs#social

A public post on X (twitter.com), Instagram or Facebook (fb.watch links too), from its link. Media opens with your account's first payment. Answers who posted it (author), when (published), its text and figures (views, likes, comments, reposts, where the site shows them), and under videos each of its videos with the files the site offers: kind video (picture and sound together), video_only or audio, best first. Each file's link is a full address on this service: fetch it as it is (no key header needed, byte ranges work) before links_expire; file_name is a name to save it under. Priced as a whole-video download, by started minute of the post's videos together; a video whose length the site does not give counts as one minute. Fetching the links costs nothing more. Only posts anyone may see without signing in. A link that is not a post answers 422 bad_link; a post that is gone 404 not_found; one that is private or needs a sign-in 403 not_public; one with no video 422 no_video; adult posts 422 restricted_content; 503 busy with retry: true means send it again in a minute. None of these costs anything.

Parameters:
- url (string, required): The post's link: x.com/…/status/…, instagram.com/p/… or /reel/…, facebook.com/…/videos/…, facebook.com/reel/…, fb.watch/….

Example:
```bash
curl -X POST "https://wagamiai.com/v1/social" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://x.com/someone/status/1890000000000000001"}'
```

Returns:
```
{"ok": true, "site": "x", "id": "1890000000000000001", "url": "https://x.com/i/status/1890000000000000001", "title", "text", "author": {"name", "handle"}, "published": "2026-11-30T12:00:00Z", "duration": 75.4, "views": 12000, "likes": 300, "comments", "reposts", "thumbnail": "https://…/v1/social/file/…", "videos": [{"index": 1, "duration": 75.4, "width": 720, "height": 1280, "thumbnail", "files": [{"kind": "video", "ext": "mp4", "width": 720, "height": 1280, "fps", "size", "bitrate_kbps": 2176, "link": "https://…/v1/social/file/…", "file_name": "x-1890000000000000001-1-video.mp4"}, …]}], "links_expire": "2026-11-30T18:00:00Z"}
```

### Media: Social video files (GET /v1/social/file/{token})

Price: free. No key needed.
Docs: https://wagamiai.com/docs#social-file

One file from a Facebook, Instagram or X video answer: its bytes as the site serves them. No key needed (the link is your key's own), byte ranges work, and it lives until the answer's links_expire (6 hours). A link can be fetched 40 times; after that, or once it ended, send the post's link again for fresh links. Free.

Parameters:
- token (path, required): From videos[].files[].link or a thumbnail.

Example:
```bash
curl "https://wagamiai.com/v1/social/file/{token}"
```

Returns:
```
File bytes (206 with Range) · 404 link_expired when the link ended or is unknown, 429 link_used_up after 40 fetches, 503 busy: try again in a minute
```

### Media: Thumbnail pack (POST /v1/thumbnails-zip)

Price: 3 credits per thumbnail. Needs the key.
Docs: https://wagamiai.com/docs#thumbnails-zip

Up to 100 thumbnails at the largest size (HQ when that is missing) as one ZIP named 001-Title-ID.jpg…

Parameters:
- video_ids (string[]): Up to 100 ids or URLs. Or:
- url (string): A channel URL, with video_type (videos|shorts|both), sort (recent|popular), max_videos (1 to 100).

Example:
```bash
curl -X POST "https://wagamiai.com/v1/thumbnails-zip" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.youtube.com/@MrBeast", "sort": "popular", "max_videos": 20}' \
  -o out.zip
```

Returns:
```
ZIP bytes
```

### Channel reports: Queue a channel report (POST /v1/report)

Price: 3 credits per video. Needs the key.
Docs: https://wagamiai.com/docs#report

A channel (or a single video) with stats for each video, optional comments and transcripts. Returns a job_id to poll. Each key can have up to 6 jobs open at once, and finished jobs are kept for 48 hours. You are charged for what the report returns, never more than the limits you asked for (see Credits and billing). A queued report is paid at the most it could cost; what it did not use comes back to your balance (all of it if the report fails) and shows in your credit history.

Parameters:
- url (string, required): Channel or video URL.
- video_type (string): videos, shorts, both (default).
- sort (string): recent (default) or popular.
- max_videos (int): 1 to 100, default 20.
- include_comments (bool): Comments per video (max_comments 1 to 100). 3 credits per 50 comments returned, per video.
- include_transcript (bool): Transcript per video. 3 credits per video.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/report" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.youtube.com/@MrBeast", "video_type": "videos", "sort": "popular", "max_videos": 10, "include_comments": true}'
```

Returns:
```
{"success": true, "job_id": 482019374451, "mode": "channel", "message": "…"}
```

### Channel reports: Poll a channel report (GET /v1/report/{job_id})

Price: free. Needs the key.
Docs: https://wagamiai.com/docs#report-poll

pending → processing → completed (with result) or failed (with error). Only the key that queued a job can see it.

Parameters:
- job_id (path, required): From the queue call.

Example:
```bash
curl "https://wagamiai.com/v1/report/{job_id}" \
  -H "Authorization: Bearer $WAGAMI_KEY"
```

Returns:
```
{"success": true, "status": "completed", "result": {"mode", "channel", "total_videos", "total_views", "videos": [...]}}
```

### Channel reports: Channel report inline (POST /v1/report-fast)

Price: 3 credits per video. Needs the key.
Docs: https://wagamiai.com/docs#report-fast

The same body and result shape, answered in a single call. Best for 20 videos or fewer. Charged like Queue a channel report; asking for the same report again within 10 minutes, or while it is still running, answers at once with that report and is charged like it.

Example:
```bash
curl -X POST "https://wagamiai.com/v1/report-fast" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://youtube.com/@MrBeast", "video_type": "videos", "max_videos": 5}'
```

Returns:
```
{"success": true, "status": "completed", "result": {…}}
```

## Guides for YouTube creators

Plain guides from WagamiAI, updated 9 November 2026. Each is also a page on https://wagamiai.com/guides.

### How to find a YouTube niche that still has room

https://wagamiai.com/guides/find-a-youtube-niche

A good niche has people watching, channels like yours still winning, and a topic you can keep making videos about for a year. Here is how to check all three before you film anything.

#### What a niche is

A niche is the topic and the kind of video a channel makes, for one audience. “History” is a topic. “Ten-minute documentaries about forgotten engineering projects” is a niche: a viewer knows what the next video will be, and YouTube knows who to show it to.
The narrower the promise, the easier it is to become the channel people subscribe to for it. Go too narrow and there are not enough viewers or ideas. The aim is the middle: specific enough to stand out, wide enough for a hundred videos.

#### 1. Check that people watch it

Search the topic on YouTube and look at the videos from the last few months, not the all-time hits. If recent uploads from many different channels get steady views, the demand is current.
- Look for several channels doing well, not one giant. One giant can mean one person's audience, not a topic's.
- Check that viewers come back: channels in the niche should get views on most uploads, not only on one lucky video.
- Read the comments. Questions and requests are the best sign that people want more.

#### 2. Check that there is room

Demand alone is not enough: some topics are full of large channels that take most of the views. Room means newer and smaller channels still break through.
- Find channels that started in the last year or two and already get good views.
- Look for videos that pulled far more views than their channel usually gets. They show what viewers want that nobody has made well yet. See the guide to outlier videos (https://wagamiai.com/guides/youtube-outlier-videos).
- Notice what the top channels do not cover: a format, a length, a language or an angle.

#### 3. Check what it can earn

Ads pay differently by topic and by where the audience lives. Finance, software and business topics usually earn more per view than gaming or entertainment, but they are also more crowded. Shorts earn less per view than long videos.
Treat any earnings figure you see, ours included, as an estimate: the real number depends on the audience, the season and the channel. Read the monetization basics (https://wagamiai.com/guides/youtube-monetization-basics) before you plan around a number.

#### 4. Check that you can keep going

Most channels stop before their fiftieth video. Before you commit, write down twenty video ideas in the niche. If they come easily, and you can make them at the quality the top channels set, the niche fits you.
- Can you make it every week for a year?
- Do you need footage, voice, research or skills you do not have yet?
- Would you watch these videos yourself?

#### 5. Test before you commit

Make three to five videos and watch what happens over a few weeks. Early views are small for every new channel; look at which video viewers finish and click on, then make more of that. A niche is proven by the videos you make in it, not by research alone.

#### Do it in WagamiAI

The niche finder (https://wagamiai.com/niche-finder) shows which niches are breaking out while there is still room, what each one earns, the top channels in each and the videos beating them. Open any channel to see its subscribers, views, estimated earnings and the videos carrying it (channels and videos (https://wagamiai.com/channels)), then turn what you found into your next video (https://wagamiai.com/ideas).

#### Questions

- How long does it take to know if a niche works? Give a niche a few months and a few dozen videos. The first videos of any channel get few views; what matters early is which videos viewers finish and click.
- Should I pick a niche with no competition? Usually not. No channels often means no viewers. Look for a niche where viewers are proven and newer channels still break through.
- Can I change niche later? Yes, but the audience you built may not follow. Moving to a close niche, the same viewers with a new angle, works better than starting over.

### Faceless YouTube channel ideas, by niche

https://wagamiai.com/guides/faceless-youtube-channel-ideas

A faceless channel has no main presenter on camera. It still needs a voice, a script and something worth watching. These are the formats that keep working, grouped by niche, with what to watch out for.

#### What counts as faceless

Faceless means the channel does not depend on one person's face. People may appear in footage, and a voice usually carries the video. AI presenters and avatars count too: the viewer comes for the topic and the storytelling, not for a personality.
Faceless does not mean low effort. YouTube does not pay for mass-produced or repetitive videos, or for other people's videos re-uploaded with little added. Every idea below needs your own script, research and editing.

#### History, engineering and science documentaries

Long videos that tell one story well: a lost city, a failed megaproject, how a machine works, a mystery of space. Archive footage, maps, diagrams and a calm narration carry them.
- Works because: viewers watch long, and the topics never run out.
- Watch out for: rights to footage and pictures; accuracy, since comment sections notice mistakes.

#### Explainers: tech, AI, money and the world

Short, clear answers to questions people search for: how a new AI tool works, why a currency fell, what a law changes. Screen recordings, charts and simple motion graphics are enough.
- Works because: search brings views for years, and money and technology topics usually earn more per view.
- Watch out for: facts that date quickly; financial topics need care and a clear note that it is not advice.

#### Geography, travel and places

Maps, drone shots and street footage: why a border is shaped the way it is, the most remote town in a country, a city in ten minutes.
- Works because: it travels across languages and countries.
- Watch out for: footage rights, and repeating the same map style every channel already uses.

#### Animals and nature

Facts, rankings and stories about animals, oceans and survival in the wild, built from licensed clips and a strong narration.
- Works because: a wide, all-ages audience and evergreen topics.
- Watch out for: made-for-kids rules if the videos are aimed at children, and footage rights.

#### Stories, mysteries and sleep

Narrated stories, unexplained events, calm history for sleep, and ambient videos for study or rest. Long running times suit a voice over still pictures or slow footage.
- Works because: very long watch times and loyal viewers.
- Watch out for: repetitive uploads that look mass-produced; true crime needs respect for the people involved.

#### Quizzes, rankings and comparisons

Guess the country, which is bigger, the top ten of anything. Simple graphics and a clear pace.
- Works because: easy to make in series, strong in Shorts and long form.
- Watch out for: crowded formats; your angle and topic choice have to stand out.

#### AI presenters and avatars

A consistent AI presenter or avatar can host news recaps, lessons or stories. The presenter gives the channel a face without a person on camera.
- Works because: a recognisable host builds a following, and production is steady.
- Watch out for: say when content is made with AI where YouTube asks you to, and keep the scripts original.

#### Find faceless niches in WagamiAI

In the niche finder (https://wagamiai.com/niche-finder), filter for faceless friendly niches and open one to see its top channels and the videos beating them. Then read the transcripts and comments of the best videos from your own AI (https://wagamiai.com/mcp), and source the clips and pictures (https://wagamiai.com/footage) for your edit.

#### Questions

- Can a faceless channel be monetized? Yes, if it meets YouTube's requirements and its videos are original: your own script, voice or presenter, research and editing. Re-uploads of other people's videos, or repetitive mass-produced uploads, are not eligible.
- Do I need my own voice? No. Many faceless channels use a hired narrator, an AI voice or an AI presenter. What matters is that the video adds something of its own.
- Which faceless niche earns the most? Money, technology and business topics usually earn more per view, but they are crowded. A niche you can keep making well often earns more over a year than a higher-paying one you give up on.

### How to read a YouTube channel's growth

https://wagamiai.com/guides/read-youtube-channel-growth

Subscribers are the number everyone sees and the one that tells you least. Here is what to read instead when you study a channel, your own or someone else's.

#### Subscribers: the trend, not the total

A channel with a million subscribers can be fading, and one with ten thousand can be the fastest growing in its niche. Look at how the count changed over the last months: steady growth, a sudden jump after one video, or a slow fall.

#### Views on recent uploads

Recent videos show where a channel is now. Compare the views of the last ten uploads with the channel's size. A small channel whose new videos get far more views than it has subscribers is reaching new viewers; a big channel whose new videos get few views is living on its past.

#### The videos carrying the channel

Most channels get most of their views from a few videos. Sort the channel's videos by most popular and see which ones they are, how old they are and what they have in common: the topic, the title, the length. That is what the audience came for.

#### Upload rhythm

How often a channel uploads, and whether it kept going, explains a lot. A gap of several months followed by a drop in views tells a different story than a channel that never missed a week. Check whether long videos, Shorts and live streams grow differently.

#### Estimated earnings

No outside tool can see a channel's real earnings: only its owner can, in YouTube Studio. Outside figures are estimates from views, the topic and where viewers live. Use them to compare channels and niches, never as a fact about one channel.

#### Common mistakes

- Judging by subscribers alone.
- Copying a channel's old hit when its recent videos tell a different story.
- Comparing Shorts views with long video views as if they were the same.
- Reading one viral video as a trend.

#### Do it in WagamiAI

Open any public channel in channels and videos (https://wagamiai.com/channels): subscribers day by day, views, estimated earnings, the videos carrying it and a full report in one click. From your own AI, ask for the same in plain words (connect your AI (https://wagamiai.com/mcp)), or call the API (https://wagamiai.com/docs).

#### Questions

- Can I see another channel's exact earnings? No. Only the channel's owner sees real earnings. Any outside figure is an estimate.
- How far back can I see a channel's growth? Public pages show today's numbers. History comes from tools that record those numbers over time, so it starts when a tool first looked at the channel.
- What matters more, subscribers or views? Views on recent uploads. They show whether the channel reaches people now.

### Outlier videos: what they are and how to learn from them

https://wagamiai.com/guides/youtube-outlier-videos

An outlier is a video that pulled far more views than its channel usually gets. It is the clearest sign of what viewers wanted that week, and one of the best places to find your next video idea.

#### Why outliers matter

A big channel's views say more about the channel than the idea. A small channel's video that beat its own usual many times over says the idea itself pulled people in: the topic, the angle, the title and the thumbnail did the work.

#### How to find them

- Open a channel's videos sorted by most popular and compare the top ones with its recent uploads.
- Search a topic and filter for recent uploads: look for small channels with large view counts.
- Follow a handful of channels in your niche and notice which uploads take off.

#### What to learn from one

- The topic and the angle: what question did it answer, or what story did it tell, that others had not?
- The title and thumbnail: what made someone click? Curiosity, a number, a contrast, a person?
- The first minute: how does it hold viewers? Read the transcript.
- The comments: what did viewers ask for next?
Then make your own version: the same viewer need, your own angle and research. Copying the video itself rarely works and can break YouTube's rules.

#### Traps

- An old video that went viral years ago may say little about today.
- A video pushed by outside traffic (a news story, another platform) can look like an outlier without repeating.
- Shorts and long videos have different view levels: compare like with like.
- One outlier is a hint. Several outliers on the same idea, across channels, are a pattern.

#### Find outliers in WagamiAI

The niche finder (https://wagamiai.com/niche-finder) shows the videos beating their own channel in each niche, as times the channel's usual. From your own AI, ask for outlier videos in a niche or on a channel, then pull their transcripts and comments in the same conversation (research with your AI (https://wagamiai.com/guides/youtube-research-with-ai)).

#### Questions

- Is an outlier the same as a viral video? Not quite. Viral is about total views. An outlier is about views compared with its own channel, so a small channel's video can be an outlier with far fewer views than a viral hit.
- Should I copy an outlier video? No. Learn what viewers wanted from it and make something of your own. Copies rarely work and can break YouTube's rules.
- Do outliers work for Shorts? Yes, but compare Shorts with Shorts. Their view levels differ a lot from long videos.

### Shorts or long videos: which to make, and when

https://wagamiai.com/guides/youtube-shorts-vs-long-form

Shorts reach new viewers fast; long videos build an audience and earn more per view. Most growing channels use both, each for its own job.

#### What Shorts are good for

Shorts are vertical videos of up to three minutes, shown in a feed people swipe through. They can reach many viewers who have never heard of you, quickly and with little production.
- Test topics and hooks fast.
- Bring new viewers to a channel.
- Keep a channel active between longer videos.

#### What long videos are good for

Long videos are where viewers spend real time with a channel. They build subscribers who come back, they are found through search for years, and they earn more per view because they carry more ads.

#### How each earns

Long videos earn from the ads shown in and around them. Shorts earn a share of the ads shown between Shorts in the feed, divided by views. Per view, Shorts usually earn far less. Both count towards the YouTube Partner Program in different ways: see monetization basics (https://wagamiai.com/guides/youtube-monetization-basics).

#### Using both

- Cut a strong moment from a long video into a Short that points to the full video.
- Use Shorts to test which topics catch on, then make the long version of the winners.
- Read your numbers separately: a channel can grow on one and stall on the other.

#### How to pick for your niche

Look at the channels doing well in your niche and see which format carries them. Some niches live on Shorts (quick facts, quizzes), others on long videos (documentaries, explainers, stories). Start with the format your niche rewards, and add the other once you have a rhythm.

#### Compare formats in WagamiAI

The niche finder (https://wagamiai.com/niche-finder) lets you look at long videos and Shorts on their own, and channels and videos (https://wagamiai.com/channels) shows which videos carry a channel, so you can see which format your niche rewards.

#### Questions

- Do Shorts hurt a long-form channel? Not by themselves. Viewers who come for Shorts may not watch long videos, so read the two separately and keep making what your core audience came for.
- How long can a Short be? Up to three minutes, in a vertical or square shape, under YouTube's rules at the time of writing.
- Which earns more? Per view, long videos usually earn much more. Shorts can still bring more total views and new subscribers.

### YouTube monetization basics

https://wagamiai.com/guides/youtube-monetization-basics

How a channel earns, what it needs before YouTube pays it, and the two numbers people mix up most. YouTube changes its rules from time to time: check its own help pages before you plan around them.

#### The YouTube Partner Program

To earn from ads, a channel joins the YouTube Partner Program. At the time of writing, YouTube publishes these thresholds for ad revenue:
- 1,000 subscribers, and
- 4,000 valid public watch hours on long videos in the last 12 months, or 10 million valid public Shorts views in the last 90 days.
A lower level, open in many countries, gives access to memberships, Super Thanks and other fan funding earlier. The channel also needs to follow YouTube's policies, live in a country where the program is open and have no active strikes. Read YouTube's current requirements (https://support.google.com/youtube/answer/72851).

#### Ways a channel earns

- Ads on long videos, and a share of Shorts feed ads.
- Channel memberships, Super Thanks, Super Chat and Super Stickers.
- Sponsorships agreed with brands directly.
- Affiliate links and selling your own products.
Many channels earn more from sponsors and products than from ads, especially in niches where viewers buy things.

#### RPM and CPM

CPM is what advertisers pay per thousand ad views. RPM is what the channel earns per thousand views of its videos, after YouTube's share and counting views that showed no ad. RPM is the number that matters to a creator.
RPM varies a lot by topic, by where viewers live and by the time of year: it is often higher in the last months of the year, when advertisers spend more.

#### The content rules that decide eligibility

- Videos must be your own or add real value of your own: commentary, editing, research or a new story.
- Mass-produced or repetitive videos, and re-uploads of other people's work, are not eligible.
- Ads are limited on videos that are not advertiser friendly: graphic content, strong language and some sensitive topics.
- You need the rights to every clip, picture and song you use.

#### Estimates are estimates

Only a channel's owner sees its real earnings. Every outside earnings figure, including the ones in WagamiAI, is an estimate. Use them to compare niches and channels, not as a promise.

#### Check niches and channels in WagamiAI

The niche finder (https://wagamiai.com/niche-finder) shows which niches have room and what they earn, and channels and videos (https://wagamiai.com/channels) shows any channel's estimated earnings. A health scan (https://wagamiai.com/scan) for monetization risk is coming soon.

#### Questions

- How much does YouTube pay per 1,000 views? It depends on the niche, the audience's country and the season, so there is no single figure. The channel's RPM in YouTube Studio is the real answer for one channel.
- Can faceless channels join the Partner Program? Yes, when their videos are original and follow YouTube's policies.
- Do Shorts views count towards monetization? Yes: YouTube offers a Shorts views route into the program, alongside the watch hours route for long videos. Check YouTube's help page for the current figures.

### YouTube research with your own AI

https://wagamiai.com/guides/youtube-research-with-ai

Connect WagamiAI to the AI you already use, then ask for channels, outliers, transcripts and comments in plain words. Your AI does the reading and the comparing; you decide what to make.

#### 1. Connect once

Create an account, choose a plan and make a key in the client area. Then add WagamiAI to your AI as a remote MCP server. In Claude Code it is one line:
claude mcp add --transport http wagami https://wagamiai.com/mcp --header "Authorization: Bearer YOUR_WAGAMI_KEY"
Claude Desktop, Cursor, VS Code, Windsurf and any AI that takes a remote MCP server have their own setups on the MCP server (https://wagamiai.com/mcp) page.

#### 2. Ask in plain words

A few asks that work well:
- “Find channels about deep sea documentaries that started this year and already get good views.”
- “Show me the outlier videos in the space niche from the last three months.”
- “Pull the transcripts of these five videos and compare how each one opens in the first minute.”
- “Read the top 300 comments on this video and list what viewers ask for next.”
- “Find channels similar to this one and compare their last ten uploads.”
Two ready-made prompts come with the server: study a niche and study a channel.

#### What your AI can reach

Search, channels and their videos, video details, transcripts and timed captions, comments, related videos, similar channels, niches and outlier videos, pictures and clips for your edit. Every tool and its price is listed on the MCP server (https://wagamiai.com/mcp) page.

#### 3. Keep spending in hand

Every tool has a small price in credits, shown on the pricing (https://wagamiai.com/pricing) page, and errors cost nothing. Give each AI or agent its own key with a credit cap: at the cap that key stops while your other keys keep working.

#### Building your own agent

Any agent that makes HTTPS requests can use the same key through the API (https://wagamiai.com/docs). Agents can start from llms.txt (https://wagamiai.com/llms.txt) (a short guide), llms-full.txt (https://wagamiai.com/llms-full.txt) (the whole reference as text) and OpenAPI (https://wagamiai.com/openapi.json). See YouTube for AI agents (https://wagamiai.com/youtube-api-for-ai-agents).

#### Questions

- Which AI apps work? Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and any AI that takes a remote MCP server.
- Does my AI see my password? No. It uses a key you make in the client area. You can limit what each key may do and cap its credits, and give it a new secret at any time.
- Is it the same balance as the web app? Yes. Your AI, the API and the web app all draw from one balance.

## Comparisons

Why pick WagamiAI, and how it differs from other YouTube tools (checked 9 November 2026): https://wagamiai.com/alternatives

WagamiAI is research and production for YouTube, from a niche to a finished video: a niche finder with breakouts and estimated earnings, any public channel and its videos, your next video with the proof behind it, transcripts and comments, and exact clips and full-size pictures for your edit.
Where you use it: A web app; inside your own AI (Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and other AI apps that connect to MCP servers); and an API for your own code and agents. One key, one balance.

Why pick WagamiAI:
- From a niche to a finished video: Find the niche, look inside the channels in it and plan the next video, in one tool. How it works (https://wagamiai.com/product)
- Niches with room: See which niches are breaking out while there is still room, and the videos pulling many times their channel's usual views. Niche finder (https://wagamiai.com/niche-finder)
- Any channel, opened up: Subscribers, views and estimated earnings for any public channel, and the videos carrying it. Channels and videos (https://wagamiai.com/channels)
- Your next video, with proof: Ideas backed by the videos already proving them, with a working title and thumbnail words. Your next video (https://wagamiai.com/ideas)
- Transcripts, comments, clips and pictures: Read what any public video says and what its viewers ask for. Take only the seconds you need, up to 1080p and above, or a full-size picture. Source footage (https://wagamiai.com/footage)
- Inside the AI you already use: Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and other AI apps that connect to MCP servers: connect once with your key, then ask in plain words. Connect your AI (https://wagamiai.com/mcp)
- An API for your own tools: Every endpoint documented with examples, with OpenAPI and llms.txt, on the same key. Docs (https://wagamiai.com/docs)
- One balance, every tool: Every plan has every tool, plans differ only in credits, unused credits carry over, and you can cancel anytime. Pricing (https://wagamiai.com/pricing)

### WagamiAI vs vidIQ

https://wagamiai.com/compare/wagamiai-vs-vidiq

vidIQ is a YouTube growth tool for keywords, video ideas, titles, thumbnails and scripts. Where you use it: A browser extension, a web app, a mobile app and an MCP server.

How WagamiAI differs: vidIQ centres on growing a channel you already run: keywords, scores and AI help for your own uploads. WagamiAI covers the whole road from a niche to a finished video: which niches are breaking out while there is still room, any public channel with its estimated earnings and the videos carrying it, your next video with the videos proving the idea, and transcripts, comments, exact clips and full-size pictures for the edit.

### WagamiAI vs TubeBuddy

https://wagamiai.com/compare/wagamiai-vs-tubebuddy

TubeBuddy is a YouTube channel tool for keywords, SEO scores, A/B tests, bulk edits and channel analytics. Where you use it: A browser extension that works in YouTube Studio, tools on its website, and a mobile app.

How WagamiAI differs: TubeBuddy works inside YouTube Studio on videos you have already made: keywords, tests and bulk edits. WagamiAI starts before the upload: it shows which niches are breaking out while there is still room, opens any public channel with its estimated earnings, plans your next video with the videos proving the idea, and hands you transcripts, comments, exact clips and full-size pictures for the edit.

### WagamiAI vs NexLev

https://wagamiai.com/compare/wagamiai-vs-nexlev

NexLev is a research tool for faceless YouTube channels, with a niche finder, a Chrome extension, an MCP server, an API on its higher plans, automation workflows and a course. Where you use it: A web dashboard, a Chrome extension, an MCP server and an API.

How WagamiAI differs: With WagamiAI every plan has every tool: the niche finder, any channel's numbers, your next video, your own AI and the API all come on one balance from the first plan, and unused credits carry over. WagamiAI covers every kind of channel, faceless or not, plans your next video with the videos proving the idea, and hands you transcripts, comments, exact clips and full-size pictures for the edit.

### WagamiAI vs Social Blade

https://wagamiai.com/compare/wagamiai-vs-social-blade

Social Blade is a statistics website for the public numbers of YouTube, TikTok, Instagram, Twitch and Facebook accounts. Where you use it: A website, with paid memberships and a business API.

How WagamiAI differs: Social Blade records an account's public numbers. WagamiAI goes past the numbers: it shows which niches are breaking out and which videos beat their own channel, what a channel earns, what its videos say and what its viewers ask for, and turns it into your next video, with exact clips and full-size pictures for the edit.

vidIQ, TubeBuddy, NexLev and Social Blade are names of their owners, used here only to say which products are meant. WagamiAI is not affiliated with them, or with YouTube or Google.

## Answers

Plain questions, each answered with the exact call. Index: https://wagamiai.com/answers

### How do I get a YouTube video's transcript with an API?

https://wagamiai.com/answers/youtube-transcript-with-an-api

Send the video's id or link to POST /v1/transcript with your key, and the answer is the transcript as plain text. It costs 3 credits ($1.50 for 1,000 transcripts), and a video with no transcript costs nothing.

```bash
curl -X POST "https://wagamiai.com/v1/transcript" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ"}'
```

What does a transcript cost? 3 credits, which is $1.50 for 1,000 transcripts at the base rate of 2,000 credits for $1. Errors, refusals and empty answers are never charged.

Do Shorts and youtu.be links work? Yes. Send a video id or any YouTube link to the video: a watch link, a Shorts link or a youtu.be link.

Can an AI agent do this by itself? Yes. On the MCP server the tool is get_transcript, and get_transcripts takes up to 10 videos. Any agent that can make HTTPS requests can call the API directly.

### How do I give Claude access to YouTube data?

https://wagamiai.com/answers/youtube-data-in-claude

Add WagamiAI's MCP server, https://wagamiai.com/mcp, to Claude, and Claude gets 32 YouTube tools: search, videos, channels, transcripts, comments, niches, outlier videos and image search. Each tool names its price, and you pay only for answers.

What does it cost? Calls take credits from your balance at the same price as the API: for example 3 credits for a search of 20 results and 3 for a transcript. Listing the tools is free, and errors are never charged. Plans start at $20 a month; credits without a plan start at $25.

Does it work outside Claude? Yes. The same server works in Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and other AI apps that connect to MCP servers, and the same data is an API for your own code.

Can I cap what the AI spends? Yes. Give the AI its own key with a credit cap in the client area. It can never spend past it.

### How does an AI agent search for images?

https://wagamiai.com/answers/image-search-for-ai-agents

The agent calls the search_images tool, or POST /v1/images, with a query, and gets up to 100 pictures back with each one's address, size, format and the page it came from. A search costs 4 credits ($2.00 for 1,000 searches), and a search that finds nothing is free.

```bash
curl -X POST "https://wagamiai.com/v1/images" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "northern lights over a lake", "layout": "wide", "license": "commercial", "min_width": 1920, "limit": 30}'
```

What does an image search cost? 4 credits for a search that finds at least one picture, whether it returns 10 or 100: $2.00 for 1,000 searches at the base rate. Previews are free; a full picture is 3 credits more.

May I use the pictures I find? WagamiAI does not own or license the pictures it returns. The licence filter shows what the picture's site reports. It is a filter, not a grant: every result carries the page it came from, so check that page before you publish or reuse a picture. How you use it is your responsibility.

Which agents can call it? Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and other AI apps that connect to MCP servers, through the MCP server; and any agent or code that can make HTTPS requests, through the API.

### What does YouTube data cost through an API?

https://wagamiai.com/answers/what-a-youtube-data-api-costs

On WagamiAI most YouTube lookups cost 3 credits each, which is $1.50 for 1,000 at the base rate of 2,000 credits for $1. You pay only for answers: errors, refusals and empty answers are free, and unused credits never expire.

```bash
curl -X POST "https://wagamiai.com/v1/video" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ", "page": true}'
```

What is always free? Checking your balance and limits, errors, refused calls, answers with nothing in them, and picture previews.

Do credits expire? No. Unused credits carry over and keep working after a plan ends.

How do I see what I spent? The client area lists every call with its price, and GET /v1/limits shows a key's balance for free.

### How do I find faceless YouTube niches with an AI?

https://wagamiai.com/answers/find-faceless-youtube-niches-with-ai

Connect WagamiAI to your AI and ask for faceless channels in a topic: the AI calls find_channels with faceless set to true and gets channels back with their views, growth, estimated earnings and best videos. It costs 2 credits per channel returned, and an answer with nothing in it is free.

```bash
curl -X POST "https://wagamiai.com/v1/channels/find" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"topic": "GTA", "started_within_days": 31, "min_avg_views": 50000, "limit": 6}'
```

What does it cost? 2 credits per channel returned and 1 credit per video returned; the list of niches is 3 credits. An answer with nothing in it is free.

Are the earnings exact? No. Earnings are estimates. Treat them as a guide, not a promise.

Which AI apps work? Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and other AI apps that connect to MCP servers.

### How do I find a YouTube channel's outlier videos?

https://wagamiai.com/answers/youtube-channel-outlier-videos

Send the channel's handle or link to POST /v1/channel/outliers, and the answer lists the videos that did far better than the channel's usual, each with the multiple it reached. It costs 3 credits per 50 videos checked, and a channel with none costs nothing.

```bash
curl -X POST "https://wagamiai.com/v1/channel/outliers" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "@veritasium", "window": 100, "min_multiple": 2}'
```

What is an outlier video? A video pulling far more views than its channel usually gets. It is shown as times the usual.

Can I set how strong an outlier must be? Yes: min_multiple sets the smallest multiple, and window how many recent videos are looked at.

Can an AI do this for me? Yes. The MCP tool is get_channel_outliers, and find_outlier_videos searches a whole topic.

### How does an AI agent search YouTube?

https://wagamiai.com/answers/youtube-search-for-ai-agents

The agent calls the search_youtube tool, or POST /v1/search, with a query and filters, and gets videos, channels, playlists, Shorts or live streams back as JSON. It costs 3 credits per 20 results ($1.50 for 1,000 searches of 20), and a search that finds nothing is free.

```bash
curl -X POST "https://wagamiai.com/v1/search" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "deep sea documentary", "duration": "long", "sort": "views", "limit": 5}'
```

What does a search cost? 3 credits per 20 results: $1.50 for 1,000 searches of 20 at the base rate. A search with no results is free.

Is there a limit on searches? No limit per minute, day or week on a WagamiAI account's key. The balance is the only limit.

Which agents can use it? Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and other AI apps that connect to MCP servers, through the MCP server; any agent that can make HTTPS requests, through the API.

### How do I get transcripts for many YouTube videos at once?

https://wagamiai.com/answers/youtube-transcripts-in-bulk

Send up to 10 video ids or links to POST /v1/transcripts, and the answer holds each video's transcript in the order you asked. It costs 3 credits per transcript, and a video with no transcript costs nothing.

```bash
curl -X POST "https://wagamiai.com/v1/transcripts" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"refs": ["dQw4w9WgXcQ", "jNQXAC9IVRw"]}'
```

What does it cost? 3 credits per transcript: 10,000 transcripts are 30,000 credits, $15 at the base rate.

Is there a limit a day? No. A key on a WagamiAI account is limited only by its balance.

Can my AI do it? Yes. The MCP tool is get_transcripts.

## Image search API

https://wagamiai.com/image-search-api

Send a query, get up to 100 pictures back: each with its address, size, format and the page it came from. It costs 4 credits a search, and it is also the search_images tool on the MCP server.

- size: small, medium, large, wallpaper
- layout: square, wide, tall
- color: color, mono, or one colour: red, orange, yellow, green, blue, purple, pink, brown, black, gray, white
- type: photo, clipart, gif, line (line drawings), transparent
- time: day, week, month, year
- people: face, portrait
- min_width, min_height: The smallest size in pixels
- format: jpg, png, gif, webp
- license: any, creative_commons, commercial, public_domain, modify, modify_commercial
- limit, page: 1 to 100 pictures a search; pages 1 to 5

## Search APIs for AI agents, compared

https://wagamiai.com/compare/search-apis-for-ai-agents (checked 18 November 2026; YouTube data and image search only)

- WagamiAI: Search, video details, transcripts and captions, comments, channels and their uploads, outlier videos, similar channels, niches with estimated earnings, channel reports and media links for clips. Image search: Up to 100 pictures a search, filtered by size, layout, colour, type, freshness and licence, each with the page it came from. $1.50 for 1,000 YouTube searches of 20 results; $2.00 for 1,000 image searches; $1.50 for 1,000 transcripts (base rate, less with larger payments). No limit per minute, day or week: the balance is the only limit. Errors and empty answers are free.
- Brave Search API (https://wagamiai.com/compare/wagamiai-vs-brave-search-api): A search API: web, image, video and news search, and answers for AI apps. $5 for 1,000 requests on its Search plan (web, image and news search), with $5 of free credit each month, as its own website said.
- SerpApi (https://wagamiai.com/compare/wagamiai-vs-serpapi): An API that returns search engines' result pages as JSON, YouTube's search results among them. $25 for 1,000 searches on its Starter plan; $10 per 1,000 on its Production plan ($150 for 15,000 a month), as its own website said.
- Google Custom Search JSON API (https://wagamiai.com/compare/wagamiai-vs-google-custom-search-api): An API that returns a Programmable Search Engine's results as JSON: web pages, or images. 100 queries a day free, then $5 per 1,000, up to 10,000 queries a day, as its own website said.

## Image search API pricing, compared

https://wagamiai.com/compare/image-search-api-pricing (checked 18 November 2026)

- WagamiAI, base rate: $2.00 for 1,000 image searches (4 credits a search of up to 100 pictures; any payment, plan or not)
- WagamiAI, with the $500 top up: $1.60 for 1,000 image searches (The same search with 2,500 credits for $1 (a 25 % bonus))
- Brave Search API, Search plan: $5 for 1,000 (Web, image and news search; $5 of free credit each month; 50 requests a second), as its own website said
- Google Custom Search JSON API, Past the free 100 a day: $5 for 1,000 (Up to 10 images a request and 10,000 queries a day; closed to new customers, existing customers have until January 1, 2027), as its own website said
- SerpApi, Starter: $25 for 1,000 (1,000 searches a month for $25), as its own website said
- SerpApi, Production: $10 for 1,000 (15,000 searches a month for $150), as its own website said
- SerpApi, Free plan: Free for 1,000 (250 searches a month), as its own website said
