cURL
curl --request POST \ --url https://api.anysite.io/api/youtube/search/videos \ --header 'Content-Type: application/json' \ --header 'access-token: <api-key>' \ --data ' { "query": "<string>", "count": 300, "timeout": 300 } '
[ { "id": "<string>", "title": "<string>", "url": "<string>", "@type": "@youtube_search_video", "author": { "id": "<string>", "alias": "<string>", "@type": "@youtube_search_video_author", "name": "<string>", "url": "<string>" }, "duration_seconds": 123, "view_count": 123, "published_at": 123, "image": "<string>" } ]
Search YouTube videos
Price: 1 credit
💡 AI Hint: Search YouTube videos by keyword query. Returns video titles, view counts, and durations.
⚠️ Common errors: 422: Invalid query format.
API token from the dashboard
Search query
"python tutorial"
Max number of results
1 <= x <= 600
Max scrapping execution timeout (in seconds)
20 <= x <= 1500
Successful Response
Show child attributes