Just to walk through this again to make sure you have done it properly.
- Make sure you have a Google account.
- Log into the developer console at: https://console.developers.google.com/
- Create a project
- THEN, select YouTube data API
- Click create credentials on the right hand side of the screen.
- Choose where you will call the API from
- Pick public or User.
- Obtain your API Key.
Optional: restrict your key.
I just walked though all of this and have been given a key myself.
Answer from Pseuplex on Stack OverflowWhere to find the youtube API Key? - Stack Overflow
[question] How am I supposed to make a Youtube API key?
Getting the unlimited token for YouTube API
What is possible with the Youtube API?
You can get public stats from any Youtube channel with the Youtube V3 API. You will need to apply for a API key. Getting Started
Then you can get the info with an API call such as:
https://www.googleapis.com/youtube/v3/channels?part=statistics&id=[a channel ID goes here]&key=[your API key goes here]
A channel id is in the last part of the url for a channel ex: https://www.youtube.com/channel/UC2C_jShtL725hvbm1arSV9w So the channel ID is UC2C_jShtL725hvbm1arSV9w
More on reddit.comHow do I get a YouTube API key?
Is YouTube API free?
What can we do with YouTube API?
Videos
Just to walk through this again to make sure you have done it properly.
- Make sure you have a Google account.
- Log into the developer console at: https://console.developers.google.com/
- Create a project
- THEN, select YouTube data API
- Click create credentials on the right hand side of the screen.
- Choose where you will call the API from
- Pick public or User.
- Obtain your API Key.
Optional: restrict your key.
I just walked though all of this and have been given a key myself.
- sign into https://developers.google.com
- https://console.developers.google.com/project - Create Project - enter Project Name - Create
- select newly created project
- Go to APIs Overview
- click + Enable APIS AND SERVICES
- type "YouTube" - select Youtube API v3 - click Enable
- click Credentials - "Create Credentials" - API key
- Copy and paste API key to text editor, e.g. notepad (save)
I saw a tutorial that says you can go to the google cloud platform, but when I go there, it just offers a free trial and requires you to enter billing info. Help please.
Ive been taking a look at the Youtube api docs and example code (in Python) and Im just wondering what kind of data can be pulled with it? Is it only for using with your own Youtube account/channel or from one that you have permission to access?
From what I can gather in the comments for these Python samples that does seem to be the case
https://developers.google.com/youtube/reporting/v1/code_samples/python#retrieve_reports
so how do sites like SocialBlade.com get all their data?
thanks
You can get public stats from any Youtube channel with the Youtube V3 API. You will need to apply for a API key. Getting Started
Then you can get the info with an API call such as:
https://www.googleapis.com/youtube/v3/channels?part=statistics&id=[a channel ID goes here]&key=[your API key goes here]
A channel id is in the last part of the url for a channel ex: https://www.youtube.com/channel/UC2C_jShtL725hvbm1arSV9w So the channel ID is UC2C_jShtL725hvbm1arSV9w
i was just messing it with it recently. You can do way more than that. I was able to search and embed video results in my webpage using the api