# YouTube Video Info Advanced na żywo

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/serp/youtube/video_info/live/advanced`

**Tags:** DataForSEO

Synchronicznie zwraca metadane jednego filmu w YouTube. Zwraca `keyword`, `type`, `se_domain`, `location_code`, `language_code`, `check_url`, `datetime`, `spell`, `refinement_chips`, `item_types`, `items_count` i `items`. `advanced` to domyślny wybór; wybierz `regular`, gdy liczy się tylko lista rankingowa, a `html` tylko po to, by sprawdzić, co pominął parser. Opakowane w kopertę DataForSEO: dane w `tasks[0].result`, wynik w `tasks[0].status_code` — odrzucone żądanie nadal zwraca HTTP 200.

### Cennik referencyjny

- Rozliczanie: zgłoszony koszt odpowiedzi.
- Szacunek referencyjny dla żądania: USD 0.006.
- Referencyjny mnożnik klienta: 1.0. Nie stosuj go ponownie do rozliczonej kwoty klienta.

Wyłącznie metadane referencyjne, a nie wycena konta, gwarantowana cena lub limit wydatków. Kredyty zasobów nie są kredytami Felo. Ostateczne obciążenia są zgodne z zapisami rozliczeniowymi Felo.

## Related links

- [przepływność](<https://en.wikipedia.org/wiki/Bit_rate>)
- [typ multimediów](<https://en.wikipedia.org/wiki/Media_type>)
- [liczba klatek na sekundę](<https://en.wikipedia.org/wiki/Frame_rate>)

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "video_id": {
            "type": "string",
            "description": "identyfikator filmu\npole wymagane\nidentyfikator filmu znajdziesz w adresie URL lub w elemencie 'youtube_video' wyniku YouTube Organic\nprzykład:\nvQXvyV0zIP4"
          },
          "location_code": {
            "type": [
              "integer",
              "null"
            ],
            "description": "kod lokalizacji wyszukiwarki\npole wymagane, jeśli nie podasz location_name \njeśli używasz tego pola, nie musisz podawać location_name\nlistę dostępnych lokalizacji wyszukiwarek wraz z ich location_code można uzyskać, wysyłając osobne żądanie do https://api.dataforseo.com/v3/serp/youtube/locations\nprzykład:\n2840"
          },
          "language_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "kod języka wyszukiwarki\npole wymagane, jeśli nie podasz language_name\njeśli używasz tego pola, nie musisz podawać language_name\nlistę dostępnych języków wyszukiwarki wraz z ich language_code można uzyskać, wysyłając osobne żądanie do https://api.dataforseo.com/v3/serp/youtube/languages\nprzykład:\nen"
          },
          "device": {
            "type": [
              "string",
              "null"
            ],
            "description": "typ urządzenia\npole opcjonalne\njedyna wartość: desktop"
          },
          "location_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "pełna nazwa lokalizacji wyszukiwarki\npole wymagane, jeśli nie podasz location_code\njeśli używasz tego pola, nie musisz podawać location_code\nlistę dostępnych lokalizacji wyszukiwarki wraz z ich location_name można uzyskać, wysyłając osobne żądanie do https://api.dataforseo.com/v3/serp/youtube/locations\nprzykład:\nUnited States"
          },
          "language_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "pełna nazwa języka wyszukiwarki\npole wymagane, jeśli nie podasz language_code\njeśli używasz tego pola, nie musisz podawać language_code\nlistę dostępnych języków wyszukiwarki wraz z ich language_name można uzyskać, wysyłając osobne żądanie do https://api.dataforseo.com/v3/serp/youtube/languages\nprzykład:\nEnglish"
          },
          "os": {
            "type": [
              "string",
              "null"
            ],
            "description": "system operacyjny urządzenia\npole opcjonalne\nwybierz spośród następujących wartości: windows, macos\nwartość domyślna: windows"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "identyfikator zadania zdefiniowany przez użytkownika\npole opcjonalne\nlimit znaków: 255\ntego parametru możesz użyć do identyfikacji zadania i dopasowania go do wyniku\npodaną wartość tag znajdziesz w obiekcie data odpowiedzi"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_code": 2840,
            "video_id": "vQXvyV0zIP4"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_code": 2840,
      "video_id": "vQXvyV0zIP4"
    }
  ]
}
```

## Responses

### 200 — Operacja zakończona powodzeniem

Headers:
- `X-Request-Id` (string) — Identyfikator żądania do podania podczas kontaktu z pomocą techniczną Felo.

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResponseInfo"
    }
  ]
}
```

### 400 — Nie można przetworzyć żądania. Sprawdź parametry żądania.

### 401 — Wymagany jest prawidłowy klucz API Felo.

### 402 — Nie można kontynuować żądania, ponieważ nie spełniono wymogu rozliczeniowego.

### 403 — Konto nie ma uprawnień do wykonania tej operacji.

### 429 — Osiągnięto limit żądań lub wydatków.

### 502 — Usługa nie mogła ukończyć żądania.

### 503 — API lub usługa rozliczeniowa jest tymczasowo niedostępna.

### 504 — Upłynął limit czasu usługi podczas przetwarzania żądania.

### default — Odpowiedź błędu; odpowiedzi przekazywane bezpośrednio od dostawcy upstream mogą używać formatów dostawcy

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "bieżąca wersja interfejsu API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "ogólny kod statusu\npełną listę kodów odpowiedzi znajdziesz tutaj"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "ogólny komunikat informacyjny\npełną listę ogólnych komunikatów informacyjnych znajdziesz tutaj"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "łączny czas wykonania, sekundy"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "łączny koszt zadań, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "liczba zadań w tablicy tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "liczba zadań w tablicy tasks zwróconych z błędem",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "identyfikator zadania\nunikalny identyfikator zadania w naszym systemie w formacie UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "kod statusu zadania\nwygenerowany przez DataForSEO; może mieścić się w następującym zakresie: 10000-60000\npełną listę kodów odpowiedzi znajdziesz tutaj"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "komunikat informacyjny zadania\npełną listę ogólnych komunikatów informacyjnych znajdziesz tutaj"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "czas wykonania, sekundy"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "łączny koszt zadań, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "liczba elementów w tablicy result",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "ścieżka URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "zawiera te same parametry, które podano w żądaniu POST"
    }
  }
}
```

### Response36Afe1097B20_ChannelSubscribersCount

`#/components/schemas/Response36Afe1097B20_ChannelSubscribersCount`

```json
{
  "type": "object",
  "properties": {
    "displayed_count": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>wyświetlana liczba subskrybentów</em><br>            liczba subskrybentów wyświetlana w YouTube"
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>liczba subskrybentów</em>",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedTaskInfo"
              }
            ]
          },
          "description": "tablica zadań"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "video_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "identyfikator wideo otrzymany w tablicy POST"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "domena wyszukiwarki w tablicy POST"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Kod lokalizacji w tablicy POST."
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Kod języka w tablicy POST."
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "bezpośredni URL do wyników wyszukiwania\nmożesz go użyć, aby upewnić się, że udostępniliśmy dokładne wyniki"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "data i godzina otrzymania wyniku\nw formacie UTC: „yyyy-mm-dd hh-mm-ss +00:00”\nprzykład:\n2019-11-15 12:57:46 +00:00"
    },
    "spell": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_SpellInfo"
        }
      ],
      "description": "autokorekta wyszukiwarki\njeśli wyszukiwarka zwróciła wyniki dla poprawionego słowa kluczowego, podamy słowo kluczowe poprawione przez wyszukiwarkę oraz typ autokorekty"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "typy wyników wyszukiwania w SERP\nzawiera typy wyników wyszukiwania (items) znalezionych w SERP.\nmożliwy element:\nyoutube_video_info"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Liczba wyników zwróconych w tablicy items.",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_YoutubeVideoInfo"
          }
        ]
      },
      "description": "elementy wyników wyszukiwania znalezione w SERP"
    }
  }
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResultInfo"
              }
            ]
          },
          "description": "tablica wyników"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SpellInfo

`#/components/schemas/Response36Afe1097B20_SpellInfo`

```json
{
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "słowo kluczowe uzyskane w wyniku autokorekty wyszukiwarki\n wyniki zostaną udostępnione dla poprawionego słowa kluczowego"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "typ autokorekty\n możliwe wartości:\n did_you_mean, showing_results_for, no_results_found_for, including_results_for\n uwaga: Yahoo i Yandex obsługują tylko następujący typ autokorekty:\n including_results_for"
    }
  }
}
```

### Response36Afe1097B20_StreamingQualityElement

`#/components/schemas/Response36Afe1097B20_StreamingQualityElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "typ elementu"
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>etykieta elementu jakości</em>"
    },
    "width": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>szerokość wideo w pikselach</em>",
      "format": "int64"
    },
    "height": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>wysokość wideo w pikselach</em>"
    },
    "bitrate": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>przepływność wideo</em>"
    },
    "mime_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>typ multimediów wideo</em>"
    },
    "fps": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>liczba klatek na sekundę wideo</em>"
    }
  }
}
```

### Response36Afe1097B20_Subtitles

`#/components/schemas/Response36Afe1097B20_Subtitles`

```json
{
  "type": "object",
  "properties": {
    "language": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>język napisów</em>"
    },
    "is_translatable": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>określa, czy napisy można przetłumaczyć</em>"
    },
    "is_auto_generated": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>określa, czy napisy są generowane automatycznie</em>"
    }
  }
}
```

### Response36Afe1097B20_YoutubeVideoInfo

`#/components/schemas/Response36Afe1097B20_YoutubeVideoInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "typ elementu"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>ranking grupy w SERP</em><br>            pozycja w grupie elementów o identycznych wartościach <code>type</code><br>            pozycje elementów o innych wartościach <code>type</code> są pomijane w <code>rank_group</code>"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> bezwzględny ranking w SERP dla domeny docelowej</em><br>            bezwzględna pozycja wśród wszystkich elementów w SERP"
    },
    "video_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>identyfikator wideo otrzymany w tablicy POST</em>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tytuł wideo</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL wideo</em>"
    },
    "thumbnail_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>adres URL strony, na której hostowana jest miniatura</em>"
    },
    "channel_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>identyfikator kanału, na którym opublikowano wideo</em>"
    },
    "channel_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>nazwa kanału, w którym opublikowano film</em>"
    },
    "channel_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>adres URL kanału, w którym opublikowano film</em>"
    },
    "channel_logo": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>adres URL strony, na której hostowany jest obraz logo kanału</em>"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>opis wideo</em>"
    },
    "views_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>liczba wyświetleń wideo</em>",
      "format": "int64"
    },
    "likes_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>liczba polubień wideo</em>",
      "format": "int64"
    },
    "comments_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>liczba komentarzy do wideo</em>",
      "format": "int64"
    },
    "channel_subscribers_count": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_ChannelSubscribersCount"
        }
      ],
      "description": "<em>liczba subskrybentów kanału</em>"
    },
    "publication_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>data publikacji wideo</em>"
    },
    "timestamp": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>data i godzina publikacji wyniku</em><br>            w formacie UTC: „yyyy-mm-dd hh-mm-ss +00:00”<br>            przykład:<br>            <code>2022-11-15 12:57:46 +00:00</code>"
    },
    "keywords": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>słowa kluczowe powiązane z wideo</em><br>            znane również jako „tagi YouTube”"
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>kategoria, do której należy wideo</em>"
    },
    "is_live": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>wskazuje, czy wideo jest transmitowane na żywo</em>"
    },
    "is_embeddable": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>wskazuje, czy wideo można osadzić</em>"
    },
    "duration_time": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>czas trwania wideo</em>"
    },
    "duration_time_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>czas trwania wideo w sekundach</em>"
    },
    "subtitles": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_Subtitles"
          }
        ]
      },
      "description": "<em>tablica elementów opisujących właściwości napisów w wideo</em>"
    },
    "streaming_quality": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_StreamingQualityElement"
          }
        ]
      },
      "description": "<em>tablica elementów zawierających informacje o wszystkich możliwych jakościach strumieniowania wideo</em>"
    }
  }
}
```
