Skip to content
Search Lab
YouTube · United States · English Change
Country
Language
YouTube · curl
curl -G https://www.searchapi.io/api/v1/search \
  -H "Authorization: Bearer $SEARCHAPI_API_KEY" \
  --data-urlencode 'engine=youtube' \
  --data-urlencode 'gl=US' \
  --data-urlencode 'hl=en' \
  --data-urlencode 'q=pulling an espresso shot'

The key is read from SEARCHAPI_API_KEY and sent as a Bearer token.