crawlfetch

yt-dlp: “Sign in to confirm you’re not a bot”

This error means YouTube decided the request looked automated and asked for a signed-in session. It shows up most on cloud servers and on machines making many requests.

Why it happens

  • IP reputation — datacenter IP ranges (AWS, GCP, Azure, Hetzner, Render…) are challenged far more often than home connections.
  • Request volume — many requests from one IP in a short time.
  • Outdated yt-dlp — older versions behave differently from current YouTube clients.

What you can do

  1. Update yt-dlp (yt-dlp -U or pip install -U yt-dlp) — many reports are fixed by the latest release.
  2. Slow down: add delays between requests and avoid parallel bursts from one IP.
  3. Check yt-dlp's own documentation and issue tracker for the options its maintainers support, and make sure your use complies with YouTube's terms.
  4. If this is a production service, move the extraction step to a hosted API so your servers only make one HTTPS call — e.g. GET https://api.crawlfetch.com/v1/resolve?url=….

FAQ

Why does it work on my laptop but not on my server?

Home and office IPs have a different reputation from datacenter IPs. See yt-dlp on cloud servers.

Will a download API get the same error?

CrawlFetch returns metadata and a download link, or a documented error code — your app never sees YouTube's sign-in page.

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