YouTube API
The TrueScrape YouTube API exposes 17 public endpoints covering Channel details, Channel videos, Channel community posts and Channel live streams. Every call is a GET against public, logged-out pages and returns the same unified schema as every other platform here. Calls cost 1 credit each. A cache hit is free, and a failed or empty response is never charged.
Endpoints
| Endpoint | Returns | Credits | Cacheable | Batchable |
|---|---|---|---|---|
| /v1/youtube/channel | Channel details | 1 | yes | yes |
| /v1/youtube/channel-videos | Channel videos | 1 | yes | yes |
| /v1/youtube/channel/community-posts | Channel community posts | 1 | yes | yes |
| /v1/youtube/channel/lives | Channel live streams | 1 | yes | yes |
| /v1/youtube/channel/playlists | Channel playlists | 1 | yes | yes |
| /v1/youtube/channel/shorts | Channel shorts | 1 | yes | yes |
| /v1/youtube/community-post | Community post details | 1 | yes | yes |
| /v1/youtube/playlist | Playlist contents | 1 | yes | yes |
| /v1/youtube/search | Search videos | 1 | yes | yes |
| /v1/youtube/search/hashtag | Search by hashtag | 1 | yes | yes |
| /v1/youtube/search/typeahead | Search typeahead | 1 | yes | yes |
| /v1/youtube/shorts/trending | Trending shorts | 1 | yes | yes |
| /v1/youtube/transcript | Video transcript | 1 | yes | yes |
| /v1/youtube/video | Video or Short details | 1 | yes | yes |
| /v1/youtube/video/comment-replies | Comment replies | 1 | yes | yes |
| /v1/youtube/video/comments | Video comments | 1 | yes | yes |
| /v1/youtube/video/sponsors | Video sponsors (inferred) | 1 | yes | yes |
Questions
- How much does the YouTube API cost?
- Calls cost 1 credit each. Every endpoint is cacheable, and a cache hit costs nothing. A failed request and an empty result are both free, on every endpoint.
- Does the YouTube API need a login or cookies?
- No. Every endpoint reads public, logged-out pages only — no account, no cookies, no session. An API key identifies your own TrueScrape account and nothing else.
- Can I fetch many YouTube targets in one request?
- Yes. 17 of 17 are batchable: one POST to /v1/jobs/batch takes many targets and returns a job id to poll.
- Can I watch YouTube endpoints for changes?
- Yes, 13 of 17. A subscription polls on your schedule and fires your webhook only when the content changed; the rest carry x-subscribable: false in the spec.