# YouTube Account search API (youtube.user_search)

- Canonical page: [https://everyinfra.com/en/youtube-api/user_search](https://everyinfra.com/en/youtube-api/user_search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "youtube", "action": "user_search", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of 20 per call (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=youtube&action=user_search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Search words, up to 200 characters. Matches channels by name. |
| page_token | not declared | no | not declared | Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. 20 channels per page; each page is one call and `limit` has no effect. Tokens last 24 hours, and the last page has no `next_page_token`. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| channel_id | platform-native meaning |
| name | Name of the object itself, for account, product and business capabilities. |
| username | Username (@handle). |
| url | Link to the record on the platform. |
| bio | Profile bio written by the account; may contain line breaks and emoji. |
| subscriber_count | platform-native meaning |
| video_count | platform-native meaning |
| is_verified | Whether the platform verified the account. null means it cannot be determined. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "youtube",
  "action": "user_search",
  "params": {
    "keyword": "minecraft"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "youtube",
        "action": "user_search",
        "params": {
            "keyword": "minecraft",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-21T07:24:23Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 21. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "youtube",
  "action": "user_search",
  "results": [
    {
      "channel_id": "UC1sELGmy5jp5fQUugmuYlXQ",
      "name": "M•••t",
      "username": "m•••t",
      "url": "https://www.youtube.com/•••",
      "bio": "•••",
      "subscriber_count": 23300000,
      "is_verified": true,
      "avatar_url": "https://yt3.ggpht.com/•••",
      "platform": "youtube"
    },
    {
      "channel_id": "UCsBBCjvcuWX3fPVSwboM-hw",
      "name": "K•••h",
      "username": "K•••_",
      "url": "https://www.youtube.com/•••",
      "bio": "•••",
      "subscriber_count": 2500000,
      "is_verified": true,
      "avatar_url": "https://yt3.ggpht.com/•••",
      "platform": "youtube"
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": 21,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=youtube
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
