Skip to content

YouTube Search Suggestions API

YouTube search autocomplete suggestions for a partial query, as a list of strings (up to ~10).

GEThttps://api.maviapi.com/v1/sites/youtube/search_suggestions5 credits per call

Parameters

NameRequiredExampleDescription
querystring in queryOptionalpythonpartial search text

Response fields

querystringe.g."python"
suggestionsstring[]

Example request

Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.

cURL
curl 'https://api.maviapi.com/v1/sites/youtube/search_suggestions' \
  -H "Authorization: Bearer $MAVI_KEY"

YouTube Search Suggestions API questions

What you get, what it costs and how to call it.

What does the YouTube Search Suggestions API return?

YouTube search autocomplete suggestions for a partial query, as a list of strings (up to ~10). The response has query and suggestions.

Which parameters does the YouTube Search Suggestions API take?

Every parameter of GET /search_suggestions is optional. You can pass query.

How much does one YouTube Search Suggestions API call cost?

One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.

How do I call the YouTube Search Suggestions API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/youtube/search_suggestions with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.

Is the YouTube Search Suggestions API official?

No. It is an independent, hosted API from maviapi for the public data on youtube.com, and it is not made, endorsed or supported by YouTube. Its parameters and response fields are documented on this page.