# YouTube Scraper

Apify

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

## Use this tool with your AI agent

1. Copy the prompt
2. Paste it into your agent
3. Tell it what you need

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use YouTube Scraper (tool ID: apify.streamers-youtube-scraper). Ask me for the details you need, then show me the result.

**Already connected:** Your agent can use that connection.

**New user:** Your agent will guide you through setup, sign-in and authorisation.

Provider access is included.

Connect your first agent to receive $1 trial credit.

**Job:** [Search YouTube videos and channels](https://scrollport.com/tools/youtube-data-api)

**Current price:** $0.0056/result

**Availability:** Ready to run

## Tool details

**About this tool**

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

**Inputs and outputs**

### Input

`input` object · optional

Provider-specific public source, URL or search criteria.

`maxItems` number · optional

Maximum number of records to return.

### Output

`channelName` string

Returned channel name value.

`channelUrl` string

Returned channel url value.

`date` string

Returned date value.

`duration` string

Returned duration value.

`hashtags` array

Returned hashtags value.

`id` string

Returned id value.

`input` string

Provider-specific public source, URL or search criteria.

`title` string

Returned title value.

`type` string

Returned type value.

`url` string

Returned url value.

**Example request and output**

Inspect returns this reviewed example, its estimated cost and the current input schema. Run calculates the estimate for your actual input.

### 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"
}
```

**Errors and limitations**

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

---

Canonical page: https://scrollport.com/tools/providers/apify/streamers-youtube-scraper
