How do I make pasted video links play inside my app or forum?
Turn a pasted tday.com link into a playing video in your feed, forum or chat: match the link and frame the player, or call oEmbed. No key needed.
By the tday.com team Published 5 min read
The short answer
Match the link and frame the player: a tday.com video link is tday.com/<id> or tday.com/e/<id>, where the id is 8 characters, and the player to put in an iframe is tday.com/e/<id>. Or call oEmbed from your server, GET https://tday.com/api/oembed?url=<link>&format=json, and render the html it returns. Neither needs an account or an API key.
Key takeaways
- A tday.com video link is tday.com/<id> or tday.com/e/<id>, with an optional ?c= that opens at a chapter.
- The id is 8 characters from abcdefghjkmnpqrstuvwxyz23456789. One of tday.com's own pages, /research, fits that shape, so skip it.
- Frame https://tday.com/e/<id> at 16:9 by width, and keep the fullscreen permissions.
- oEmbed answers only for real public videos, with a title and a poster. A private or removed video answers 404.
- If your site sets a Content Security Policy, add frame-src https://tday.com.

Someone posts a link to a demo in your feed, forum or chat, and your product shows a gray card with a title. They wanted the video to play. For tday.com links you can do that with no account, no API key and nobody at tday.com to talk to: every public tday.com video can be framed by any site.
There are two ways. Match the link in the browser and render an iframe, or ask oEmbed from your server and render what it returns. If you already unfurl links, oEmbed fits what you have. If you want no extra request, match the link.

What a tday.com video link looks like
https://tday.com/ab2cd3ef the video's page
https://tday.com/e/ab2cd3ef the bare player
https://tday.com/ab2cd3ef?c=b4 either one, opening at a chapter
The id is always 8 characters from abcdefghjkmnpqrstuvwxyz23456789: lowercase letters and digits, without the look-alikes 0, o, 1, l and i. It sits at the root of tday.com or under /e/, and nowhere else.
Almost none of tday.com's other pages fit that shape. One does: /research. Leave it out, or you will frame a page that is not a video.
Match the link and frame the player
This takes a pasted link and returns the iframe, or null when the link is not a tday.com video:
const TDAY_VIDEO = /^\/(?:e\/)?([a-hjkmnp-z2-9]{8})\/?$/;
// One of tday.com's own pages also has an 8-letter name. Never frame it.
const NOT_VIDEOS = new Set(["research"]);
function tdayEmbed(link) {
let url;
try { url = new URL(link.trim()); } catch { return null; }
if (url.hostname !== "tday.com" && url.hostname !== "www.tday.com") return null;
const m = TDAY_VIDEO.exec(url.pathname);
if (!m || NOT_VIDEOS.has(m[1])) return null;
const chapter = url.searchParams.get("c");
const src = `https://tday.com/e/${m[1]}` + (chapter ? `?c=${encodeURIComponent(chapter)}` : "");
return `<iframe src="${src}" title="tday.com video" style="width:100%;aspect-ratio:16/9;border:0;border-radius:12px" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen loading="lazy"></iframe>`;
}
A few details matter:
- Keep
?c=. It names a chapter, so a link someone posted at a particular step opens at that step. - Size by width. The player is 16:9. Set the width and
aspect-ratio: 16 / 9, and leave outheight, which would cancel the ratio. - Keep the permissions.
allow="autoplay; fullscreen; picture-in-picture"andallowfullscreenlet the player's fullscreen button work. - A match is a guess. A link that fits the pattern but names no video shows "no longer available" inside the frame. If you would rather never guess, use oEmbed: it answers only for real videos.
If you render posts in React, return the src from the function and build the iframe as a component instead of a string. Either way, the player is https://tday.com/e/<id>.
Ask oEmbed from your server
tday.com answers oEmbed for every public video. Call it when a link is posted, with the link URL-encoded:
curl "https://tday.com/api/oembed?url=https%3A%2F%2Ftday.com%2Fab2cd3ef&format=json"
The answer is a video:
{
"version": "1.0",
"type": "video",
"provider_name": "tday.com",
"provider_url": "https://tday.com",
"title": "Acme - Invite your team",
"author_name": "Acme",
"html": "<iframe src=\"https://tday.com/e/ab2cd3ef\" title=\"Acme - Invite your team\" width=\"1280\" height=\"720\" style=\"border:0\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen loading=\"lazy\"></iframe>",
"width": 1280,
"height": 720,
"thumbnail_url": "https://cdn.tday.com/.../poster.png",
"thumbnail_width": 1920,
"thumbnail_height": 1080,
"cache_age": 3600
}
In a Node or edge server, that is one fetch:
async function tdayOembed(link, maxwidth = 640) {
const api = new URL("https://tday.com/api/oembed");
api.searchParams.set("url", link);
api.searchParams.set("format", "json");
api.searchParams.set("maxwidth", String(maxwidth));
const res = await fetch(api);
if (res.status === 404) return null; // not a video, private, or removed
if (!res.ok) throw new Error(`tday.com oEmbed answered ${res.status}`);
return res.json(); // { title, html, width, height, thumbnail_url, cache_age, ... }
}
What to know about the request:
| Parameter | What it does |
|---|---|
url | Required. The video's page or player link, URL-encoded. A ?c= in it carries into the player. |
format | json, the default. Any other format answers 501. |
maxwidth, maxheight | Optional. The player is fitted inside them at 16:9. |
The endpoint takes no key, and CORS allows every origin. Keep an answer for up to cache_age seconds. You do not need to refresh it when the video is re-recorded: the player always plays the newest take. If you only want a link card, title and thumbnail_url from the same answer give you the name and the poster.
Handle 404s: private and removed videos
oEmbed answers 404 for three things: a link that is not a tday.com video, a private video, and one that has been removed (a demo moved to Trash). Treat all three the same way. Leave the post as a plain link.
Do not cache a 404 for a link that matched the pattern. A video that is still rendering answers 404 for a few minutes and then works, and tday.com does not cache that 404 either. Retry the next time the post is shown, or after a short delay.
Players you already rendered take care of themselves. If a video is made private later, the frame says "This video is private." If it is removed, the frame says it is no longer available. The message stays inside the frame, so an old post never breaks your layout.
Allow the player in your Content Security Policy
If your site sets a Content Security Policy, allow tday.com in frames:
frame-src https://tday.com;
If you show oEmbed thumbnails as images, also allow img-src https://cdn.tday.com.
Discovery: your unfurler may already work
Every tday.com video page carries the standard tags, so a generic unfurler can find the player on its own:
<link rel="alternate" type="application/json+oembed" href="https://tday.com/api/oembed?url=...&format=json">
<meta property="og:video" content="https://tday.com/e/ab2cd3ef">
If your product already follows oEmbed discovery, or embeds through Iframely or Embedly, tday.com links may already play. Paste one and check before writing any code.
What the player does inside your page
- It plays the newest take. A link points at the video, not one version of it. When the team behind it records it again, every post that embeds it plays the new take, with no change on your side.
- It is the video alone. No tday.com page around it, edge to edge in its frame. Any link in it opens in a new tab.
- It sets no cookies and loads no analytics. It counts views without tracking the viewer.
The full reference is Play tday.com links in your product in tday.com's docs, and the oEmbed details are under Share and embed. For putting a demo on your own website or in Notion, see how to embed a product demo video.
Frequently asked questions
Do I need an API key to embed tday.com videos in my app?
No. Every public tday.com video can be framed by any site, and the oEmbed endpoint takes no key. CORS allows every origin.
What regular expression matches a tday.com video link?
Match the path against /^\/(?:e\/)?([a-hjkmnp-z2-9]{8})\/?$/ on the host tday.com or www.tday.com, and skip the id research, which is one of tday.com's own pages. The player for a match is https://tday.com/e/<id>.
What is the tday.com oEmbed endpoint?
GET https://tday.com/api/oembed?url=<link>&format=json. It answers a video with html that frames the player, width, height, thumbnail_url and cache_age, and fits the player inside maxwidth and maxheight at 16:9.
What happens when a video is private or deleted?
oEmbed answers 404, so leave the post as a plain link. A player already in a post shows This video is private, or that the video is no longer available, inside its frame.
Why does my site block the tday.com player?
Your Content Security Policy probably does not allow it in frames. Add frame-src https://tday.com, and img-src https://cdn.tday.com if you show oEmbed thumbnails.
Sources
- Play tday.com links in your product, tday.com docs
- Share and embed, tday.com docs
- oEmbed specification, oEmbed
Have your coding agent record your first demo
One prompt in Claude Code, Cursor or Codex records a narrated demo of your app. tday.com voices, styles and renders it, ready for your docs. Free includes 5 saved demos.


