# FlashData YouTube Video Metadata API

YouTube video ID, kanal detayları, nişan sayıları, parmaklıklar, mevcut formatlar ve bölümler de dahil olmak üzere.

Canonical referans: https://flashdata.dev/tr/docs/sources/youtube_metadata
İnceleme: 2026-10-23

Endpoint: POST https://data.flashdata.dev/v1/queries/realtime
Kimlik doğrulama: X-API-Key: YOUR_API_KEY
Modes Modes: [Realtime](https://flashdata.dev/tr/docs/reference/realtime-and-async/reference.md#realtime) · [Async](https://flashdata.dev/tr/docs/reference/realtime-and-async/reference.md#async) · [Batch](https://flashdata.dev/tr/docs/reference/batch-and-bulk/reference.md#batch) · [Bulk](https://flashdata.dev/tr/docs/reference/bulk-processing/reference.md)

Gerekli kaynak izni izni: youtube_metadata

Değişimi Değiştir YOUR_API_KEY Biriyle birlikte API Bu kaynak izni ve mevcut kredilere sahip anahtar. sunucunuzda veya acente ev sahibinizde yükleme talepleri.

[Varsayılan kimlik doğrulamayı ayarlayın](https://flashdata.dev/tr/docs/guides/headers-and-authentication/reference.md)

[Erişim ve video metadata](https://flashdata.dev/tr/docs/guides/video-metadata-recipe/reference.md)

<a id="quickstart"></a>

## Bir istek gönder

### Python

```bash
python3 -m pip install requests
```

```python
import json

import requests

api_key = "YOUR_API_KEY"
payload = {
    "source": "youtube_metadata",
    "video_id": "dQw4w9WgXcQ",
    "params": {
        "include_formats": False,
        "include_chapters": True,
    },
}

response = requests.post(
    "https://data.flashdata.dev/v1/queries/realtime",
    headers={"X-API-Key": api_key},
    json=payload,
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), ensure_ascii=False, indent=2))
```

### Bash / cURL

```bash
api_key="YOUR_API_KEY"
curl --fail-with-body --max-time 120 --request POST "https://data.flashdata.dev/v1/queries/realtime" \
  --header "Content-Type: application/json" \
  --header "X-API-Key: $api_key" \
  --data-binary @- <<'FLASHDATA_JSON'
{
  "source": "youtube_metadata",
  "video_id": "dQw4w9WgXcQ",
  "params": {
    "include_formats": false,
    "include_chapters": true
  }
}
FLASHDATA_JSON
```

<a id="parameters"></a>

## Parametreler

<a id="parameters-group-0"></a>

### İstek gövdesi

| Parametre parametresi | Tür Türü Tipi | Zorunlu | Varsayılan | Description Description Description |
| --- | --- | --- | --- | --- |
| <a id="parameter-source"></a> source | string | Evet Evet Evet | — | youtube_metadata'a ayarlayın.  |
| <a id="parameter-video_id"></a> video_id | string | Evet Evet Evet | Set Not set Not set | 11-character YouTube video ID, FUfGcZ092b0 gibi. Mektupları kabul eder, sayılar, işaretler ve hipnozlar. Min uzunluğu: 11. Max uzunluğu: 11. Desen: ^[A-Za-z0-9_-]{11}$ |
| <a id="parameter-params"></a> params | object | Hayır yok hayır | {} | Settings bu istek için.  |
| <a id="parameter-callback_url"></a> callback_url | string · nullable | Hayır yok hayır | Set Not set Not set | Async ve sadece toplu. Halk Halk Halkı HTTPS Tamam tamamlanma tamamlanma tamamlanma tamamlandı URL limanda 443, yukarı 2,048 karakterler. Kullanıcı Bilgileri veya URL parçaları yok. Omit, null veya bildirim için boş bir dize kullanın. Bir partide, bunu her sorguda, params dışında ayarlayın.  |

<a id="parameters-group-1"></a>

### Yanıt seçenekleri

| Parametre parametresi | Tür Türü Tipi | Zorunlu | Varsayılan | Description Description Description |
| --- | --- | --- | --- | --- |
| <a id="parameter-params-include_formats"></a> params.include_formats | boolean | Hayır yok hayır | true | Mevcut medya formatlarını ve kodlarını, kararlarını ve biraz bilgilerini ekleyin.  |
| <a id="parameter-params-include_chapters"></a> params.include_chapters | boolean | Hayır yok hayır | true | Videonun onlara sahip olduğu bölümler ekleyin.  |

<a id="response"></a>

## Sonuç okuyun

JSON yanıtını response.json olarak kurtarın. Bunu read-response.py olarak kaydedin ve python read-response.py çalıştırın. Sadece Python'un standart kütüphanesini kullanır ve yeni bir istek yapmaz.

### read-response.py

```python
import json
from pathlib import Path

response = json.loads(Path("response.json").read_text(encoding="utf-8-sig"))
if response.get("status") not in ("done", "completed") or not isinstance(response.get("results"), list):
    raise SystemExit("Expected completed result JSON; inspect the response or job status.")
if not response["results"]:
    print("[]")
    raise SystemExit(0)
result = response["results"][0]

output = {name: result.get(name) for name in (
    "videoId", "title", "channel", "duration", "hasTranscripts", "transcriptLanguages"
)}
print(json.dumps(output, ensure_ascii=False, indent=2))
```

## Örnek yanıt

Kayıt örneği; alanlar ve sayılar kaynağına bağlıdır ve talep edilen girdiye bağlıdır.
```json
{
  "source": "youtube_metadata",
  "status": "done",
  "results": [
    {
      "videoId": "dQw4w9WgXcQ",
      "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
      "description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever\nhttps://linktr.ee/rickastleynever\n\n“Never Gonna Give You Up” was a global smash on its release in July 1987, topping the charts in 25 countries including Rick’s native UK and the US Billboard Hot 100.  It also won the Brit Award for Best single in 1988. Stock Aitken and Waterman wrote and produced the track which was the lead-off single and lead track from Rick’s debut LP “Whenever You Need Somebody”.  The album was itself a UK number one and would go on to sell over 15 million copies worldwide.\n\nThe legendary video was directed by Simon West – who later went on to make Hollywood blockbusters such as Con Air, Lara Croft – Tomb Raider and The Expendables 2.  The video passed the 1bn YouTube views milestone on 28 July 2021.\n\nSubscribe to the official Rick Astley YouTube channel: https://RickAstley.lnk.to/YTSubID\n\nFollow Rick Astley:\nFacebook: https://RickAstley.lnk.to/FBFollowID \nTwitter: https://RickAstley.lnk.to/TwitterID \nInstagram: https://RickAstley.lnk.to/InstagramID \nWebsite: https://RickAstley.lnk.to/storeID \nTikTok: https://RickAstley.lnk.to/TikTokID\n\nListen to Rick Astley:\nSpotify: https://RickAstley.lnk.to/SpotifyID \nApple Music: https://RickAstley.lnk.to/AppleMusicID \nAmazon Music: https://RickAstley.lnk.to/AmazonMusicID \nDeezer: https://RickAstley.lnk.to/DeezerID \n\nLyrics:\nWe’re no strangers to love\nYou know the rules and so do I\nA full commitment’s what I’m thinking of\nYou wouldn’t get this from any other guy\n\nI just wanna tell you how I’m feeling\nGotta make you understand\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\nWe’ve known each other for so long\nYour heart’s been aching but you’re too shy to say it\nInside we both know what’s been going on\nWe know the game and we’re gonna play it\n\nAnd if you ask me how I’m feeling\nDon’t tell me you’re too blind to see\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\n#RickAstley #NeverGonnaGiveYouUp #WheneverYouNeedSomebody #OfficialMusicVideo",
      "channel": "Rick Astley",
      "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
      "channelUrl": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw",
      "channelSubscriberCount": 4540000,
      "viewCount": 1816253015,
      "likeCount": 19394097,
      "commentCount": 2400000,
      "uploadDate": "2009-10-25T00:00:00Z",
      "duration": 213,
      "durationString": "3:33",
      "thumbnails": [
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/3.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/3.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/2.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/2.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/1.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/1.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/mq3.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/mq3.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/mq2.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/mq2.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/mq1.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/mq1.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hq3.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/hq3.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hq2.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/hq2.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hq1.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/hq1.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/sd3.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/sd3.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/sd2.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/sd2.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/sd1.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/sd1.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/default.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/default.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/mqdefault.jpg",
          "width": 320,
          "height": 180
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/mqdefault.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/0.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/0.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg?sqp=-oaymwEfCKgBEF5IVfKriqkDEggBFQAAiEIYAXABwAEGuALzGA==&rs=AOn4CLAy5pvOfmmlRtbC9v1ptqnWgPympA",
          "width": 168,
          "height": 94
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg?sqp=-oaymwEfCMQBEG5IVfKriqkDEggBFQAAiEIYAXABwAEGuALzGA==&rs=AOn4CLDnaw1sg9xedLybAaLCts8m3KNOlQ",
          "width": 196,
          "height": 110
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg?sqp=-oaymwEgCPYBEIoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLAz-h7jukeJwLXsm6EJZ_0FIhWWgw",
          "width": 246,
          "height": 138
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg?sqp=-oaymwEgCNACELwBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLCqh65ZpY-1S9Y3vJeHWwXLcY0qUw",
          "width": 336,
          "height": 188
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/hqdefault.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/sddefault.jpg",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/sddefault.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hq720.jpg",
          "width": 1280,
          "height": 720
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/hq720.webp",
          "width": null,
          "height": null
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",
          "width": 1280,
          "height": 720
        },
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp",
          "width": 1920,
          "height": 1080
        }
      ],
      "categories": [
        "Music"
      ],
      "tags": [
        "rick astley",
        "Never Gonna Give You Up",
        "nggyu",
        "never gonna give you up lyrics",
        "rick rolled",
        "Rick Roll",
        "rick astley official",
        "rickrolled",
        "Fortnite song",
        "Fortnite event",
        "Fortnite dance",
        "fortnite never gonna give you up",
        "rick roll",
        "rickrolling",
        "rick rolling",
        "never gonna give you up",
        "80s music",
        "rick astley new",
        "animated video",
        "rickroll",
        "meme songs",
        "never gonna give u up lyrics",
        "Rick Astley 2022",
        "never gonna let you down",
        "animated",
        "rick rolls 2022",
        "never gonna give you up karaoke"
      ],
      "ageLimit": 0,
      "isLive": false,
      "wasLive": false,
      "hasTranscripts": true,
      "transcriptLanguages": [
        "fr",
        "no",
        "ab",
        "id",
        "ta",
        "yi",
        "es-419",
        "be",
        "ro",
        "su",
        "zu",
        "ko",
        "to",
        "mk",
        "az",
        "om",
        "dz",
        "ml",
        "gd",
        "nl",
        "sk",
        "bho",
        "ay",
        "or",
        "ceb",
        "bs",
        "new",
        "gn",
        "mn",
        "mg",
        "kha",
        "haw",
        "et",
        "fy",
        "gu",
        "ht",
        "ts",
        "ca",
        "ms",
        "ur",
        "uk",
        "sw",
        "af",
        "tg",
        "ba",
        "oc",
        "st",
        "tr",
        "fa",
        "ny",
        "lo",
        "ti",
        "fo",
        "pa",
        "co",
        "ig",
        "sl",
        "ee",
        "hy",
        "kk",
        "sv",
        "cs",
        "lt",
        "tn",
        "as",
        "ky",
        "ak",
        "ja",
        "eu",
        "mt",
        "de",
        "ar",
        "dv",
        "el",
        "pl",
        "es",
        "pt-BR",
        "lua",
        "vi",
        "ka",
        "sm",
        "jv",
        "os",
        "bo",
        "de-DE",
        "sr",
        "pam",
        "war",
        "sg",
        "kri",
        "ku",
        "ps",
        "xh",
        "ug",
        "lg",
        "te",
        "so",
        "th",
        "sa",
        "iw",
        "tt",
        "zh-Hant",
        "sq",
        "hu",
        "cy",
        "da",
        "yo",
        "en-orig",
        "qu",
        "ss",
        "am",
        "it",
        "bn",
        "gl",
        "kn",
        "bg",
        "ne",
        "hi",
        "my",
        "is",
        "hmn",
        "kl",
        "fil",
        "en",
        "lv",
        "fj",
        "sn",
        "luo",
        "iu",
        "mi",
        "br",
        "km",
        "sd",
        "rn",
        "pt",
        "mfe",
        "ru",
        "si",
        "ve",
        "ha",
        "pt-PT",
        "mr",
        "hr",
        "uz",
        "nso",
        "zh-Hans",
        "ln",
        "gv",
        "la",
        "gaa",
        "lb",
        "tum",
        "tk",
        "crs",
        "aa",
        "fi",
        "rw",
        "eo",
        "ga",
        "wo"
      ]
    }
  ],
  "usage": {
    "credits": 0.01
  },
  "created_at": "2026-09-16T07:45:41.114Z"
}
```

## Yanıt alanları

| Field | Tür Türü Tipi | Description Description Description |
| --- | --- | --- |
| source | string | Talep edilen API kaynağı. |
| status | string | Gerçek zamanlı istek başarılı olduğunda yapılır. |
| created_at | string | ISO 8601 formatındaki arama süresi. |
| usage.credits | number | Krediler talep için ücretlendirilir, planınıza göre. |
| results[0].videoId | string | YouTube video ID. |
| results[0].title | string | Video unvanı. |
| results[0].description | string | Full video açıklaması. |
| results[0].channel | string | Kanal adı. |
| results[0].channelId | string | Channel ID. |
| results[0].channelUrl | string | Channel URL. |
| results[0].channelSubscriberCount | number · nullable | Kanal abone sayısı. |
| results[0].viewCount | number · nullable | View count. |
| results[0].likeCount | number · nullable | sayma gibi. |
| results[0].commentCount | number · nullable | Yorum say. |
| results[0].uploadDate | string · nullable | Upload date. |
| results[0].duration | number · nullable | Video süresi saniyede. |
| results[0].durationString | string · nullable | Mevcut olduğunda Biçimlenmiş süresi. |
| results[0].thumbnails | array | katnail URLs ve boyutları. |
| results[0].categories | array | Video kategorileri. |
| results[0].tags | array | Video etiketleri. |
| results[0].ageLimit | integer | Yaş kısıtlaması veya 0 ne zaman tartışılmaz. |
| results[0].isLive | boolean | Video şu anda yaşıyorsa. |
| results[0].wasLive | boolean | Video canlı bir yayın olsun. |
| results[0].hasTranscripts | boolean | Başlıklar mevcutsa. |
| results[0].transcriptLanguages | array | Mevcut kodlar dil kodları. |
| results[0].formats | array · optional | include_formats'nun true olduğu zaman mevcut medya biçimleri. |
| results[0].chapters | array · optional | Bölüm başlıkları, start_time ve end_time, talep edilen ve mevcut olduğunda. |

- Mevcut olmayan sayılar null. formatları ve bölümler talep edilen seçeneklere ve videonun mevcut verilere bağlıdır.

## Yanıt biçimleri

Yanıtlar JSON'u varsayılan olarak kullanır. Bu opsiyonel başlıkları ile başka bir format seçin.

- Accept: application/json (varsayılan) veya veya veya text/plain. Plain text aynı alanları okunabilir, okunabilir bir düzende sunar.
- X-Respond-With: markdown. Orijinal alanlarda başlangıç bırakın. Markdown, yanıt formatı ile çalışır.

Markdown gerçek zamanlı sorgular ve tamamlanmış sonuçlar için mevcuttur.

Aşağıdaki alanlar varsayılan JSON yanıtını tanımlar.

[İstek ve yanıt formatı örnekleri](https://flashdata.dev/tr/docs/guides/response-formats/reference.md#headers)

<a id="job-lifecycle"></a>

<a id="async-batch"></a>

## API temelleri

Yukarıdaki istek oluşturucu ve örnekler bu kaynağın parametrelerini kullanır. Python ve cURL örneklerini paylaşılan teslimiyet, durum ve sonuç adımları için kullanın. Bir Batch vücut, sorgu içeren bir JSON nesnedir; her öğe kendi işini döndürür ID.

- [Async isteği ve makbuz](https://flashdata.dev/tr/docs/reference/realtime-and-async/reference.md#async)

<a id="job-status"></a>

- [Check job status](https://flashdata.dev/tr/docs/reference/realtime-and-async/reference.md#status)

<a id="job-results"></a>

- [Erişim tamamlanmış sonuçlar](https://flashdata.dev/tr/docs/reference/realtime-and-async/reference.md#results)
- [Batch JSON talep ediyor](https://flashdata.dev/tr/docs/reference/batch-and-bulk/reference.md#batch)
- [Bulk işleme API’si](https://flashdata.dev/tr/docs/reference/bulk-processing/reference.md)
- [Bu kaynak için bir Bulk iş akışı inşa edin](https://flashdata.dev/tr/docs/reference/bulk-processing/reference.md?source=youtube_metadata#playground)
- [Müşteri Açık API](https://flashdata.dev/docs/openapi.json)

<a id="webhooks"></a>

<a id="callbacks"></a>

## Tamamlanan bildirimleri tamamlayın

- [Satın alın ve doğrulama webhooks](https://flashdata.dev/tr/docs/guides/async-batch/reference.md#webhooks)

<a id="troubleshooting"></a>

## Sorun Giderme

- [Hatalar ve durum kodları](https://flashdata.dev/tr/docs/errors/reference.md#status-codes)
- [Yeniden deneme ne zaman](https://flashdata.dev/tr/docs/errors/reference.md#retries)

## İlgili APIs

- [YouTube Transcript API](https://flashdata.dev/tr/docs/sources/youtube_transcript/reference.md)
- [YouTube Download API](https://flashdata.dev/tr/docs/sources/youtube_download/reference.md)
