YouTube

Suggest YouTube search queries

Returns YouTube search-box autocomplete completions for a query prefix, in YouTube's own ranking order. hl and gl localize the list; they default to en and US.

get/youtube/suggest

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/youtube/suggest
  • Auth: API key in header x-api-key

Query parameters

qstring required

Search query prefix

countinteger

Suggestions to return; defaults to 10, clamped to 1..20

hlstring

YouTube interface language, such as en, de, or pt-BR; defaults to en

glstring

Two-letter YouTube region code; defaults to US

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "query": "openai",
    "suggestions": [
      {
        "position": 1,
        "query": "openai api key"
      }
    ]
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.