Skip to Content
Documentation

Complete a search

YouTube Autocomplete API · 5 points per successful call

Product overview and demoAll YouTube API endpointsError codes

GET
/v1/youtube/autocomplete

Returns the searches YouTube suggests for a partial query, in its order.

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

Partial search to complete.

Length1 <= length <= 100

Response Body

Successful response

application/json
  1. response
meta*
data*
Example Request
curl -X GET 'https://api.endpointry.com/v1/youtube/autocomplete?query=lofi'
Example Response
{
  "meta": {
    "request_id": "req_7729f93d3facf68ff83e5c50",
    "as_of": "2026-11-24T12:00:00.000Z",
    "cache": "MISS"
  },
  "data": {
    "suggestions": [
      {
        "position": 1,
        "keyword": "lofi"
      },
      {
        "position": 2,
        "keyword": "lofi coffee shop"
      },
      {
        "position": 3,
        "keyword": "lofi girl"
      }
    ]
  }
}