Back to explore

social

YouTube

Credits: 0.000001

Embed

POST /v1/youtube/Embed

Embed a YouTube video

Request

urlstring

provide the youtube url

Response

embed_urlstring

the embeddable link

html_scriptstring

the script code

long_urlstring

the full url

short_urlstring

the short url

Request

Response

{
    "embed_url": "https://www.youtube.com/embed/GWRWZu7XsJ0",
    "html_script": "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/GWRWZu7XsJ0\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>",
    "long_url": "https://www.youtube.com/watch?v=GWRWZu7XsJ0",
    "short_url": "https://youtu.be/GWRWZu7XsJ0"
}