YouTube Search Suggestions API
Get the searches YouTube suggests as a query is typed into its search box, most popular first, for the language and country you choose.
- Endpoint
- POST /youtube/get-search-suggestions
- Price
- 1 credit per request
- SDK
- client.youtube.getSearchSuggestions()
- MCP tool
- youtube_get_search_suggestions
curl -X POST "https://api.bridgly.app/youtube/get-search-suggestions" \ -H "Authorization: Bearer $BRIDGLY_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "how to bake", "language": "en", "country": "US"}'import osimport requestsresponse = requests.post( "https://api.bridgly.app/youtube/get-search-suggestions", headers={"Authorization": f"Bearer {os.environ['BRIDGLY_KEY']}"}, json={ "query": "how to bake", "language": "en", "country": "US", },)data = response.json()const response = await fetch("https://api.bridgly.app/youtube/get-search-suggestions", { method: "POST", headers: { Authorization: `Bearer ${process.env.BRIDGLY_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "query": "how to bake", "language": "en", "country": "US" }),});const data = await response.json();import { Bridgly } from "@bridgly/sdk";const client = new Bridgly({ apiKey: "bgly_YOUR_KEY" });const res = await client.youtube.getSearchSuggestions({ query: "how to bake", language: "en", country: "US"});if (res.type === "success") { console.log(res.data);}What does the YouTube Search Suggestions API return?
YouTube search suggestions API: get the searches YouTube suggests as a query is typed, for any language and country, as JSON. Every response has the same envelope: the result in data, plus timeMs and the creditsCost of the call.
Request body
querystringrequired- The start of a search, e.g. "how to bake".
languagestring- Language of the suggestions, as a language code such as "en" or "pt-BR". Defaults to "en".
countrystring- Country whose searches the suggestions come from, as a two-letter code such as "US" or "IN". Defaults to "US".
cacheMaxAgeHoursinteger- Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean- Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Example response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "query": "string", "suggestions": [ "string" ] }}What can you build with the YouTube Search Suggestions API?
Research keywords
See what people search for around a topic.
Title videos
Find the wording viewers use before naming a video.
Compare markets
See how searches differ between countries and languages.
YouTube Search Suggestions API questions
Can I get suggestions for another country?
Yes. Set country to a two-letter code such as "DE" and language to a code such as "de".
What if YouTube has no suggestions?
You get an empty list of suggestions.
How do I use the YouTube Search Suggestions API?
Send a POST request to https://api.bridgly.app/youtube/get-search-suggestions with query in the JSON body and your API key in the Authorization header. In the TypeScript SDK, call client.youtube.getSearchSuggestions(). AI agents connected to Bridgly over MCP can call the youtube_get_search_suggestions tool.
How much does the YouTube Search Suggestions API cost?
Costs 1 credit per request. Credits cost $2.00 per 1,000 on pay-as-you-go and as low as $1.67 per 1,000 at volume. New accounts on a business email start with 100 free credits, and failed requests are never charged.
More YouTube endpoints
The same API key works on every endpoint. See all YouTube Transcript API endpoints.
- YouTube Hashtag API→YouTube hashtag API: list the videos or Shorts on any hashtag’s YouTube page, with how many videos and channels use it, as JSON.
- YouTube Playlist API→YouTube playlist API: get a playlist’s title, description, owner, video and view counts, plus its videos in order with duration and views, as JSON.
- YouTube Comments API→YouTube comments API: list the comments on any video or Short from its link, top or newest first, with text, author, likes, reply count and pinned and hearted status, as JSON.
- YouTube Comment Replies API→YouTube comment replies API: list the replies to any YouTube comment from the video link and comment ID, with text, author, likes and the comment each reply answers, as JSON.
Try the YouTube Search Suggestions API
100 free credits on business email, no card. Your first call takes a minute.