# YouTube Search Scraper - Videos by Keyword

> Search YouTube for videos by keyword and get title, URL, channel, views, duration and publish date. Licensed YouTube SERP data, no browser, no login. $0.001 per video. Built for YouTube SEO and AI agents.

- Category: Jobs & content
- Price: $1 per 1,000 × video result, billed per result by Apify (no subscription); any other billed events are listed on the Store page. Cap any run with `maxTotalChargeUsd`.
- Store page: https://apify.com/wrenfield-data/youtube-search-scraper?fpr=qx6tzs
- Human page: https://wrenfielddata.com/tools/youtube-search-scraper/
- OpenAPI 3 spec: https://api.apify.com/v2/acts/wrenfield-data~youtube-search-scraper/builds/default/openapi.json
- MCP tool: https://mcp.apify.com?tools=wrenfield-data/youtube-search-scraper (appears as `wrenfield-data--youtube-search-scraper`)

## Call it

Synchronous run that returns the dataset rows as JSON (use `/runs` for long jobs and poll; see the OpenAPI spec):

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/wrenfield-data~youtube-search-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["best crm for small business"], "country": "US", "maxResultsPerKeyword": 10}'
```

## Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `keywords` | array |  |  | YouTube search queries, one per line (up to 200). |
| `queries` | string |  |  | Same as Keywords: one query per line. Use this if you are migrating from another YouTube search Actor. |
| `country` | string |  | `"US"` | 2-letter country code (US, GB, DE...) or country name. |
| `countryCode` | string |  |  | Alias of Country. |
| `language` | string |  | `"en"` | 2-letter language code (en, de, fr...). |
| `maxResultsPerKeyword` | integer |  | `20` | How many videos to return per keyword (up to 50). |

## Example input

```json
{
  "keywords": [
    "best crm for small business"
  ],
  "country": "US",
  "maxResultsPerKeyword": 10
}
```

## Output fields

One flat row per result:

| Field | Type | Description |
|---|---|---|
| `keyword` | string |  |
| `rank` | integer |  |
| `title` | string |  |
| `url` | string |  |
| `videoId` | string |  |
| `channelName` | string |  |
| `channelId` | string |  |
| `channelUrl` | string |  |
| `description` | string |  |
| `views` | integer |  |
| `publishedAt` | string |  |
| `publishedAtIso` | string |  |
| `durationSecs` | integer |  |
| `duration` | string |  |
| `thumbnailUrl` | string |  |
| `isShorts` | boolean |  |
| `isLive` | boolean |  |
| `country` | string |  |
| `language` | string |  |
| `scrapedAt` | string |  |

## Notes

- Auth: an Apify API token as `Authorization: Bearer <token>`; the MCP server also supports OAuth sign-in.
- Failed or empty results are not charged on most tools; check the pricing on the Store page.
- Questions: hello@wrenfielddata.com
- Apify Store links on this page are referral links. They may earn us a commission, at no extra cost to you.
