Social Media
YouTube Search Suggestions
Get YouTube's autocomplete search suggestions for a query — the terms the search box would propose — as JSON.
POST/api/v1/youtube/suggestions
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonsearchstringrequiredPartial or full query to autocomplete (sent as search).
Example: lofi hip hop
languagestringdefault:enLanguage code for the suggestions (e.g. en, es, fr).
regionstringdefault:USRegion code that biases the suggestions (e.g. US, GB, DE).
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.youtube.suggestions("lofi hip hop")
print(results)Response
"total_count": 5
},
"response_time": 412,
"credits_used": 1,
"credits_remaining": 4759
}