crawlfetch

Download link expired

CrawlFetch download links are valid for roughly six hours. That keeps links from being shared indefinitely and matches how the source platforms treat their own media URLs.

Do

  • Resolve right before you download.
  • Cache the resolve response for a few hours at most — keyed by the video URL.
  • On a failed download, resolve again and retry once.

Don't

  • Store downloadUrl in your database as a permanent link.
  • Email or publish links that users might open days later — link to your own page that resolves on click.

Resolve-on-click pattern

app.get("/v/:id/download", async (req, res) => {
const video = await db.videos.find(req.params.id);
const r = await fetch("https://api.crawlfetch.com/v1/resolve?" + new URLSearchParams({ url: video.sourceUrl }), {
headers: { Authorization: "Bearer " + process.env.CRAWLFETCH_KEY },
});
const { downloadUrl } = await r.json();
res.redirect(302, downloadUrl); // always fresh
});

FAQ

Does resolving again cost another request?

Yes, each successful resolve is charged in credits — so resolve when the user actually downloads.

Related

Last updated 2026-10-25

Add video downloads to your product today.

1,000 credits on signup plus 500 every month. That is roughly 180 YouTube clips to start, with no card.

Create free account