🌐
Google
developers.google.com › youtube › data api › api reference
API Reference | YouTube Data API | Google for Developers
The API also allows you to retrieve different data sets related to the application, such as getting supported regions, supported languages, and reasons for video abuse reports. The YouTube Data API lets you incorporate functions normally executed on the YouTube website into your own website ...
🌐
Google
developers.google.com › youtube › data api
YouTube Data API | Google for Developers
With the YouTube Data API, you can add a variety of YouTube features to your application.
🌐
GitHub
github.com › happycod3r › YouTube-Data-API-v3-Tools
GitHub - happycod3r/YouTube-Data-API-v3-Tools: A comprehensive YouTube Data API v3 wrapper library used to easily integrate YouTube functionality into any project.
A comprehensive YouTube Data API v3 wrapper library used to easily integrate YouTube functionality into any project. - happycod3r/YouTube-Data-API-v3-Tools
Starred by 11 users
Forked by 5 users
Languages   Python
🌐
Google Cloud
console.cloud.google.com › apis › library › youtube.googleapis.com
YouTube Data API v3 – APIs and services
Google Cloud Console has failed to load JavaScript sources from www.gstatic.com. Possible reasons are:www.gstatic.com or its IP addresses are blocked by your network administratorGoogle has temporarily blocked your account or network due to excessive automated requestsPlease contact your network ...
🌐
YouTube
youtube.com › watch
YouTube Data API v3 Tutorial - YouTube
Twitter: https://twitter.com/ansonthedevGithub: https://github.com/stuyyDiscord: https://discord.gg/ansonBuy Me a Ko-fi: http://ko-fi.com/ansonMY RESOURCES:L...
Published   May 1, 2020
🌐
PyPI
pypi.org › project › youtube-data-api
youtube-data-api · PyPI
Details for the file youtube_data_api-0.0.21-py3-none-any.whl. Download URL: youtube_data_api-0.0.21-py3-none-any.whl
      » pip install youtube-data-api
    
Published   Jul 11, 2021
Version   0.0.21
🌐
Google Cloud Platform
console.cloud.google.com › tos
YouTube Data API v3
By using this Service/API, you consent to be bound by the YouTube API Services Terms of Service at https://developers.google.com/youtube/terms/api-services-terms-of-service.
🌐
NuGet
nuget.org › packages › google.apis.youtube.v3
NuGet Gallery | Google.Apis.YouTube.v3 1.70.0.3847
Product documentation is available at: https://developers.google.com/youtube/ API reference documentation for this package is available at: https://googleapis.dev/dotnet/Google.Apis.YouTube.v3/latest/api/Google.Apis.YouTube.v3.html The source ...
🌐
RapidAPI
rapidapi.com › ytdlfree › api › youtube-v31
Youtube v3
Without any api key use YT api v3 functionalities through our api. Just follow the YT api v3 docs and send same parameters to our service, get same response. For custom plan, please contact us. For quick chat: https://t.me/api_chat_support
Find elsewhere
🌐
GitHub
github.com › topics › youtube-data-api-v3
youtube-data-api-v3 · GitHub Topics · GitHub
python chatbot youtube-api ... youtube-data-api-v3 youtube-livestream-api youtube-livestream-bot youtube-chatbot ... Scraping YouTube Video Description and Video Likes and Comments and Times and Replies!
🌐
npm
npmjs.com › package › @googleapis › youtube
@googleapis/youtube - npm
The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists, and channels.
      » npm install @googleapis/youtube
    
Published   Dec 09, 2025
Version   30.1.0
Author   Google LLC
🌐
Medium
medium.com › @kattia.marin › how-to-use-the-youtube-data-api-v3-ad24b26d447d
How to Use the YouTube Data API v3 | by Kattia Marin | Medium
January 30, 2025 - The API returns JSON data and supports GET/POST requests. Here’s how to retrieve video metadata using Python: ... API_KEY = 'YOUR_API_KEY' youtube = build('youtube', 'v3', developerKey=API_KEY)# Get video details def get_video_details(video_id): request = youtube.videos().list( part="snippet,statistics", id=video_id ) response = request.execute() return responsevideo_id = "VIDEO_ID_HERE" video_data = get_video_details(video_id) print(video_data)
🌐
GitHub
github.com › mesadhan › youtube-data-api-v3-example
GitHub - mesadhan/youtube-data-api-v3-example: Using Youtube Data API we can access YouTube features to our application, including the ability to upload videos, create and manage playlists, and more.
Using Youtube Data API we can access YouTube features to our application, including the ability to upload videos, create and manage playlists, and more. - mesadhan/youtube-data-api-v3-example
Author   mesadhan
🌐
Google
developers.google.com › youtube › data api › youtube data api overview
YouTube Data API Overview | Google for Developers
Visit the Enabled APIs page. In the list of APIs, make sure the status is ON for the YouTube Data API v3.
🌐
Apidog
apidog.com › blog › youtube-api
YouTube Data API Overview | How to Implement it in Your Applications
July 26, 2025 - You will be returned with three different YouTube APIs that are all applicable for implementation in your application! However, YouTube Data API v3 will be selected in this article, as we believe it has a wider variety of API methods that any developer can utilize.
🌐
HubSpot
blog.hubspot.com › website › how-to-get-youtube-api-key
How to get a YouTube API key [tutorial + examples]
September 23, 2025 - In the library, navigate to YouTube Data API v3 under YouTube APIs.
🌐
Stack Overflow
stackoverflow.com › questions › 61389951 › how-to-use-youtube-data-api
How to use YouTube Data API - Stack Overflow
using System; using System.IO; using System.Reflection; using System.Threading; using System.Threading.Tasks; using Google.Apis.Auth.OAuth2; using Google.Apis.Services; using Google.Apis.Upload; using Google.Apis.Util.Store; using Google.Apis.YouTube.v3; using Google.Apis.YouTube.v3.Data; namespace Google.Apis.YouTube.Samples { /// <summary> /// YouTube Data API v3 sample: upload a video.
🌐
GeeksforGeeks
geeksforgeeks.org › python › youtube-data-api-set-1
Youtube Data API | Set-1 - GeeksforGeeks
July 11, 2025 - from apiclient.discovery import build # Arguments that need to passed to the build function DEVELOPER_KEY = "your_API_Key" YOUTUBE_API_SERVICE_NAME = "youtube" YOUTUBE_API_VERSION = "v3" # creating Youtube Resource Object youtube_object = build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION, developerKey = DEVELOPER_KEY) def youtube_search_keyword(query, max_results): # calling the search.list method to # retrieve youtube search results search_keyword = youtube_object.search().list(q = query, part = "id, snippet", maxResults = max_results).execute() # extracting the results from search response
Top answer
1 of 2
4

Sorry for having to give you a negative response:

As far as I know, the answer to your question is no, there's no such API (and API endpoint for that matter) that will provide the URLs of the streams that YouTube does yield to its video players (embedded or not).

Of course, one may scrape this kind of info out of the YouTube's Web UI (like many tools available on the Internet do), but, if one does observe the DTOS specifications, will eventually come across the paragraph E.6 of section III. General Developer Policies, that explicitly forbids this activity.


An argument against the existence of such a API can also be derived from the DTOS document, same section III. General Developer Policies, but, in this case, from paragraph E.1:

E. Handling YouTube Data and Content

Aside from the permissions and rights granted in this section, you and your API Clients have no further permissions or rights to API Data, including to temporarily stored API Data.

  1. Audiovisual Content

    You and your API Clients must not, and must not encourage, enable, or require others to:

    a. download, import, backup, cache, or store copies of YouTube audiovisual content without YouTube's prior written approval,
    b. make content available for offline playback
    c. [...]

Since is illegal to download video content from YouTube, it follows by simple formal logic, that it cannot exist an API that would provide URLs to the video content itself (under the assumption that the official APIs are formally consistent with the DTOS specifications).

2 of 2
2

No the YouTube API doesn't give you the video url, otherwise it would be too easy to copy the file.

Also, YouTube videos can only be played inside the YouTube iFrame player and you can't have access to the HTML5 video object (to retrieve the video url) because of cross-domain policy.