YouTube data
Ranked YouTube search results for up to 200 keywords per run: rank, title, video id, duration, view count, publish date and thumbnail. Sort by relevance, date, views or rating. Only delivered results are charged.
One search result delivered to the dataset. Keywords that fail or return nothing are never charged.
# one call, results straight back curl -X POST "https://api.apify.com/v2/acts/steadydata~youtube-search/run-sync-get-dataset-items?token=$APIFY_TOKEN" \ -H "Content-Type: application/json" \ -d '{ ... }'
| Field | Name | What it does |
|---|---|---|
queriesrequired | Search queries | Keywords to search YouTube for, up to 200 per run. |
maxResultsPerQuery | Max results per query | Stop after this many results per query. This is your cost ceiling: one delivered result is one charged event. |
sortBy | Sort by | How YouTube should order the results. |
language | Language | Interface language for the texts YouTube returns, e.g. en, nl, de. |
country | Country | ISO country code used for the request. Search results differ per country. |
| Field | Type |
|---|---|
query | string, null |
sortBy | string, null |
rank | integer, null |
videoId | string, null |
url | string, null |
title | string, null |
duration | string, null |
durationSeconds | integer, null |
viewCount | integer, null |
publishedText | string, null |
thumbnailUrl | string, null |
status | string, null |
input | string, null |
errorCode | string, null |
error | string, null |