# Search YouTube by keyword with filters

Youtube: get general search (web_v2)

|  |  |
| --- | --- |
| Tool id | `tikhub.x-youtube-web-v2-get-general-search` |
| Platform | [YouTube](https://www.orcarouter.ai/tools/youtube.md) |
| Capability | [Search posts](https://www.orcarouter.ai/tools/youtube/search-posts.md) |
| Price | $0.0011 per call |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | 8 |
| Idempotent | yes |
| Data class | scraped |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `search_query` | string | yes | Search keyword |
| `content_type` |  | no | 内容类型过滤 \| Content type filter |
| `continuation_token` |  | no | Pagination token |
| `country_code` | string | no | Country code |
| `duration` |  | no | 视频时长过滤 \| Duration filter |
| `feature` |  | no | 特征过滤 \| Feature filter |
| `language_code` | string | no | Language code |
| `sort_by` |  | no | 排序方式 \| Sort by |
| `time_zone` | string | no | Time zone |
| `upload_time` |  | no | 上传时间过滤 \| Upload time filter |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/tikhub.x-youtube-web-v2-get-general-search/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"search_query":"<search_query>"}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/tikhub.x-youtube-web-v2-get-general-search/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{"search_query":"<search_query>"}},
)
print(resp.json())
```

## Alternatives

| Tool | Source | Price | Health |
| --- | --- | --- | --- |
| [YouTube Search](https://www.orcarouter.ai/tools/youtube/search-posts/youtube-search.md) | — | $0.00055 per call | OK |
| [Search YouTube videos by keyword](https://www.orcarouter.ai/tools/youtube/search-posts/x-youtube-web-search-video.md) | — | $0.0011 per call | OK |
| [Search YouTube Shorts by keyword](https://www.orcarouter.ai/tools/youtube/search-posts/x-youtube-web-v2-get-shorts-search.md) | — | $0.0011 per call | OK |
| [YouTube Shorts Search](https://www.orcarouter.ai/tools/youtube/search-posts/youtube-search-shorts.md) | — | $0.00132 per call | OK |
| [Search YouTube Shorts by keyword](https://www.orcarouter.ai/tools/youtube/search-posts/x-youtube-web-v2-get-shorts-search-v2.md) | — | $0.0022 per call | OK |
| [Search YouTube videos by keyword and filters](https://www.orcarouter.ai/tools/youtube/search-posts/youtube-search-videos.md) | — | $0.0022 per call | OK |
| [Search YouTube by keyword](https://www.orcarouter.ai/tools/youtube/search-posts/x-youtube-search-v1.md) | — | $0.016236 per call | OK |

## FAQ

### How much does Search YouTube by keyword with filters cost?

Search YouTube by keyword with filters costs $0.0011 per call: 1,000 calls cost $1.10.

### What does a $10 budget buy with Search YouTube by keyword with filters?

About 9090 calls at $0.0011 per call.

### What inputs does Search YouTube by keyword with filters need?

Required inputs: search_query.

### How do I call Search YouTube by keyword with filters?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/youtube/search-posts/x-youtube-web-v2-get-general-search
