# YouTube Search Videos API | YouTube video search

**Use case:** 

Search YouTube videos with SocialDataX. Export video IDs, titles, channels, publish time, URLs, metrics and pagination.

## Input

```json
{
  "operation": "search_videos",
  "keyword": "露营",
  "page_token": "***",
  "sort_type": "general",
  "video_type": "all",
  "publish_time_range": "all",
  "duration_range": "all",
  "max_items": 20,
  "auto_paginate": true
}
```

## Output

```json
{
  "operation": {
    "label": "Operation",
    "format": "string"
  },
  "item_index": {
    "label": "Item index",
    "format": "integer"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "content": {
    "label": "Content",
    "format": "string"
  },
  "share_url": {
    "label": "Share URL",
    "format": "string"
  },
  "post_url": {
    "label": "Post URL",
    "format": "string"
  },
  "video_url": {
    "label": "Video URL",
    "format": "string"
  },
  "author_username": {
    "label": "Author username",
    "format": "string"
  },
  "author_name": {
    "label": "Author name",
    "format": "string"
  },
  "like_count": {
    "label": "Like count",
    "format": "integer"
  },
  "comment_count": {
    "label": "Comment count",
    "format": "integer"
  },
  "page_request_index": {
    "label": "Page request index",
    "format": "integer"
  },
  "page_has_more": {
    "label": "Page has more",
    "format": "boolean"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube API | search comments channel videos](https://apify.com/socialdatax/socialdatax-youtube-data-api) with a specific input configuration. Visit the [Actor detail page](https://apify.com/socialdatax/socialdatax-youtube-data-api) to learn more, explore other use cases, and run it yourself.