YouTube Keywords Discovery Tool avatar

YouTube Keywords Discovery Tool

Pricing

from $2.99 / 1,000 keyword discoveries

Go to Apify Store
YouTube Keywords Discovery Tool

YouTube Keywords Discovery Tool

Discover localized YouTube autocomplete phrases and attach current, first-party YouTube search-result evidence. This actor does not estimate search volume.

Pricing

from $2.99 / 1,000 keyword discoveries

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

23 days ago

Last modified

Categories

Features

Limited permissions

Share

Discover localized phrases from YouTube's public autocomplete endpoint and attach up to ten current public search results as evidence. Each row records the seed, the autocomplete query that produced the suggestion, its position in that query's response, the locale, the search URL, and the evidence videos. The Actor does not estimate search volume, keyword difficulty, or revenue, and does not label suggestions as trending.

Get started

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Enter one to 20 keywords, then choose language and country.
  3. Leave includeSearchEvidence enabled if you want video evidence; set maxSearchResults to 0 to skip those requests.
  4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open Run summary (OUTPUT) for status, request counts, and failures.

Input

keywords is required; all other fields are optional. Unsupported field names and out-of-range values are rejected before requests start.

FieldTypeRequired?DefaultMeaning
keywordsstring arrayRequiredPrefilled with ["how to cook pasta"]One to 20 seed phrases, each 1–200 characters after trimming.
languagestringOptionalenTwo- or three-letter language code with an optional region, such as en or pt-BR; normalized to lowercase.
countrystringOptionalUSTwo-letter ISO country code, normalized to uppercase.
maxSuggestionsPerKeywordintegerOptional20Maximum unique phrases emitted per seed, from 1 to 50.
expandWithLettersbooleanOptionalfalseAlso query <seed> a through <seed> z, stopping at the suggestion cap.
includeSearchEvidencebooleanOptionaltrueFetch the public YouTube results page for each emitted phrase.
maxSearchResultsintegerOptional5Maximum evidence videos per phrase, from 0 to 10. 0 skips evidence requests.
maxRetriesintegerOptional2Retries per route after a failed public request, from 0 to 3.
enableProxyFallbackbooleanOptionaltrueTry the fallback route after direct access fails, or direct after an explicit proxy route fails. The fallback needs a usable proxy configuration.
requestDelayMsintegerOptional250Delay between autocomplete requests, from 0 to 5,000 ms.
requestTimeoutSecsintegerOptional60Timeout for one public HTTP request, from 5 to 120 seconds.
proxyConfigurationobjectOptionalPrefilled with {"useApifyProxy": false}Standard Apify Proxy configuration. Proxy URLs must be credential-free.

Example input using the saved run's settings:

{
"keywords": ["how to cook pasta"],
"language": "en",
"country": "US",
"maxSuggestionsPerKeyword": 3,
"expandWithLetters": false,
"includeSearchEvidence": true,
"maxSearchResults": 2,
"maxRetries": 2,
"enableProxyFallback": false,
"requestDelayMs": 0,
"requestTimeoutSecs": 60,
"proxyConfiguration": {
"useApifyProxy": false
}
}

The runtime also accepts includeDiagnostics (boolean, default true), which is recorded in OUTPUT but is not exposed in the Console input schema. There is no global row cap or source-request budget: up to 20 seeds can each emit up to 50 suggestions, and each phrase can add one evidence request.

For each seed the Actor queries the public autocomplete endpoint with hl=<language> and gl=<country>. When expandWithLetters is enabled, it adds letter-suffix queries in alphabetical order until the per-seed suggestion cap is reached. Every retained suggestion records the exact sourceQuery that produced it.

Output

The dataset contains one row per emitted autocomplete suggestion. Fields that the public page does not expose are omitted rather than guessed. searchEvidence is present only when at least one evidence video parsed; when evidence is disabled, empty, or failed, the field is omitted and searchEvidenceCount is 0 with evidenceAvailable: false.

FieldTypeAvailabilityMeaning
recordTypestringAlwaysAlways youtube_keyword_discovery.
seedKeywordstringAlwaysSeed phrase after trimming and whitespace collapse.
keywordstringAlwaysAutocomplete suggestion after whitespace normalization.
sourcestringAlwaysAlways youtube-public-autocomplete; search evidence is nested separately.
sourceQuerystringAlwaysAutocomplete query that produced the suggestion: the seed or a seed-plus-letter variant.
suggestionPositionintegerAlwaysOne-based position of the suggestion in that autocomplete response.
localeobjectAlwaysObject with language and uppercase country.
searchEvidenceobject arrayWhen at least one evidence video parsesUp to maxSearchResults public video rows; omitted when no evidence exists.
searchEvidenceCountintegerAlwaysNumber of evidence videos; 0 when evidence is absent.
evidenceAvailablebooleanAlwaysWhether at least one evidence video was saved.
searchEvidenceUrlstringAlwaysConstructed public search URL for the keyword, even when evidence was not requested.
discoveryMethodstringAlwaysseed-query or seed-and-letter-expansion, based on the input flag.
requestedMaxSuggestionsintegerAlwaysThe maxSuggestionsPerKeyword value used.
requestedMaxSearchResultsintegerAlwaysThe maxSearchResults value used.
retrievedAtstringAlwaysTime the row was saved, in ISO UTC.

Each searchEvidence item contains:

Evidence fieldTypeAvailabilityMeaning
videoIdstringAlways11-character YouTube video ID.
urlstringAlwaysPublic watch or Shorts URL.
rankintegerAlwaysOne-based position within this phrase's evidence list.
searchUrlstringAlwaysPublic search URL that produced the evidence.
sourceRendererstringAlwaysytInitialData.videoRenderer or ytInitialData.lockupViewModel.
titlestringWhen exposedVideo title.
descriptionstringWhen exposedResult description text.
channelNamestringWhen exposedChannel display name.
channelIdstringWhen exposedChannel ID.
channelUrlstringWhen exposedPublic channel URL.
publishedTextstringWhen exposedRelative publish label.
viewCountTextstringWhen exposedDisplayed view count.
viewCountintegerWhen the displayed count parsesNumeric view count; abbreviated values are approximate.
durationTextstringWhen exposedDisplayed duration.
durationSecondsintegerWhen duration parsesDuration converted to seconds.
badgesstring arrayWhen exposedVideo-card badges, such as Verified.
thumbnailUrlstringWhen a thumbnail existsLargest thumbnail URL.
thumbnailsobject arrayWhen thumbnails existThumbnail objects with url, width, and height.

The example below is a real saved row from the 2026-10-25 run, including both evidence videos and all saved fields.

{
"recordType": "youtube_keyword_discovery",
"seedKeyword": "how to cook pasta",
"keyword": "how to cook pasta",
"source": "youtube-public-autocomplete",
"sourceQuery": "how to cook pasta",
"suggestionPosition": 1,
"locale": {
"language": "en",
"country": "US"
},
"searchEvidence": [
{
"videoId": "UYhKDweME3A",
"title": "How To Cook The Perfect Pasta | Gordon Ramsay",
"channelName": "Gordon Ramsay",
"channelId": "UCIEv3lZ_tNXHzL3ox-_uUGQ",
"channelUrl": "https://www.youtube.com/@gordonramsay",
"publishedText": "12y ago",
"viewCountText": "12,044,544 views",
"viewCount": 12044544,
"durationText": "1:32",
"durationSeconds": 92,
"badges": [
"Verified"
],
"thumbnailUrl": "https://i.ytimg.com/vi/UYhKDweME3A/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLD6ZXBOZKsYVjeUoFA8-zL4vIxAGA",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/UYhKDweME3A/hq720.jpg?sqp=-oaymwEcCOgCEMoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDmif4uz4zri1_cp-yAIlFYLy8aJw",
"width": 360,
"height": 202
},
{
"url": "https://i.ytimg.com/vi/UYhKDweME3A/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLD6ZXBOZKsYVjeUoFA8-zL4vIxAGA",
"width": 720,
"height": 404
}
],
"url": "https://www.youtube.com/watch?v=UYhKDweME3A",
"rank": 1,
"searchUrl": "https://www.youtube.com/results?search_query=how+to+cook+pasta&hl=en&gl=US",
"sourceRenderer": "ytInitialData.videoRenderer"
},
{
"videoId": "VnwNR5qR9ow",
"title": "How to Boil Pasta",
"channelName": "The Cooking Corner",
"channelId": "UCsm9el2srojUP3jXFyObcQg",
"channelUrl": "https://www.youtube.com/@TheCookingCorner",
"publishedText": "8y ago",
"viewCountText": "346,295 views",
"viewCount": 346295,
"durationText": "4:15",
"durationSeconds": 255,
"thumbnailUrl": "https://i.ytimg.com/vi/VnwNR5qR9ow/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCVkcWPd_UYXHVA0Ivn2Pimp-v8sg",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/VnwNR5qR9ow/hq720.jpg?sqp=-oaymwEcCOgCEMoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAcaWCFzcGkkUPSKX8gr5TZTPS0Jg",
"width": 360,
"height": 202
},
{
"url": "https://i.ytimg.com/vi/VnwNR5qR9ow/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCVkcWPd_UYXHVA0Ivn2Pimp-v8sg",
"width": 720,
"height": 404
}
],
"url": "https://www.youtube.com/watch?v=VnwNR5qR9ow",
"rank": 2,
"searchUrl": "https://www.youtube.com/results?search_query=how+to+cook+pasta&hl=en&gl=US",
"sourceRenderer": "ytInitialData.videoRenderer"
}
],
"searchEvidenceCount": 2,
"evidenceAvailable": true,
"searchEvidenceUrl": "https://www.youtube.com/results?search_query=how+to+cook+pasta&hl=en&gl=US",
"discoveryMethod": "seed-query",
"requestedMaxSuggestions": 3,
"requestedMaxSearchResults": 2,
"retrievedAt": "2026-10-25T21:01:49.110Z"
}

Run summary

Run summary is stored separately from the dataset in the run's key-value store under OUTPUT.

FieldMeaning
runTypeRun type; always youtube-public-keyword-discovery-run.
statusActor process outcome: SUCCEEDED or FAILED.
dataStatusDataset completeness: COMPLETE, PARTIAL, NO_RESULTS, or FAILED.
dataAvailableWhether at least one keyword row was saved.
itemCountKeyword rows saved.
sourceCountEqual to itemCount in this version; it counts saved rows, not distinct source hosts.
suggestionsRequestsAutocomplete request attempts, including failed attempts.
searchRequestsSearch evidence request attempts.
diagnosticCountDistinct operational diagnostics recorded.
failedCountFailed autocomplete or evidence attempts plus a fatal error, if any.
blockedCountFailures whose error matched an access-block signal.
proxyRequestedWhether proxy use was requested explicitly or through fallback.
proxyConfiguredWhether at least one proxy URL was obtained.
includeDiagnosticsWhether diagnostics were recorded; default true.
includeSearchEvidenceWhether evidence was requested.
expandWithLettersWhether letter expansion was enabled.
maxSuggestionsPerKeywordPer-seed suggestion cap.
maxSearchResultsPer-phrase evidence cap.
maxRetriesRetries per route.
requestDelayMsAutocomplete request delay.
requestTimeoutSecsPer-request timeout.
durationMsElapsed run time in milliseconds.
finishedAtTime the summary was written, in ISO UTC.
runStatusCanonical run status; matches status.
StatusData statusMeaning
SUCCEEDEDCOMPLETERows were saved and no autocomplete or evidence request failed.
SUCCEEDEDPARTIALRows were saved, but at least one request failed. Saved rows remain available.
SUCCEEDEDNO_RESULTSNo row was saved and no failure was recorded; for example, autocomplete returned no suggestions.
FAILEDFAILEDNo row was saved and at least one request or the input failed.

Example OUTPUT from the 2026-10-25 run:

{
"runType": "youtube-public-keyword-discovery-run",
"status": "SUCCEEDED",
"dataStatus": "COMPLETE",
"dataAvailable": true,
"itemCount": 3,
"sourceCount": 3,
"suggestionsRequests": 1,
"searchRequests": 3,
"diagnosticCount": 0,
"failedCount": 0,
"blockedCount": 0,
"proxyRequested": false,
"proxyConfigured": false,
"includeDiagnostics": true,
"includeSearchEvidence": true,
"expandWithLetters": false,
"maxSuggestionsPerKeyword": 3,
"maxSearchResults": 2,
"maxRetries": 2,
"requestDelayMs": 0,
"requestTimeoutSecs": 60,
"durationMs": 3541,
"finishedAt": "2026-10-25T21:01:51.536Z",
"runStatus": "SUCCEEDED"
}

Coverage and limitations

The primary source is YouTube's public autocomplete endpoint. suggestionPosition is the position in the response for sourceQuery, not a global rank or demand score. Duplicate suggestions across letter-expansion queries keep the first query and position seen. discoveryMethod reflects the input flag, so it can say seed-and-letter-expansion even if the suggestion cap was reached before any letter query ran.

Search evidence is limited to the first public results page and the first maxSearchResults parsed cards. rank is the order within that evidence list, not a stable YouTube ranking. searchEvidenceUrl is constructed for every row even when evidence is disabled, so its presence does not prove that a search request was made. When evidence is requested but no cards parse, searchEvidence is omitted, searchEvidenceCount is 0, and evidenceAvailable is false.

The Actor does not paginate, follow continuation tokens, launch a browser, or call a private API. enableProxyFallback tries the fallback route only after the first route fails; retries apply per route. There is no global request budget, so keywords, maxSuggestionsPerKeyword, expandWithLetters, and includeSearchEvidence directly determine request volume. Up to 27 autocomplete requests per seed are possible with letter expansion, plus one evidence request per emitted suggestion.

Usage and support

An autocomplete-only run normally costs one request per seed plus letter-suffix requests when expansion is enabled. Each emitted suggestion adds one evidence request when evidence is enabled. Keep seeds and suggestion caps small while testing, and set maxSearchResults to 0 to skip evidence. See the Actor's Pricing tab for current account rates.

Use the Actor Issues page to report a problem. Include the run ID, the input used, and the OUTPUT summary; do not include tokens, cookies, or private data. This Actor is not affiliated with, endorsed by, or sponsored by YouTube or Google. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.