YouTube Search API
Search YouTube using the documented query and filters, and return structured results.
/v1/youtube/searchCoverage is rolling out during preview. Test the endpoint you need before integrating. Unavailable operations return an explicit error and use no credits.
Try this endpoint
Enter the documented inputs, run a protected browser test, and inspect the JSON response.
curl -X GET 'https://socialquery.dev/v1/youtube/search?query=javascript+tutorial' \
-H "x-api-key: $SOCIALQUERY_API_KEY"Request contract
Parameters
Pass these fields as query parameters. Production requests also require your server-side API key.
queryRequired- The keywords or phrase to search for.Example: javascript tutorial
uploadDateOptional- Provide uploadDate in the format shown in the example.Example: today
sortByOptional- Provide sortBy in the format shown in the example.Example: relevance
typeOptional- Provide type in the format shown in the example.Example: videos
durationOptional- Provide duration in the format shown in the example.Example: under_3_min
regionOptional- Provide region in the format shown in the example.Example: us
continuationTokenOptional- Provide continuationToken in the format shown in the example.Example: —
includeExtrasOptional- Provide includeExtras in the format shown in the example.Example: —
includeOptional- Provide include in the format shown in the example.Example: —
exact_datesOptional- Provide exact dates in the format shown in the example.Example: true
relevanceOptional- Provide relevance in the format shown in the example.Example: score
relevance_thresholdOptional- Provide relevance threshold in the format shown in the example.Example: —
relevant_toOptional- Provide relevant to in the format shown in the example.Example: —
judgmentsOptional- Provide judgments in the format shown in the example.Example: on
dry_runOptional- Provide dry run in the format shown in the example.Example: 1
fitOptional- Provide fit in the format shown in the example.Example: goal
goalOptional- Provide goal in the format shown in the example.Example: —
fit_tokensOptional- Provide fit tokens in the format shown in the example.Example: 10
labelOptional- Provide label in the format shown in the example.Example: —
excludeOptional- Provide exclude in the format shown in the example.Example: —
brandOptional- Provide brand in the format shown in the example.Example: —
brand_descriptionOptional- Provide brand description in the format shown in the example.Example: —
offerOptional- Provide offer in the format shown in the example.Example: —
label_evidenceOptional- Provide label evidence in the format shown in the example.Example: 1
sinceOptional- Provide since in the format shown in the example.Example: —
untilOptional- Provide until in the format shown in the example.Example: —
min_viewsOptional- Provide min views in the format shown in the example.Example: 10
max_age_daysOptional- Provide max age days in the format shown in the example.Example: 10
sort_rowsOptional- Provide sort rows in the format shown in the example.Example: views
max_pagesOptional- Provide max pages in the format shown in the example.Example: 5
seenOptional- Provide seen in the format shown in the example.Example: —
cursorOptional- The pagination cursor returned by the previous response, if supported.Example: —
Build a reliable integration.
Keep your key server-side
Pass your SocialQuery key in the x-api-key header. Never expose credentials in a browser bundle.
Check the response
Read success before using data. Preserve request_id when logging errors or contacting support.
Account for coverage
Test the fields you need. Provider availability varies, and unavailable operations use no credits.
More YouTube endpoints
View all →YouTube Channel API
Look up a public YouTube channel and inspect its returned details and metrics.
YouTube Channel About API
Retrieve the available About information for a YouTube channel.
YouTube Channel Videos API
List videos from a public YouTube channel.