# YouTube video metadata and stats by video id

Public metadata and stats for a YouTube video by video id

|  |  |
| --- | --- |
| Tool id | `justoneapi.youtube-video-detail` |
| Platform | [YouTube](https://www.orcarouter.ai/tools/youtube.md) |
| Capability | [Post details](https://www.orcarouter.ai/tools/youtube/post-detail.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 |
| --- | --- | --- | --- |
| `videoId` | string | yes | the v= id from the watch URL |

## Call it

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

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/justoneapi.youtube-video-detail/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{"videoId":"<videoId>"}},
)
print(resp.json())
```

## Alternatives

| Tool | Source | Price | Health |
| --- | --- | --- | --- |
| [YouTube community post details by post id](https://www.orcarouter.ai/tools/youtube/post-detail/x-youtube-web-v2-get-post-detail.md) | — | $0.0011 per call | OK |
| [YouTube video details by video id](https://www.orcarouter.ai/tools/youtube/post-detail/x-youtube-web-v2-get-video-info.md) | — | $0.0011 per call | OK |
| [YouTube video details by video id or URL](https://www.orcarouter.ai/tools/youtube/post-detail/x-youtube-web-v2-get-video-info-v2.md) | — | $0.0011 per call | OK |
| [YouTube video or short by URL — views, chapters, captions](https://www.orcarouter.ai/tools/youtube/post-detail/youtube-video-detail-d07c7f.md) | — | $0.002068 per credit | OK |

## FAQ

### How much does YouTube video metadata and stats by video id cost?

YouTube video metadata and stats by video id costs $0.016236 per call: 1,000 calls cost $16.236.

### What does a $10 budget buy with YouTube video metadata and stats by video id?

About 615 calls at $0.016236 per call.

### What inputs does YouTube video metadata and stats by video id need?

Required inputs: videoId.

### How do I call YouTube video metadata and stats by video id?

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/post-detail/youtube-video-detail
