# Search YouTube by keyword

Search YouTube by keyword with optional type, upload-date, duration, feature, and sort filters, or continue with a token.

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

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `continuationToken` | string | no | Pagination token returned by the previous response. |
| `duration` | string | no | Filter video results by duration. Supported request values: short, medium, long. Available Values: - \`SHORT\`: Short videos under 4 minutes - \`MEDIUM\`: Medium videos from 4 to 20 minutes - \`LONG\`: Long videos over 20 minutes One of: SHORT, MEDIUM, LONG. |
| `features` | string | no | Feature filters separated by commas. Supported values: live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr. One of: live, FOUR_K, hd, subtitles, creative_commons, THREE_SIXTY, vr180, THREE_D, hdr. |
| `keyword` | string | no | Search keyword. Required on the first request; leave empty when using a continuation token. |
| `sortBy` | string | no | Sort order for search results. Available Values: - \`relevance\`: Sort by relevance - \`upload_date\`: Sort by upload date - \`view_count\`: Sort by view count - \`rating\`: Sort by rating One of: relevance, upload_date, view_count, rating. |
| `type` | string | no | Filter results by result type. Available Values: - \`video\`: Video results - \`channel\`: Channel results - \`playlist\`: Playlist results - \`movie\`: Movie results One of: video, channel, playlist, movie. |
| `uploadDate` | string | no | Filter results by upload date. Available Values: - \`last_hour\`: Uploaded within the last hour - \`today\`: Uploaded today - \`this_week\`: Uploaded this week - \`this_month\`: Uploaded this month - \`this_year\`: Uploaded this year One of: last_hour, today, this_week, this_month, this_year. |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/justoneapi.x-youtube-search-v1/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/justoneapi.x-youtube-search-v1/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{}},
)
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 by keyword with filters](https://www.orcarouter.ai/tools/youtube/search-posts/x-youtube-web-v2-get-general-search.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 |

## FAQ

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

Search YouTube by keyword costs $0.016236 per call: 1,000 calls cost $16.236.

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

About 615 calls at $0.016236 per call.

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

It has no required inputs.

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

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-search-v1
