Bearer logo
YouTube API logo

YouTube API

3

API documentation
https://developers.google.com/youtube/v3/docs/

Developer website
https://developers.google.com/youtube/v3/

Incorrect or missing information? Help us

What is the YouTube API?

YouTube is the most famous videos-platform on the web. It hosts billions of hours of videos and music to watch and listen to. The associated API lets a developer retrieve information on a video as well as performing action for an authenticated user, like subscribing him to a channel or liking a video.

How to use the YouTube API?

NodeJSRubyPythonPHP
// npm install @bearer/node
bearer
.integration('youtube')
.auth('AUTH_ID') // Check the code example below on how to generate access tokens
.get('subscriptions', { query: { part: "id", mine: true}})
.then(({ data }) => console.log(data))
.catch(e => console.log(e))
HTML/JSReact
<script src="https://cdn.jsdelivr.net/npm/@bearer/js/lib/bearer.production.min.js"></script>
<button class="btn btn-primary" onclick="myConnectButton()">
Connect to YouTube
</button>
<script>
const bearerClient = bearer('YOUR_BEARER_PUB_KEY')
function myConnectButton() {
bearerClient
.connect(
'youtube'
)
.then(({ authId }) => {
// Use this authId like bearer.auth(authId).get(..
console.log('AUTH_ID for this user', authId)
})
}
</script>

Start using the YouTube API

Bearer provides a universal API client to call any YouTube endpoints. It takes care of API authentication, credentials management, and monitoring out-of-the-box.

Available in Node.js, Ruby, Python, and PHP

Sign up with Email

YouTube API Versions

versionstatus
3latest
NA

Start integrating the YouTube API for free!

Universal API client

Query the YouTube API and hundreds more APIs using a single API client.

Identity Management

From API credentials to OAuth dance, token and refresh token, Bearer manages it all.

Real-time Monitoring

Get a complete overview of your API usage with metrics and in-depth logs, find errors anddebug in a snap.

Bearer - Integrations built in minutes, Monitored in real-time

Company

Docs & Help

Legal

Bearer is on TwitterBearer is on GitHubBearer is on FacebookBearer is on LinkedIn
© Copyright Bearer 2019
Bearer uses cookies to make its website easier to use. Learn more about cookies.