Always get the best available quality
Every response includes bestQuality — the highest resolution the video offers. Without res, CrawlFetch returns the best muxed MP4: one file with picture and sound.
Best single file vs best picture
| Goal | Request | Result |
|---|---|---|
| One file, plays anywhere | no res, format=mp4 | Best muxed MP4 with audio |
| Highest resolution | res= the bestQuality value | Often video-only; add audioUrl and mux |
| Smallest good file | res=720p | HD with audio |
Two-step: check, then request
const auth = { headers: { Authorization: "Bearer " + process.env.CRAWLFETCH_KEY } };const q = (p) => "https://api.crawlfetch.com/v1/resolve?" + new URLSearchParams(p);const first = await (await fetch(q({ url }), auth)).json();const best = await (await fetch(q({ url, res: first.bestQuality }), auth)).json();console.log(best.bestQuality, best.downloadUrl);
FAQ
Does the plan limit bestQuality?
bestQuality reports what the video offers; downloads are capped at your plan's maximum (720p on Free).
Related
Last updated 2026-10-25