YouTube Search Advanced API

Find matching YouTube results using this operation’s documented search parameters.

GET/v1/youtube/search/advanced
1 credit per successful callCache window 5 minutesFull API reference ↗

Coverage 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.

GET/v1/youtube/search/advanced
Optional parameters (30)

No API key needed for this protected browser test. Production calls require a server-side SocialQuery key.

Request preview
Copy this request into your server-side integration, or run a test to inspect the response.
curl -X GET 'https://socialquery.dev/v1/youtube/search/advanced?query=lofi+hip+hop' \
  -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: lofi hip hop
orderOptional
Provide order in the format shown in the example.
Example: —
durationOptional
Provide duration in the format shown in the example.
Example: long
event_typeOptional
Provide event type in the format shown in the example.
Example: —
licenseOptional
Provide license in the format shown in the example.
Example: —
categoryOptional
Provide category in the format shown in the example.
Example: —
regionOptional
Provide region in the format shown in the example.
Example: us
languageOptional
Provide language in the format shown in the example.
Example: en
published_afterOptional
Provide published after in the format shown in the example.
Example: —
published_beforeOptional
Provide published before in the format shown in the example.
Example: —
channel_idOptional
Provide channel id in the format shown in the example.
Example: UC_x5XG1OV2P6uZZ5FSM9Ttw
max_resultsOptional
Provide max results in the format shown in the example.
Example: 10
cursorOptional
The pagination cursor returned by the previous response, if supported.
Example: —
safe_searchOptional
Provide safe search in the format shown in the example.
Example: —
video_captionOptional
Provide video caption in the format shown in the example.
Example: —
video_definitionOptional
Provide video definition in the format shown in the example.
Example: —
video_dimensionOptional
Provide video dimension in the format shown in the example.
Example: —
video_embeddableOptional
Provide video embeddable in the format shown in the example.
Example: —
video_typeOptional
Provide video type in the format shown in the example.
Example: —
topic_idOptional
Provide topic id in the format shown in the example.
Example: 1234567890
locationOptional
Provide location in the format shown in the example.
Example: —
location_radiusOptional
Provide location radius 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: channel
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: —

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 →