# Search YouTube Videos by Keyword

**Use case:** 

This actor searches YouTube by keyword and returns the matching video results. Give one or more search keywords such as SEO tips, and for each result it extracts title, publisher (channel name), view_count, published_at, detail_url, duration, description, video_id and thumbnail image.

## Input

```json
{
  "search_keywords": [
    "SEO tips"
  ]
}
```

## Output

```json
{
  "title": {
    "label": "Video Title",
    "format": "text"
  },
  "publisher": {
    "label": "Publisher",
    "format": "text"
  },
  "view_count": {
    "label": "View Count",
    "format": "integer"
  },
  "published_at": {
    "label": "Published At",
    "format": "text"
  },
  "detail_url": {
    "label": "Video URL",
    "format": "link"
  },
  "duration": {
    "label": "Duration",
    "format": "text"
  },
  "description": {
    "label": "Description",
    "format": "text"
  },
  "video_id": {
    "label": "Video ID",
    "format": "text"
  },
  "image": {
    "label": "Image URL",
    "format": "image"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube Video Scraper by Keyword](https://apify.com/delicious_zebu/youtube-video-scraper-by-keyword.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/delicious_zebu/youtube-video-scraper-by-keyword.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/delicious_zebu/youtube-video-scraper-by-keyword.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
