# YouTube Video Stats & Metadata (Data API), No Login (`cliqtomedia/youtube-video-details`) Actor

Check YouTube video stats by link: views, likes, comments, duration, tags and category for up to 5,000 videos per run. Official YouTube Data API v3 with your own free key. No login.

- **URL**: https://apify.com/cliqtomedia/youtube-video-details.md
- **Developed by:** [Cliqto Media](https://apify.com/cliqtomedia) (community)
- **Categories:** Videos, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.42 / 1,000 videos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

YouTube Video Stats & Metadata gets views, likes, comments, duration, tags, category and language for a list of YouTube videos. You paste video links or IDs and add your own free YouTube Data API v3 key. You get one clean table row per video, with numbers as numbers.

The Actor uses only the official [YouTube Data API v3](https://developers.google.com/youtube/v3/docs/videos/list): no login, no cookies, no proxy and no page scraping. One API request covers 50 videos and costs 1 unit of your daily Google quota (10,000 units free per day). **An API key is required.** Without a key the run returns one `api_key_required` row and stops.

![YouTube Video Stats & Metadata: paste video links and your API key, get one row per video with duration, views, likes, comments and category. Official Data API, 50 videos per quota unit, no login, no proxy.](https://api.apify.com/v2/key-value-stores/ofX6F16YC8OmDwHnY/records/HERO)

### Table of contents

- [What it does](#what-it-does)
- [Get your API key](#get-your-api-key)
- [Quick start](#quick-start)
- [Input](#input)
- [Input examples](#input-examples)
- [Output example](#output-example)
- [Output fields](#output-fields)
- [Pricing and cost examples](#pricing-and-cost-examples)
- [Use cases](#use-cases)
- [Scheduling and monitoring](#scheduling-and-monitoring)
- [API, export and AI agents](#api-export-and-ai-agents)
- [Limits and partial results](#limits-and-partial-results)
- [Troubleshooting](#troubleshooting)
- [FAQ](#faq)
- [Related Actors](#related-actors)
- [Support](#support)

### What it does

You give a list of YouTube videos. The Actor asks the YouTube Data API about 50 videos at a time and saves one row per video:

| Data group (`parts`) | Fields |
| --- | --- |
| `snippet` | title, description, channel ID and name, publish date, tags, category, language, thumbnail |
| `statistics` | views, likes, comments |
| `contentDetails` | duration in seconds, HD or SD, captions, licensed content |

- Accepts `watch?v=`, `youtu.be/`, `shorts/`, `embed/`, `live/` and `m.youtube.com` links, or plain 11-character video IDs. Extra parts of a link like `&t=30s` are ignored.
- Duplicates are looked up once.
- A video that is deleted, private or never existed gets a `not_found` row with your original line, not an error.
- A line that is not a YouTube video gets an `invalid_input` row with your original line.
- `null` means "no value from YouTube" (for example, hidden likes). It is never written as `0`.

#### Good fit

- You have a list of video links and need their numbers in a table.
- You want an official, stable data source with a clear quota.
- You already have a Google Cloud project, or you can make one in a few minutes.

#### Not a fit

- You have no API key and do not want one. This Actor does not work without a key.
- You need search results, comments, transcripts or a whole channel. See [Related Actors](#related-actors).
- You need view history over time from the past. YouTube only gives the current numbers.

### Get your API key

The key is free. It takes about 5 minutes.

1. Open the [Google Cloud Console](https://console.cloud.google.com/) and make or pick a project.
2. Go to **APIs & Services → Library**, find **YouTube Data API v3** and click **Enable**.
3. Go to **APIs & Services → Credentials → Create credentials → API key**.
4. Copy the key into the **YouTube Data API key** field of this Actor.

Tip: in the key settings, limit the key to **YouTube Data API v3** only.

**Quota cost for you.** Google gives each project 10,000 quota units per day for free. This Actor uses 1 unit per 50 videos, whatever data groups you pick:

| Videos in a run | Quota units used | Share of the free daily quota |
| ---: | ---: | ---: |
| 2 | 1 | 0.01% |
| 50 | 1 | 0.01% |
| 1,000 | 20 | 0.2% |
| 5,000 | 100 | 1% |

The quota resets at midnight Pacific Time. You can see your usage in Google Cloud Console → **APIs & Services → YouTube Data API v3 → Quotas**. Google does not charge money for this quota. See the [Google quota page](https://developers.google.com/youtube/v3/determine_quota_cost).

The key is a secret field: Apify stores it encrypted. The Actor sends it only to Google in a request header. It never writes the key to the dataset, the logs or the run summary.

### Quick start

1. Get a key (see above).
2. Paste video links into **Video URLs or IDs**, one per line. The form already has 2 example videos.
3. Paste your key into **YouTube Data API key**.
4. Click **Start**. Two videos take a few seconds.
5. Open the **Videos** view of the dataset, or download it as CSV, Excel or JSON.

If you click **Start** without a key, the run still ends as SUCCEEDED, with one `api_key_required` row that tells you how to get a key. No video is looked up. Apify charges the Actor start fee for every run, including this one (see [Pricing](#pricing-and-cost-examples)).

### Input

| Field | Type | Required | Default | Range | What it does |
| --- | --- | --- | --- | --- | --- |
| `videoUrls` | array of strings | yes | prefill: 2 example videos | 1–5,000 lines | Video links or IDs, one per line. Duplicates are looked up once. |
| `apiKey` | string, secret | yes, for real data | none | — | Your YouTube Data API v3 key. Without it you get one `api_key_required` row. |
| `parts` | array of `snippet`, `statistics`, `contentDetails` | no | all three | 1–3 values | Which field groups to fill. Fields of groups you skip are `null`. The quota cost and the price are the same. |

Recommendation: keep all three `parts`. Pick only `statistics` if you only need views, likes and comments and want a smaller file.

### Input examples

#### Two videos with all data (the prefill plus your key)

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/jNQXAC9IVRw"
  ],
  "apiKey": "YOUR_API_KEY"
}
```

#### Only views, likes and comments for a mixed list

```json
{
  "videoUrls": [
    "dQw4w9WgXcQ",
    "https://m.youtube.com/watch?v=jNQXAC9IVRw&t=5s",
    "https://www.youtube.com/shorts/aqz-KE-bpKQ"
  ],
  "apiKey": "YOUR_API_KEY",
  "parts": ["statistics"]
}
```

### Output example

A real row (the description is cut here):

```json
{
  "status": "complete",
  "videoId": "jNQXAC9IVRw",
  "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "input": "https://youtu.be/jNQXAC9IVRw",
  "title": "Me at the zoo",
  "description": "…",
  "channelId": "UC4QobU6STFB0P71PMvOGN5A",
  "channelTitle": "jawed",
  "publishedAt": "2005-04-24T03:31:52Z",
  "durationSec": 19,
  "duration": "PT19S",
  "views": 445744244,
  "likes": 20099017,
  "comments": 10642898,
  "tags": ["me at the zoo", "jawed karim", "first youtube video"],
  "categoryId": "1",
  "category": "Film & Animation",
  "defaultLanguage": "en",
  "defaultAudioLanguage": "en",
  "liveBroadcastContent": "none",
  "definition": "hd",
  "caption": true,
  "licensedContent": true,
  "thumbnailUrl": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg",
  "parts": ["snippet", "statistics", "contentDetails"],
  "source": "youtube-data-api-v3",
  "sourceUrl": "https://www.googleapis.com/youtube/v3/videos?part=snippet%2Cstatistics%2CcontentDetails&id=dQw4w9WgXcQ%2CjNQXAC9IVRw",
  "fetchedAt": "2026-10-22T04:43:42.039Z",
  "error": null,
  "errorCode": null
}
```

A video that does not exist:

```json
{
  "status": "not_found",
  "videoId": "AAAAAAAAAAA",
  "url": "https://www.youtube.com/watch?v=AAAAAAAAAAA",
  "input": "AAAAAAAAAAA",
  "title": null,
  "views": null,
  "error": "YouTube Data API returned no video for this ID (deleted, private or never existed).",
  "errorCode": null
}
```

(Other fields of this row are `null` too.)

### Output fields

The **Videos** view shows the main columns. The **All fields** view shows every field.

| Field | Type | Can be null | Example | Meaning |
| --- | --- | --- | --- | --- |
| `status` | string | no | `complete` | Row status, see the table below. |
| `videoId` | string | yes | `jNQXAC9IVRw` | 11-character video ID. `null` only for `invalid_input`. |
| `url` | string | yes | `https://www.youtube.com/watch?v=jNQXAC9IVRw` | Standard watch link. |
| `input` | string | no | `https://youtu.be/jNQXAC9IVRw` | Your original line, as you typed it. |
| `title` | string | yes | `Me at the zoo` | Video title (`snippet`). |
| `description` | string | yes | | Full description (`snippet`). |
| `channelId` | string | yes | `UC4QobU6STFB0P71PMvOGN5A` | Channel ID (`snippet`). |
| `channelTitle` | string | yes | `jawed` | Channel name (`snippet`). |
| `publishedAt` | string, ISO date UTC | yes | `2005-04-24T03:31:52Z` | Publish time (`snippet`). |
| `durationSec` | integer | yes | `19` | Length in seconds (`contentDetails`). `null` for a stream that is live now (YouTube gives `P0D`). |
| `duration` | string | yes | `PT19S` | Length as YouTube gives it (ISO 8601). |
| `views` | integer | yes | `445744244` | View count (`statistics`). |
| `likes` | integer | yes | `20099017` | Like count. `null` when the owner hides likes. |
| `comments` | integer | yes | `10642898` | Comment count. `null` when comments are off or hidden. |
| `tags` | array of strings | yes | `["me at the zoo"]` | Video tags. `[]` = the video has no tags; `null` = `snippet` was not requested. |
| `categoryId` | string | yes | `1` | YouTube category ID. |
| `category` | string | yes | `Film & Animation` | Category name (US list). |
| `defaultLanguage` | string | yes | `en` | Language of the title and description, if the owner set it. |
| `defaultAudioLanguage` | string | yes | `en` | Spoken language, if the owner set it. |
| `liveBroadcastContent` | string | yes | `none` | `live`, `upcoming` or `none`. |
| `definition` | string | yes | `hd` | `hd` or `sd`. |
| `caption` | boolean | yes | `true` | The video has captions. |
| `licensedContent` | boolean | yes | `true` | The video has licensed content. |
| `thumbnailUrl` | string | yes | `https://i.ytimg.com/vi/…/hqdefault.jpg` | Biggest thumbnail link. |
| `parts` | array of strings | yes | `["snippet","statistics","contentDetails"]` | Data groups used for this row. |
| `source` | string | no | `youtube-data-api-v3` | Data source. |
| `sourceUrl` | string | yes | `https://www.googleapis.com/youtube/v3/videos?…` | The API request for this row's batch. It has no key in it. |
| `fetchedAt` | string, ISO date UTC | no | `2026-10-22T04:43:42.039Z` | When the row was read. |
| `error` | string | yes | | Reason, for rows that are not `complete`. |
| `errorCode` | string | yes | `INVALID_INPUT` | Short code for the reason. |

#### Row statuses

| `status` | When | Charged |
| --- | --- | --- |
| `complete` | Video found | `video` event |
| `not_found` | Video is deleted, private or never existed | small `empty-result` event |
| `invalid_input` | The line is not a YouTube video link or ID | small `empty-result` event |
| `api_key_required` | No key in the input (one row per run) | no event |
| `api_key_invalid` | Google says the key is wrong or the API is not enabled (one row per run) | no event |
| `quota_exceeded` | Your daily quota ran out during the run (one row; it says how many videos were not looked up) | no event |
| `error` | Google returned another error for a batch | no event |

#### Run summary

The run's key-value store has a `RUN_SUMMARY` record: run status (`COMPLETE`, `PARTIAL`, `NO_RESULTS`, `API_KEY_REQUIRED`, `API_KEY_INVALID`, `INVALID_INPUT`, `CAPPED`, `CANCELLED`, `ERROR`), stop reason, counts per status, duplicates, and quota units used. The run's status message says the same in one line, for example `Done: 4 video(s) saved, 0 not found, 0 invalid line(s).`

### Pricing and cost examples

Pay per event. Apify platform usage is included. Google does not charge for the API quota.

| Event | When | Free | Bronze | Silver | Gold and above |
| --- | --- | ---: | ---: | ---: | ---: |
| Actor start | once per run, charged by Apify automatically | $0.0008 | $0.0008 | $0.0008 | $0.0008 |
| Video | per `complete` row | $0.0006 | $0.00054 | $0.00048 | $0.00042 |
| Empty result | per `not_found` or `invalid_input` row | $0.00003 | $0.00003 | $0.00003 | $0.00003 |

That is $0.60 per 1,000 videos on the Free plan and $0.42 on Gold.

| Example run | Free | Bronze | Silver | Gold+ |
| --- | ---: | ---: | ---: | ---: |
| No key (one `api_key_required` row) | $0.0008 | $0.0008 | $0.0008 | $0.0008 |
| 1 video | $0.0014 | $0.00134 | $0.00128 | $0.00122 |
| 2 videos (the prefill) | $0.002 | $0.00188 | $0.00176 | $0.00164 |
| 10 videos | $0.0068 | $0.0062 | $0.0056 | $0.005 |
| 100 videos | $0.061 | $0.055 | $0.049 | $0.043 |
| 1,000 videos | $0.60 | $0.54 | $0.48 | $0.42 |
| 5,000 videos | $3.00 | $2.70 | $2.40 | $2.10 |
| 5,000 lines, none found | $0.15 | $0.15 | $0.15 | $0.15 |

Honest note: the start fee is $0.0008 per run. So a run with only 1 video costs more than at some scrapers with a tiny start fee. From about 10 videos per run this Actor is cheaper on every plan. Put many videos in one run instead of many small runs.

Every run pays the start fee, also a run without a key or with a wrong key. Apify charges it automatically when a paid Actor starts.

Set **Maximum cost per run** in the run options to cap a run. The Actor checks the limit before each row. It stops before a charge would go above it, keeps what it saved and ends as `CAPPED` with reason `CHARGE_LIMIT`.

### Use cases

| Buyer job | Input | Key fields | Next step |
| --- | --- | --- | --- |
| Report on campaign videos | your campaign video links | `views`, `likes`, `comments`, `fetchedAt` | Put into a weekly sheet or dashboard |
| Check influencer videos before a deal | creator's video links | `views`, `likes`, `comments`, `publishedAt` | Compare engagement per video |
| Clean a video list | a list from a sheet or CRM | `status`, `title`, `durationSec`, `channelTitle` | Remove `not_found` videos, fix titles |
| Tag and category research | competitor video links | `tags`, `category`, `defaultLanguage` | Find common tags and languages |
| Enrich data for a model or BI | many video IDs | all fields | Join on `videoId` |

### Scheduling and monitoring

Use an Apify **Schedule** to run the same list every day or week. Each run saves the current numbers with `fetchedAt`. Join rows of different runs on `videoId` to see how views grow. The Actor does not keep data between runs.

YouTube API terms say you should not keep this kind of data (views, likes and other statistics) for more than 30 days without refreshing it. Refresh the numbers with a new run, or delete old datasets. The Actor itself stores nothing after the run.

### API, export and AI agents

- **Export:** download the dataset as JSON, CSV, Excel, XML or HTML.
- **API:** start a run with `POST https://api.apify.com/v2/acts/cliqtomedia~youtube-video-details/runs` and the input JSON. Read rows from the run's default dataset.
- **Integrations:** Make, Zapier, n8n, webhooks and Google Sheets work through the standard Apify integrations. Use `videoId` as a stable key.

#### Use with AI agents (MCP)

- MCP server with only this Actor: `https://mcp.apify.com?tools=cliqtomedia/youtube-video-details`
- Smallest useful input: `{"videoUrls": ["dQw4w9WgXcQ"], "apiKey": "<the user's key>"}`
- Key output fields: `videoId`, `title`, `views`, `likes`, `comments`, `durationSec`, `publishedAt`, `status`.
- A run of up to 50 videos usually ends in a few seconds. 5,000 videos took about 71 seconds in our test.
- The agent needs the user's own YouTube Data API key. Without it the run returns `api_key_required`.

### Limits and partial results

- Up to 5,000 lines per run. We tested 5,000 videos in one run: COMPLETE in about 71 seconds, 100 quota units.
- The Actor stops reading at about 270 seconds so it can save the results inside the 300-second default timeout (`PARTIAL`, reason `DEADLINE`). Saved rows are kept.
- If your daily quota runs out during a run, the Actor keeps the rows it saved, ends as `PARTIAL` with reason `QUOTA_LIMIT`, and the run SUCCEEDED. Run the rest after the quota resets.
- If Google fails again and again for a batch, the run keeps saved rows and ends with reason `SOURCE_ERROR`.
- Numbers are live at `fetchedAt` and change all the time. Since August 24, 2026, YouTube counts a view as soon as a video starts to play ([Google note](https://developers.google.com/youtube/data/reference/rest/v3/videos)), so `views` can be higher than numbers you saved before that date.
- Category names come from the US category list.

Data comes from the [YouTube Data API v3](https://developers.google.com/youtube/v3/docs/videos/list) under your own key and Google project. Please follow the [YouTube API Services Terms of Service](https://developers.google.com/youtube/terms/api-services-terms-of-service). This Actor is not affiliated with or endorsed by YouTube or Google.

### Troubleshooting

#### I got one `api_key_required` row

Symptom: the run SUCCEEDED with one row and status `API_KEY_REQUIRED`. Reason: the **YouTube Data API key** field is empty. Action: [get a key](#get-your-api-key) and run again.

#### I got one `api_key_invalid` row

Symptom: status `API_KEY_INVALID`. Likely reasons: a typo in the key, the key was deleted, **YouTube Data API v3** is not enabled in the key's project, or the key is limited to other APIs or websites. Check: in Google Cloud Console open **APIs & Services → Enabled APIs**. Action: enable the API, or make a new key.

#### The run ended with `QUOTA_LIMIT`

Your project used its 10,000 daily units. The rows saved before that are kept. Run the rest of the list after midnight Pacific Time, or use a key from another project.

#### Some rows are `not_found`

Likely reason: the video was deleted or made private, or the ID has a typo. Check: open the `url` in a browser. YouTube does not say which of these it is.

#### Some rows are `invalid_input`

The line is not a YouTube video link or ID, for example a channel link or a playlist link. Check the `input` field and fix the line.

#### `likes` or `comments` is empty

The video owner hid likes or turned comments off. The field is `null`, not `0`, so you can tell "hidden" from "zero".

### FAQ

#### Do I need a YouTube or Google account?

You need a Google account to make the free API key. The Actor does not log in to YouTube and does not use cookies.

#### Does it cost Google money?

No. The YouTube Data API is free within the daily quota. You pay only the Apify price above.

#### Do the data groups change the price?

No. One video row is one `video` event, and one request is 1 quota unit, whatever `parts` you pick.

#### Can I use it for Shorts and live streams?

Yes. Shorts links work. For a stream that is live now, `durationSec` is `null`. A finished stream has its real length.

#### Is personal data included?

Only public video and channel data that YouTube shows on the video page: channel ID and name. No viewer data.

### Related Actors

- [YouTube Search Results Scraper](https://apify.com/cliqtomedia/youtube-search-scraper) — find videos by keyword.
- [YouTube Comments Scraper](https://apify.com/cliqtomedia/youtube-comments-scraper) — get the comments of a video.
- [YouTube Subtitles & Transcript Scraper](https://apify.com/cliqtomedia/youtube-transcript-scraper) — get the text of a video.

### Support

For a bug, question or feature request, open an issue on the Actor's **Issues** tab. Add the run ID and your input, but **never post your API key**.

# Changelog

This Actor's version history is a separate document: https://apify.com/cliqtomedia/youtube-video-details/changelog.md

# Actor input Schema

## `videoUrls` (type: `array`):

One per line: watch?v=, youtu.be/, shorts/, embed/ or live/ links, or plain 11-character video IDs. Duplicates are looked up once. Up to 5,000 per run.

## `apiKey` (type: `string`):

Required. Your own free key: Google Cloud Console → APIs & Services → enable “YouTube Data API v3” → Credentials → Create credentials → API key. Stored encrypted; never written to the output or logs. Without a key the run returns one api_key_required row and charges no per-video events (only the Actor start fee).

## `parts` (type: `array`):

Which field groups to fill. snippet: title, channel, publish date, tags, category, language, thumbnail. statistics: views, likes, comments. contentDetails: duration, definition, captions. Quota cost is the same (1 unit per 50 videos) whatever you pick.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/jNQXAC9IVRw"
  ],
  "parts": [
    "snippet",
    "statistics",
    "contentDetails"
  ]
}
```

# Actor output Schema

## `videos` (type: `string`):

Video rows as a table.

## `allRows` (type: `string`):

Every row with all fields, including not_found and error rows (status field).

## `runSummary` (type: `string`):

Status, counts, quota units used and request statistics.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "videoUrls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/jNQXAC9IVRw"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cliqtomedia/youtube-video-details").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "videoUrls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/jNQXAC9IVRw",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("cliqtomedia/youtube-video-details").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/jNQXAC9IVRw"
  ]
}' |
apify call cliqtomedia/youtube-video-details --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cliqtomedia/youtube-video-details"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ApuSQxZ1pQZrGimrW/builds/SQtWiRGPL0Y7JTH0S/openapi.json
