Bearer logo

Quickly use YouTube's API to build your own integration

  • Call the YouTube API in 2 minutes
  • Integrate into your App with our universal API client
  • Out-of-the-box managed OAuth2 flow & credentials
  • Transform and extend YouTube's API with custom built functions
  • Log every API call to YouTube with end-to-end trace
  • Manage all your API usage from Bearer's Dashboard

Call the YouTube API with Bearer client

NodeJSRubyPythonPHP
// npm install @bearer/node
bearer
.integration('youtube')
.auth('AUTH_ID') // Check the code in the box below to learn more about identity
.get('subscriptions', { query: { part: "id", mine: true}})
.then(({ data }) => console.log(data))
.catch(e => console.log(e))

Ask for the YouTube identity of your users

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>

In one click, you can also generate an identity using your own YouTube account directly from the Dashboard

Manage & Monitor

Credentials

Manage API credentials in a central place, rotate them in one click.

Logs

Automatically log every API call, find errors and debug in a snap with end-to-end trace.

Transform & extend APIs

Create functions to transform and re-expose APIs according to your needs.

Featured APIs

Bearer - Universal API Client

Company

Docs & Help

Legal

Bearer is on TwitterBearer is on GitHubBearer is on FacebookBearer is on LinkedInBearer is on Medium
© Copyright Bearer 2019