Get embed code
GEThttps://flarefasthost.com/embed/:id
Share and embed links are built from the video id; no API call is needed. They work once the video's uploadStatus is ready.
- Share page -
https://flare.link/video/VIDEO_ID - Embed iframe -
https://flarefasthost.com/embed/VIDEO_ID?poster=POSTER, where POSTER is the URL-encodedhttps://videos.flare.link/VIDEO_ID/thumbnail.jpg
The library's embed panel builds the same iframe, in a responsive wrapper sized to the video.
Examples
ID="VIDEO_ID"
POSTER=$(python3 -c "import urllib.parse,sys; print(urllib.parse.quote(sys.argv[1], safe=''))" \
"https://videos.flare.link/$ID/thumbnail.jpg")
echo "https://flare.link/video/$ID"
echo "<iframe src=\"https://flarefasthost.com/embed/$ID?poster=$POSTER\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen></iframe>"const id = "VIDEO_ID";
const shareUrl = `https://flare.link/video/${id}`;
const poster = `https://videos.flare.link/${encodeURIComponent(id)}/thumbnail.jpg`;
const embedUrl = `https://flarefasthost.com/embed/${encodeURIComponent(id)}?poster=${encodeURIComponent(poster)}`;
const embedCode = `<iframe src="${embedUrl}" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>`;from urllib.parse import quote
vid = "VIDEO_ID"
share_url = f"https://flare.link/video/{vid}"
poster = f"https://videos.flare.link/{vid}/thumbnail.jpg"
embed_url = f"https://flarefasthost.com/embed/{vid}?poster={quote(poster, safe='')}"Expected response
{
"shareUrl": "https://flare.link/video/VIDEO_ID",
"embedUrl": "https://flarefasthost.com/embed/VIDEO_ID?poster=https%3A%2F%2Fvideos.flare.link%2FVIDEO_ID%2Fthumbnail.jpg"
}