YouTube data
Full metadata for up to 500 YouTube videos per run: title, description, view count, duration, publish date, category, tags, channel and thumbnail. Paste URLs, short links, shorts or bare video ids. Only delivered videos are charged.
One video with full metadata delivered to the dataset. Videos that fail, are deleted or are private are never charged.
ACTOR=steadydata~youtube-video-details URL="https://api.apify.com/v2/acts/$ACTOR/run-sync-get-dataset-items" curl -X POST "$URL?token=$APIFY_TOKEN" \ -H "Content-Type: application/json" \ -d '{"videos": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ", "JGwWNGJdvx8"], "language": "en", "country": "US"}' # rows come straight back as JSON, one object per delivered row
| Field | Name | What it does |
|---|---|---|
videosrequired | Videos | Video URLs or ids, up to 500 per run. Watch URLs, youtu.be links, shorts, embeds and bare 11-character ids all work. |
language | Language | Interface language for the texts YouTube returns, e.g. en, nl, de. |
country | Country | ISO country code used for the request, e.g. US, NL, DE. Some videos are region restricted. |
| Field | Type |
|---|---|
videoId | string, null |
url | string, null |
title | string, null |
description | string, null |
channelId | string, null |
channelName | string, null |
channelUrl | string, null |
viewCount | integer, null |
durationSeconds | integer, null |
publishDate | string, null |
uploadDate | string, null |
category | string, null |
tags | array, null |
isLiveContent | boolean, null |
isFamilySafe | boolean, null |
thumbnailUrl | string, null |
status | string, null |
input | string, null |
errorCode | string, null |
error | string, null |