Paste YouTube URLs → JSON. Title, duration, channel, views, likes. That's it.
Live at: https://yt-util.akorite.workers.dev
Open the site, paste URLs in any format, hit Lookup.
curl -X POST https://yt-util.akorite.workers.dev/api/lookup \
-H 'Content-Type: application/json' \
-d '{"urls": ["https://youtu.be/dQw4w9WgXcQ"]}'Response:
{
"results": [
{
"id": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video)",
"duration": "3:34",
"uploader": "Rick Astley",
"views": 1776695172,
"likes": 19122091
}
],
"errors": []
}Bring your own API key by passing "apiKey": "your_key" in the request body. Otherwise it uses the server default.
https://youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://youtube.com/shorts/VIDEO_IDhttps://youtube.com/embed/VIDEO_ID- Bare
VIDEO_ID(11 characters)
Separate with newlines, commas, or spaces. Batches up to 50 per request.
git clone https://github.com/akorite/yt-util.git
cd yt-util
npm install
echo "YOUTUBE_API_KEY=your_key_here" > .dev.vars
npx wrangler dev # local dev at localhost:8787
npx wrangler deploy # deploy to Cloudflare WorkersRequires a YouTube Data API v3 key (free, 10k quota/day).
- Cloudflare Workers — free tier, no credit card needed
- TypeScript
- YouTube Data API v3
MIT