# Pipefetch > YouTube data as a simple JSON API: transcripts, videos, channels, search, comments and Shorts. Prepaid credits that never expire, no quota, no OAuth. Pipefetch is an independent HTTP API that returns public YouTube data as JSON. It is not affiliated with YouTube or Google. - Base URL: https://pipefetch.com - Authentication: an API key in the `x-api-key` header (or `Authorization: Bearer`). Keys are created at https://pipefetch.com/dashboard - Every endpoint is a GET request with query parameters and answers `{ "data": …, "credits": { "used", "remaining" } }` - Errors answer `{ "error": { "code", "message" } }` and are never charged - Pricing: prepaid credits that never expire, $1.59 to $3.00 per 1,000; 100 free credits for a new account - Typical response time: 2 to 7 seconds ## Endpoints - [YouTube Transcript API](https://pipefetch.com/docs/youtube/transcript): `GET /v1/youtube/transcript`. The transcript of any public video with captions, as plain text, timestamped segments, SRT or WebVTT. Costs 1 credit per request. Example: https://pipefetch.com/v1/youtube/transcript?video=jNQXAC9IVRw - [YouTube Video API](https://pipefetch.com/docs/youtube/video): `GET /v1/youtube/video`. Exact views, likes and comment count, description, tags, chapters and channel for one video. Costs 1 credit per request. Example: https://pipefetch.com/v1/youtube/video?video=jNQXAC9IVRw - [YouTube Channel API](https://pipefetch.com/docs/youtube/channel): `GET /v1/youtube/channel`. Subscribers, video count, description, keywords and avatar for a channel, from a handle, id or URL. Costs 1 credit per request. Example: https://pipefetch.com/v1/youtube/channel?channel=%40mkbhd - [YouTube Channel Videos API](https://pipefetch.com/docs/youtube/channel-videos): `GET /v1/youtube/channel/videos`. The latest uploads of a channel, newest first, with views, duration and publish time. Costs 1 credit per request. Example: https://pipefetch.com/v1/youtube/channel/videos?channel=%40mkbhd&limit=10 - [YouTube Shorts API](https://pipefetch.com/docs/youtube/channel-shorts): `GET /v1/youtube/channel/shorts`. The Shorts of a channel, newest first, with view counts and thumbnails. Costs 1 credit per request. Example: https://pipefetch.com/v1/youtube/channel/shorts?channel=%40MrBeast&limit=20 - [YouTube Search API](https://pipefetch.com/docs/youtube/search): `GET /v1/youtube/search`. YouTube search results for a query, with the same sorting and filters the site offers. Costs 1 credit per request. Example: https://pipefetch.com/v1/youtube/search?q=web+scraping+tutorial&limit=20 - [YouTube Comments API](https://pipefetch.com/docs/youtube/comments): `GET /v1/youtube/comments`. Top or newest comments of a video with likes, reply counts, pinned and hearted flags. Costs 1 credit per 20 items requested. Example: https://pipefetch.com/v1/youtube/comments?video=jNQXAC9IVRw&limit=20 ## Documentation - [Quickstart, authentication, credits and errors](https://pipefetch.com/docs) - [OpenAPI document](https://pipefetch.com/openapi.json) - [Pricing](https://pipefetch.com/pricing) ## Optional - [Comparison with the official YouTube Data API](https://pipefetch.com/alternatives/youtube-data-api) - [How to get a YouTube transcript in Python](https://pipefetch.com/guides/youtube-transcript-python): Three working ways, with code: a free library, yt-dlp and an HTTP API, and where each one stops working. - [How to get a YouTube transcript in Node.js](https://pipefetch.com/guides/youtube-transcript-nodejs): The npm package route and the plain fetch route, with code, and why browsers and serverless functions need the second. - [YouTube API quota exceeded: what the error means and how to fix it](https://pipefetch.com/guides/youtube-api-quota-exceeded): How Google counts quota today, why search runs out first, and seven ways to stay under the limit or get past it. - [How to find a YouTube channel ID from a handle or URL](https://pipefetch.com/guides/youtube-channel-id-from-handle): By hand, with the official API and with one HTTP call, including old /c/ and /user/ links. - [How to download YouTube subtitles as SRT or VTT](https://pipefetch.com/guides/download-youtube-subtitles-srt-vtt): The yt-dlp command and a single HTTP request that returns a ready .srt or .vtt file, with code to save it. - [YouTube Transcript API overview](https://pipefetch.com/youtube-transcript-api) - [YouTube Video API overview](https://pipefetch.com/youtube-video-api) - [YouTube Channel API overview](https://pipefetch.com/youtube-channel-api) - [YouTube Channel Videos API overview](https://pipefetch.com/youtube-channel-videos-api) - [YouTube Shorts API overview](https://pipefetch.com/youtube-shorts-api) - [YouTube Search API overview](https://pipefetch.com/youtube-search-api) - [YouTube Comments API overview](https://pipefetch.com/youtube-comments-api)