YouTube Search API
Keyword search. Use `limit` to say how many results you want.
YouTube API pricing — $0.50 per 1,000 results
POST
/api/public/v1/scrape/youtube/search
Returns post_feed_api
Parameters#
| Parameters | Type | Required | Description |
|---|---|---|---|
query |
string | yes |
Any search keyword.
Example: mars rover
|
uploaded |
string | no |
Only videos uploaded within `hour`, `today`, `week`, `month` or `year`. A filter, not a sort: results stay in YouTube's relevance order. Leave out for no filter.
Example: week
|
limit |
integer | no | The most results you want. You pay only for results that come back, never more than this. |
Results#
GET /runs/:id/results answers with this once the run has finished — one post per row.
Every field we collect is in the row itself: one flat object per row, with nothing nested under a raw field. Fields the platform sends beyond the ones we name are included too, under the platform's own names. The example shows a recorded payload, so a live row can carry more.
This endpoint errs towards returning more rather than less, so expect a few extra rows alongside what you asked for. Everything still comes back typed and parsed the same way.