YouTube Video Stats API
youtube_statsRetrieve view, like, and comment counts for any public YouTube video or Short by submitting its URL. Returns a single object with these engagement metrics.
Instructions
Views, likes and comment counts for a public YouTube video or Short. Returns one object. Fields use this platform's own names. Cost: 1 credit on a live read, 0 on a cache hit. Public data only: no bios, contact details or login-walled data. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A public URL, for example https://www.youtube.com/watch?v=dQw4w9WgXcQ | |
| cache | No | Defaults to true. Only pass false when you specifically need a live read — it always costs credits, where a cache hit is free. |