---
title: "Fetch YouTube Video Info Via oEmbed"
date: 2021-08-18T14:40:01.000Z
author: Z.SHINCHVEN
tags: [oEmbed, api, YouTube]
canonical: https://atlassc.net/2021/08/19/fetch-youtube-video-info-via-oembed
---
>oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.

Since YouTube supports [oEmbed](https://oembed.com/), it's easy to fetch YouTube video/music info via `oEmbed` api.

## Format

```URL
https://www.youtube.com/oembed?url=<YOUTUBE_CONTENT_URL>&format=json
```
## Example

https://www.youtube.com/oembed?url=https%3A//youtube.com/watch%3Fv%3DM3r2XDceM6A&format=json

https://www.youtube.com/oembed?url=https://music.youtube.com/watch?v=AtD-HOiAIc4&list=RDAMVMAtD-HOiAIc4&format=json
