Skip to content
This repository was archived by the owner on Jul 4, 2026. It is now read-only.

Repository files navigation

yt-util

Paste YouTube URLs → JSON. Title, duration, channel, views, likes. That's it.

Live at: https://yt-util.akorite.workers.dev

Usage

Web UI

Open the site, paste URLs in any format, hit Lookup.

API

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.

URL formats accepted

  • https://youtube.com/watch?v=VIDEO_ID
  • https://youtu.be/VIDEO_ID
  • https://youtube.com/shorts/VIDEO_ID
  • https://youtube.com/embed/VIDEO_ID
  • Bare VIDEO_ID (11 characters)

Separate with newlines, commas, or spaces. Batches up to 50 per request.

Deploy your own

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 Workers

Requires a YouTube Data API v3 key (free, 10k quota/day).

Stack

License

MIT

About

Paste YouTube links. Get back JSON with title, duration, uploader, views, and likes. No sign-up, no ads.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages