YouTube Scraper

Apify

Collect public YouTube videos, channels and search results with video metadata.

Current price
$0.0056/result
Availability
Ready to run
Last accepted verification

What this API does

Search YouTube and return a bounded set of public video metadata.

Agents select this operation with tool ID apify.streamers-youtube-scraper, then inspect its current executable contract before a run.

Public input and output shape

Input

inputobject · optional

Provider-specific public source, URL or search criteria.

maxItemsnumber · optional

Maximum number of records to return.

Output

channelNamestring

Returned channel name value.

channelUrlstring

Returned channel url value.

datestring

Returned date value.

durationstring

Returned duration value.

hashtagsarray

Returned hashtags value.

idstring

Returned id value.

inputstring

Provider-specific public source, URL or search criteria.

titlestring

Returned title value.

typestring

Returned type value.

urlstring

Returned url value.

Example request and output

This reviewed worked example is shared with inspect. Inspect also returns the current executable schema and price estimate before a paid run.

Request

{
  "tool_id": "apify.streamers-youtube-scraper",
  "input": {
    "input": {
      "maxResults": 2,
      "searchQueries": [
        "Crawlee"
      ],
      "maxResultStreams": 0,
      "maxResultsShorts": 0
    },
    "maxItems": 2
  }
}

Output

{
  "id": "g1Ll9OlFwEQ",
  "url": "https://www.youtube.com/watch?v=g1Ll9OlFwEQ",
  "date": "2022-08-22T15:26:13.000Z",
  "type": "video",
  "input": "Crawlee",
  "title": "Crawlee, the web scraping and browser automation library",
  "duration": "00:03:14",
  "hashtags": [
    "#webscraping",
    "#crawlee"
  ],
  "channelUrl": "https://www.youtube.com/@Apify",
  "channelName": "Apify"
}
Teaching errors and limitations

No listing-specific teaching errors are published. Inspect the tool before running to receive the current schema and error guidance.

Updated
18 August 2026

Use YouTube Scraper with Scrollport

Scrollport identifies and validates the best-in-class API tools and provides them on a pay-as-you-go basis so you don't need to maintain a separate provider account, subscription or credits.

Give your agent the setup prompt to receive $1 in trial credit and start using the tools right away.