---
title: "Make pasted video links play inside your app or forum"
description: "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."
url: https://tday.com/blog/play-pasted-video-links-in-your-app
markdown: https://tday.com/blog/play-pasted-video-links-in-your-app.md
last_updated: 2026-11-27
---

# 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 November 27, 2026  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.

![A sample community feed where a post with a tday.com link shows the video as a player under the text, captioned: so your readers watch the demo without leaving the feed.](https://tday.com/blog/pasted-link-plays-in-feed.webp)

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.

![The same feed post with its tday.com player playing inside the post, captioned: It plays right there in the post, captions and all.](https://tday.com/blog/pasted-link-player-in-post.webp)

A tday.com link posted in a sample feed, playing inside the post.

## What a tday.com video link looks like

```text
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:

```js
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 out `height`, which would cancel the ratio.
- **Keep the permissions.** `allow="autoplay; fullscreen; picture-in-picture"` and `allowfullscreen` let 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](https://oembed.com) for every public video. Call it when a link is posted, with the link URL-encoded:

```bash
curl "https://tday.com/api/oembed?url=https%3A%2F%2Ftday.com%2Fab2cd3ef&format=json"
```

The answer is a `video`:

```json
{
  "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:

```js
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:

```text
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:

```html
<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](https://docs.tday.com/embed-tday-links) in tday.com's docs, and the oEmbed details are under [Share and embed](https://docs.tday.com/sharing). For putting a demo on your own website or in Notion, see [how to embed a product demo video](https://tday.com/blog/embed-a-product-demo-video-on-your-website).

## 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

1. [Play tday.com links in your product](https://docs.tday.com/embed-tday-links), tday.com docs
2. [Share and embed](https://docs.tday.com/sharing), tday.com docs
3. [oEmbed specification](https://oembed.com), 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.

[Make your first demo](https://docs.tday.com/first-demo) [See pricing](https://tday.com/pricing)

## Keep reading

- ![A tday.com share page playing a demo titled Give every docs page its demo, captioned: and the same link plays the new version once it's ready.](https://tday.com/blog/share-same-link-new-version.webp)

    Guides  December 3, 2026  5 min read

    ### [How do I share a product demo video privately with my team?](https://tday.com/blog/share-demo-video-privately-with-team)

    Make a share link in tday.com and set it to Private: only your team, signed in, can watch. What it does to embeds, docs and oEmbed, and how to undo it.

- ![The Connect your documentation dialog: a docs address field, or connect through Mintlify or GitBook.](https://tday.com/blog/docs-connect-documentation.webp)

    Guides  November 29, 2026  6 min read

    ### [How do I add captions to a product demo video?](https://tday.com/blog/add-captions-to-a-product-demo-video)

    tday.com adds captions to every demo it makes, on every plan. How subtitles and step notes differ, how to change their style, and captions for your own voice.

- ![The first-demo screen zoomed in on its stages, with the checks No new branch, Its own data, Test keys only and Checked before it uploads.](https://tday.com/blog/first-demo-safety-check.webp)

    Guides  November 25, 2026  7 min read

    ### [How do I keep real customer data out of a product demo video?](https://tday.com/blog/keep-customer-data-out-of-a-product-demo-video)

    Record product demos with seeded, made-up data: a throwaway database, demo\_fill for names on screen, a demo persona, sign-in off camera and test keys.

---

## For AI agents

- Every page on tday.com is available as Markdown: add `.md` to its address (https://tday.com/index.md for the home page), or request it with `Accept: text/markdown`.
- Site index: https://tday.com/llms.txt. Every page in one file: https://tday.com/llms-full.txt.
- Docs: https://docs.tday.com (index for agents: https://docs.tday.com/llms.txt).
- No tday.com account yet? A coding agent can sign its person up itself: POST their email to https://tday.com/api/agent/sign-up, then either POST the 6-digit code tday.com emails them to https://tday.com/api/agent/verify, or have them click Approve in that email and poll the status URL the first call answers, for a key. Every step: https://tday.com/skill.md.
- To record a narrated demo of an app from a coding agent, install tday.com's MCP server once with `curl -fsSL https://tday.com/install.sh | bash`, then ask the agent to record a tday.com demo.
