Skip to content

YouTube Data API v3 API

by googleapis.com

OAuthHTTPSAnalytics
Open documentation ↗

Overview

The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists, and channels.

YouTube Data API v3 is an analytics API from googleapis.com. Requests are authenticated with OAuth. It is served over HTTPS. Its OpenAPI description documents 76 endpoints.

At a glance

Authentication
OAuth
HTTPS
Yes
CORS
Unknown
Category
Analytics
Base URL
https://youtube.googleapis.com/
Version
v3
Endpoints
76
Spec updated
2023-04-21

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://youtube.googleapis.com/youtube/v3/activities" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const response = await fetch("https://youtube.googleapis.com/youtube/v3/activities", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://youtube.googleapis.com/youtube/v3/activities",
    headers={
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
POST/youtube/v3/abuseReportsInserts a new resource into this collection.
GET/youtube/v3/activitiesRetrieves a list of resources, possibly filtered.
GET/youtube/v3/captionsRetrieves a list of resources, possibly filtered.
POST/youtube/v3/captionsInserts a new resource into this collection.
PUT/youtube/v3/captionsUpdates an existing resource.
DELETE/youtube/v3/captionsDeletes a resource.
GET/youtube/v3/captions/{id}Downloads a caption track.
POST/youtube/v3/channelBanners/insertInserts a new resource into this collection.
GET/youtube/v3/channelSectionsRetrieves a list of resources, possibly filtered.
POST/youtube/v3/channelSectionsInserts a new resource into this collection.
PUT/youtube/v3/channelSectionsUpdates an existing resource.
DELETE/youtube/v3/channelSectionsDeletes a resource.
GET/youtube/v3/channelsRetrieves a list of resources, possibly filtered.
PUT/youtube/v3/channelsUpdates an existing resource.
GET/youtube/v3/commentThreadsRetrieves a list of resources, possibly filtered.
POST/youtube/v3/commentThreadsInserts a new resource into this collection.
PUT/youtube/v3/commentThreadsUpdates an existing resource.
GET/youtube/v3/commentsRetrieves a list of resources, possibly filtered.
POST/youtube/v3/commentsInserts a new resource into this collection.
PUT/youtube/v3/commentsUpdates an existing resource.
DELETE/youtube/v3/commentsDeletes a resource.
POST/youtube/v3/comments/markAsSpamExpresses the caller's opinion that one or more comments should be flagged as spam.
POST/youtube/v3/comments/setModerationStatusSets the moderation status of one or more comments.
GET/youtube/v3/i18nLanguagesRetrieves a list of resources, possibly filtered.
GET/youtube/v3/i18nRegionsRetrieves a list of resources, possibly filtered.
GET/youtube/v3/liveBroadcastsRetrieve the list of broadcasts associated with the given channel.
POST/youtube/v3/liveBroadcastsInserts a new stream for the authenticated user.
PUT/youtube/v3/liveBroadcastsUpdates an existing broadcast for the authenticated user.
DELETE/youtube/v3/liveBroadcastsDelete a given broadcast.
POST/youtube/v3/liveBroadcasts/bindBind a broadcast to a stream.
POST/youtube/v3/liveBroadcasts/cuepointInsert cuepoints in a broadcast
POST/youtube/v3/liveBroadcasts/transitionTransition a broadcast to a given status.
POST/youtube/v3/liveChat/bansInserts a new resource into this collection.
DELETE/youtube/v3/liveChat/bansDeletes a chat ban.
GET/youtube/v3/liveChat/messagesRetrieves a list of resources, possibly filtered.
POST/youtube/v3/liveChat/messagesInserts a new resource into this collection.
DELETE/youtube/v3/liveChat/messagesDeletes a chat message.
GET/youtube/v3/liveChat/moderatorsRetrieves a list of resources, possibly filtered.
POST/youtube/v3/liveChat/moderatorsInserts a new resource into this collection.
DELETE/youtube/v3/liveChat/moderatorsDeletes a chat moderator.
GET/youtube/v3/liveStreamsRetrieve the list of streams associated with the given channel. --
POST/youtube/v3/liveStreamsInserts a new stream for the authenticated user.
PUT/youtube/v3/liveStreamsUpdates an existing stream for the authenticated user.
DELETE/youtube/v3/liveStreamsDeletes an existing stream for the authenticated user.
GET/youtube/v3/membersRetrieves a list of members that match the request criteria for a channel.
GET/youtube/v3/membershipsLevelsRetrieves a list of all pricing levels offered by a creator to the fans.
GET/youtube/v3/playlistItemsRetrieves a list of resources, possibly filtered.
POST/youtube/v3/playlistItemsInserts a new resource into this collection.
PUT/youtube/v3/playlistItemsUpdates an existing resource.
DELETE/youtube/v3/playlistItemsDeletes a resource.
GET/youtube/v3/playlistsRetrieves a list of resources, possibly filtered.
POST/youtube/v3/playlistsInserts a new resource into this collection.
PUT/youtube/v3/playlistsUpdates an existing resource.
DELETE/youtube/v3/playlistsDeletes a resource.
GET/youtube/v3/searchRetrieves a list of search resources
GET/youtube/v3/subscriptionsRetrieves a list of resources, possibly filtered.
POST/youtube/v3/subscriptionsInserts a new resource into this collection.
DELETE/youtube/v3/subscriptionsDeletes a resource.
GET/youtube/v3/superChatEventsRetrieves a list of resources, possibly filtered.
POST/youtube/v3/testsPOST method.
GET/youtube/v3/thirdPartyLinksRetrieves a list of resources, possibly filtered.
POST/youtube/v3/thirdPartyLinksInserts a new resource into this collection.
PUT/youtube/v3/thirdPartyLinksUpdates an existing resource.
DELETE/youtube/v3/thirdPartyLinksDeletes a resource.
POST/youtube/v3/thumbnails/setAs this is not an insert in a strict sense (it supports uploading/setting of a thumbnail for multiple videos, which doesn't result in creation of a single resou
GET/youtube/v3/videoAbuseReportReasonsRetrieves a list of resources, possibly filtered.
GET/youtube/v3/videoCategoriesRetrieves a list of resources, possibly filtered.
GET/youtube/v3/videosRetrieves a list of resources, possibly filtered.
POST/youtube/v3/videosInserts a new resource into this collection.
PUT/youtube/v3/videosUpdates an existing resource.
DELETE/youtube/v3/videosDeletes a resource.
GET/youtube/v3/videos/getRatingRetrieves the ratings that the authorized user gave to a list of specified videos.
POST/youtube/v3/videos/rateAdds a like or dislike rating to a video or removes a rating from a video.
POST/youtube/v3/videos/reportAbuseReport abuse for a video.
POST/youtube/v3/watermarks/setAllows upload of watermark image and setting it for a channel.
POST/youtube/v3/watermarks/unsetAllows removal of channel watermark.

Questions

Does the YouTube Data API v3 API need an API key?

Yes. The YouTube Data API v3 API uses OAuth authentication; the documentation explains how to get credentials.

Does the YouTube Data API v3 API support HTTPS?

Yes, the YouTube Data API v3 API is served over HTTPS.

How many endpoints does the YouTube Data API v3 API have?

Its OpenAPI description lists 76 endpoints in version v3. All of them are shown on this page.

What are alternatives to the YouTube Data API v3 API?

Other Analytics APIs include Google Play Integrity API, versionhistory.googleapis.com API, Doc Converter, Perspective Comment Analyzer API, Safe Browsing API.

Compare alternatives →

Google Play Integrity API

Analytics

The Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play Integrity API has replaced SafetyNet Attestation and Android Device Verification.

OAuth1 endpoints

versionhistory.googleapis.com API

Analytics

Version History API - Prod

No auth4 endpoints

Doc Converter

Analytics

This api converts file formats of OpenXml and OpenOffice documents formats to vector files (e.g., svg)

No auth1 endpoints

Perspective Comment Analyzer API

Analytics

The Perspective Comment Analyzer API provides information about the potential impact of a comment on a conversation (e.g. it can provide a score for the "toxicity" of a comment). Users can leverage the "SuggestCommentScore" method to submit corrections to improve Perspective over time. Users can set the "doNotStore" flag to ensure that all submitted comments are automatically deleted after scores are returned.

OAuth2 endpoints

Safe Browsing API

Analytics

Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API.

No auth7 endpoints

Web Fonts Developer API

Analytics

The Google Web Fonts Developer API lets you retrieve information about web fonts served by Google.

No auth1 endpoints

Listed from APIs.guru (CC0).