Skip to Content
Documentation

Search videos

YouTube Search API · 10 points per successful call

Product overview and demoAll YouTube API endpointsError codes

GET
/v1/youtube/search

Searches YouTube for videos, in YouTube’s order: each result with its channel and the description snippet YouTube shows, plus YouTube’s estimate of the total. Lists show what YouTube shows on the page: a view count that is often rounded and the age as text (published_text); /video returns the exact counts and the publish time.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Your API key, sent as a bearer token. In the console on this page you can leave it empty: signed in, calls run on your own plan; otherwise they run on a shared demo key after a quick human check.

Query Parameters

query*string

What to search for.

Length1 <= length <= 200
cursor?string

Opaque cursor from meta.pagination.next_cursor of a previous response.

Lengthlength <= 16384

Response Body

Successful response

application/json
  1. response
meta*
data*
Example Request
curl -X GET 'https://api.endpointry.com/v1/youtube/search?query=lofi+hip+hop'
Example Response
{
  "meta": {
    "request_id": "req_7729f93d3facf68ff83e5c50",
    "as_of": "2026-11-24T12:00:00.000Z",
    "cache": "MISS",
    "pagination": {
      "next_cursor": "ZTA2YmU5NmY6aTpFck1ERWd4c2IyWnBJR2hw",
      "limit": 20,
      "returned": 1
    }
  },
  "data": {
    "videos": [
      {
        "id": "n61ULEU7CO0",
        "url": "https://www.youtube.com/watch?v=n61ULEU7CO0",
        "title": "Best of lofi hip hop 2021 ✨ [beats to relax/study to]",
        "duration_seconds": 22258,
        "views": 58932440,
        "live_viewers": null,
        "published_text": "4 years ago",
        "is_live": false,
        "thumbnails": [
          {
            "url": "https://i.ytimg.com/vi/n61ULEU7CO0/hq720.jpg",
            "width": 360,
            "height": 202
          }
        ],
        "channel": {
          "id": "UCSJ4gkVC6NrvII8umztf0Ow",
          "name": "Lofi Girl"
        },
        "description_snippet": "Listen on Spotify, Apple music and more → https://fanlink.tv/BestofLofi2021"
      }
    ],
    "estimated_results": 3536678,
    "did_you_mean": null
  }
}