Aktualizujemy interfejs Data API, aby był zgodny ze sposobem zliczania przez YouTube wyświetleń filmów Short.
Więcej informacji
Przewodnik po implementacji
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ta seria przewodników wyjaśnia, jak korzystać z interfejsu YouTube Data API (v3) do wykonywania wielu różnych typów funkcji. Zawiera ona opisy, wskaźniki do przykładów kodu oraz linki, które wypełniają eksplorator API przy użyciu przykładowych zapytań.
Czytając ten przewodnik, pamiętaj, że:
-
Jeśli to możliwe, przykładowe zapytania do interfejsu API w wersji 3 zawierają link do interfejsu API Explorer i wypełniają go wartościami wyświetlanymi w zapytaniach. Te przykłady pomogą Ci łatwo przesyłać zapytania testowe i wyświetlać przykładowe odpowiedzi.
-
Niektóre przykładowe żądania wymagają autoryzacji. U góry formularza Eksploratora interfejsów API znajduje się mały widżet, który umożliwia autoryzację OAuth 2.0.
-
Aby korzystać z interfejsu YouTube Data API w aplikacji, musisz najpierw uzyskać dane logowania.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2023-02-22 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2023-02-22 UTC."],[[["\u003cp\u003eThis guide series demonstrates how to utilize the YouTube Data API (v3) for various functions, providing descriptions, code samples, and pre-filled API Explorer queries.\u003c/p\u003e\n"],["\u003cp\u003eSample v3 API queries in this guide link to the APIs Explorer, allowing users to test queries and view responses quickly.\u003c/p\u003e\n"],["\u003cp\u003eSome sample requests necessitate OAuth 2.0 authorization, which can be enabled through a widget in the APIs Explorer.\u003c/p\u003e\n"],["\u003cp\u003eUsing the YouTube Data API in an external application requires that authorization credentials must first be obtained.\u003c/p\u003e\n"]]],["The content explains the use of the YouTube Data API (v3) for various functions, offering descriptions, code samples, and pre-filled API Explorer links for testing queries. Authorization is required for some requests, enabled via a widget in the API Explorer. To utilize the API in applications, users must obtain authorization credentials, as detailed in the linked documentation. The guide uses the API Explorer as a key element for users to understand and test the information.\n"],null,["# Implementation Guide\n\nThis series of guides explains how to use the YouTube Data API (v3) to perform many different types of functions. It includes descriptions, pointers to code samples, and links that populate the APIs Explorer with sample queries.\n\nIn reading this guide, please remember that:\n\n- Whenever possible, sample v3 API queries link to and populate the APIs Explorer with the values shown in the queries. These examples help you easily submit test queries and see sample responses.\n\n- Some of the sample requests do require authorization. There is a small widget near the top of the APIs Explorer form that enables OAuth 2.0 authorization.\n\n- To use the YouTube Data API in your application, you must first [obtain authorization credentials](/youtube/registering_an_application)."]]