Is it possible to get the video title using the video ID with API v3 without the API key? I could not find any information or example of getting the title in the API documentation.
相关问题
- YouTube API refresh token revoked with 400 code “i
- Unable to Full Screen Youtube Video Inside Custom
- Thumbnails from the Vimeo website harder than YouT
- YouTube Data API v3 allowed referers for browser a
- Wait until page is loaded when using XMLHTTP appro
相关文章
- How to dynamically add wmode=transparent to Youtub
- Detect or Approximate Bluetooth Latency on Android
- YouTube Video in R markdown
- How to prevent YouTube js calls from slowing down
- How to display all YouTube videos from specific ch
- How to get the last 24 hours worth of videos from
- Target iframe if it is a YouTube embed
- Youtube Video Duration API v3 [closed]
Yes You Can Without Any API Just Requests an re Modules
Code In Python:
Output:
[+] Video Title: Alan Walker - Sing Me To Sleep
No need for API key
To get the video title, you will NOT need an API key, and you'll need to make a request to:
https://noembed.com/embed?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ
Change the YouTube URL for the video that you need.
It also works with Vimeo and many other supported sites with URLs like:
https://noembed.com/embed?url=https://vimeo.com/45196609
Details
It is not possible to get the video title using the video ID with API v3 without the API key if you use the API directly. The YouTube Data API v2 is deprecated (see: YouTube Data API v2 Deprecation: Frequently Asked Questions) and currently the YouTube API doesn't support oEmbed with JSONP as it should (see Issue 4329: oEmbed callback for JSONP).
But fortunately there is the Noembed service that lets you get the titles (and other data) of YouTube videos with JSONP and without the API key.
Demo
Here is a simple demo to get the title with jQuery:
See DEMO on JS Bin.
See also these questions:
To get the video title, you will need an API key, and you'll need to make a request to:
In the returned packet, the title will be at
items.snippet.title
You can't retrieve any API data without an API key; all API requests are on a quota system, and the key is used to determine how much to charge your app's daily limit. A call like the above, however, is quite inexpensive; it's a total of 3 units (2 for the snippet and 1 for the request itself). Since you get 50,000,000 units a day and can retrieve up to 50 snippets for that same 3 units, it's not much of a burden to use the API key.
It appear that it is precisely the meaning of the oEmbed protocol.
More informations on the format at: https://oembed.com
Sample output:
Here is a list of content providers that declared adhere to the format:
Note that this doesn't mean that CORS is enabled on this websites.
This data are mostly made to be parsed server side.
Most of this informations can also be obtained by parsing the
<meta og>
open graph html attributes of a given page.See http://ogp.me/ for infos about open graph.