Using Youtube v3 Api key

时间秒杀一切 提交于 2019-12-09 04:46:28

Make sure that the YouTube Data API is enabled in the Google Developer Console. It should look something like this:

The key you are looking for is the server key, which looks something like this:

(I've truncated my key for security purposes). I now copy and paste this into my browser window:

https://www.googleapis.com/youtube/v3/search?part=snippet&q=YouTube+Data+API&type=video&key=YOURKEYWOULDGOHERE

This works for me. Start here to verify that the key is working and that the API has been enabled correctly. I suggest using the API client, because some API calls will require an OAuth 2.0 access token, not the simple API key (search API requires regular simple API key).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!