> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.google.youtube.GetVideos

- Component: `appmixer.google.youtube.GetVideos`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.google.youtube 1.3.8](https://connectors.appmixer.com/connector/appmixer.google.youtube/1.3.8.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.google.youtube/1.3.8/component/appmixer.google.youtube.GetVideos>

Returns the details about a YouTube video(s).

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Video IDs (`videoIds`) | text | Youtube video IDs. Use comma to separate different values. E.g. 'xxxx1, xxxx2, xxxx3'. |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/google/youtube/GetVideos?outPort=out`.

### Port `notFound`

| Field | Type | Description |
| --- | --- | --- |
| video Ids (`youtubeIds`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.google.youtube.GetVideos",
  "author": "Harsha Surisetty <harsha@client.io>",
  "description": "Returns the details about a YouTube video(s).",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:google",
    "scope": [
      "https://www.googleapis.com/auth/youtube.readonly"
    ]
  },
  "quota": {
    "manager": "appmixer:google:youtube",
    "maxWait": 5000,
    "resources": "GetVideos",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "inspector": {
        "inputs": {
          "videoIds": {
            "type": "text",
            "label": "Video IDs",
            "index": 1,
            "tooltip": "Youtube video IDs. Use comma to separate different values. E.g. 'xxxx1, xxxx2, xxxx3'."
          },
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 2,
            "defaultValue": "items",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method.",
            "options": [
              {
                "label": "All at once",
                "value": "items"
              },
              {
                "label": "One at a time",
                "value": "item"
              },
              {
                "label": "File",
                "value": "file"
              }
            ]
          }
        }
      },
      "schema": {
        "type": "object",
        "properties": {
          "videoIds": {
            "type": "string"
          },
          "outputType": {
            "type": "string"
          }
        },
        "required": [
          "videoIds"
        ]
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/google/youtube/GetVideos?outPort=out",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/videoIds": "inputs/in/videoIds",
            "in/outputType": "inputs/in/outputType"
          }
        }
      }
    },
    {
      "name": "notFound",
      "options": [
        {
          "label": "video Ids",
          "value": "youtubeIds",
          "schema": {
            "type": "string",
            "example": "M7lc1UVf-VE,dQw4w9WgXcQ"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
