ytdlp.org
On this page

Troubleshooting guide

Fix "Sign in to confirm you're not a bot" in yt-dlp

This is YouTube's bot detection deciding your request looks automated. It is not a bug in your command. It shows up most often on datacenter and VPN IPs, after bursts of requests, or when yt-dlp is out of date and using request patterns YouTube has already flagged.

Last checked December 1, 2026 against yt-dlp 2026.11.23.

Short answer: On your own machine, update yt-dlp and pass cookies from a signed-in browser. On a server, the IP is usually the cause, so cookies and slower requests help but rarely make it go away for good (details below). If downloads have to keep working inside an app, a hosted API such as Importly takes the link and returns the file, transcript or metadata, and it works from servers where self-hosted downloads get blocked, with nothing to install or patch on the box.

Quick answer

Update yt-dlp, then pass cookies from a browser where you are signed in to YouTube.

yt-dlp -U
yt-dlp --cookies-from-browser chrome "URL"

Swap chrome for firefox, edge, brave, or safari. Signed-in cookies prove to YouTube that a real account is behind the request, which clears the check in most cases.

This will break again. Get an email next time.

2–4 emails a month, only when something breaks or gets fixed. Unsubscribe anytime.

If you also see "No title found in player responses"

The bot check often comes with a warning a line or two before it:

WARNING: [youtube] VIDEO_ID: No title found in player responses; falling back to title from initial data. Other metadata may also be missing
ERROR: [youtube] VIDEO_ID: Sign in to confirm you're not a bot. ...

yt-dlp asks YouTube for the video through several player clients. This warning means none of them sent the video back, so yt-dlp took the title from the watch page instead. It isn't a separate bug, and the line after it tells you what happened:

  • "Sign in to confirm you're not a bot" comes next. YouTube turned every client away. Fix it the way the rest of this page describes: cookies, fewer requests, and on a server the steps further down. This is the usual case on a VPS, in Docker and in CI.
  • The video is age-restricted or members-only. The clients need a signed-in account that can watch it. Pass cookies from that account.
  • Neither. Update yt-dlp (yt-dlp -U) and retry. A YouTube change can break the clients until a release catches up.

Add -v to see what each client got back.

If cookies alone do not fix it

  • Check your IP. Requests from cloud servers, VPNs, and shared proxies get challenged far more aggressively than home connections. Try the same command from a residential IP to confirm the IP is the problem.
  • Slow down. Bursts of requests trigger the check. Add --sleep-requests 1 and avoid launching many downloads in parallel against the same site.
  • Export cookies to a file for servers. On a headless machine there is no browser to read from. Export cookies.txt from your own browser and pass --cookies cookies.txt.
  • Stay updated. YouTube changes its bot checks continuously, and yt-dlp ships counter-fixes in releases. An old build fails checks a current build passes.

Why the cookies fix stops working

  • YouTube rotated them. If you exported cookies from a browser tab you keep using, YouTube refreshes that session and the file goes stale within hours or days. Open a private window, sign in, export the cookies, then close the window without signing out, so nothing touches that session again.
  • Chrome on Windows can't be read. If you see Failed to decrypt with DPAPI, recent Chrome versions encrypt cookies in a way yt-dlp can't read. Use --cookies-from-browser firefox or an exported cookies.txt.
  • The account got flagged. Heavy automated use of one account can get it challenged too. Use a separate account, not your personal one.

To confirm cookies are being read at all, see the cookies guide.

On a server, in Docker or in CI

This is where the error shows up most, because YouTube reacts to the IP first. Work through it in this order:

  1. Pass a cookies file. There is no browser to read from, so export cookies.txt as above and mount it where yt-dlp can write to it. yt-dlp saves refreshed cookies back to the file when it exits.
docker run --rm -v "$PWD/cookies.txt:/cookies.txt" -v "$PWD:/downloads" \
  yt-dlp --cookies /cookies.txt "URL"
  1. Rebuild with the latest yt-dlp. A container image built last month ships last month's yt-dlp. See running yt-dlp in Docker for a Dockerfile that stays current.
  2. Try another player client. Some clients get challenged less than others at a given time. The player client guide lists the ones that work right now.
  3. Add a PO token provider. On cloud IPs YouTube increasingly wants a proof-of-origin token. Run a PO token provider on a server.
  4. Accept that the IP may be the wall. If all of that still fails, the server's IP range is the problem. A GitHub Actions or AWS runner can fail every time no matter the flags. See yt-dlp blocked on a server and yt-dlp in GitHub Actions for what's left to try.

Why this error keeps coming back

This is an arms race, not a one-time fix. YouTube tightens automated-traffic detection; yt-dlp adapts; the cycle repeats every few weeks. A command that worked yesterday can fail today with the exact same flags. If you only download occasionally on your own machine, updating plus cookies will keep you moving. If this runs inside a product or a scheduled job, expect to re-fix it on YouTube's schedule, not yours.

The mistake to avoid

Do not hammer the same URL with retries while the check is active. That makes your IP look more automated, not less. Fix the trust signal first: fresh yt-dlp, real cookies, reasonable request rate, residential IP if you can.

Running this inside your app on a server?

If the download has to keep working in production, the same job is one API call to Importly. You send the link and get the file back at your webhook (or by polling), from servers where self-hosted downloads get blocked. Free to try, no card required.

import os
import requests

# Submit the link; Importly POSTs the finished file to your webhook.
res = requests.post(
    "https://api.importly.io/import",
    headers={"Authorization": f"Bearer {os.environ['IMPORTLY_API_KEY']}"},
    json={
        "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
        "webhookUrl": "https://example.com/webhooks/importly",
    },
)
print(res.json()["data"]["jobId"])  # or poll GET /import/status?id=...

Get a key and make your first call in the quick start, with transcripts and metadata too.

Guides for your stack: Python, Next.js, Laravel, Rails, Go, BullMQ, Celery, Supabase Edge Functions.

Servers & agents

Works on your laptop but not on the server?

Paste a link to see what a hosted API returns, running from servers and agent sandboxes where datacenter IPs get blocked — nothing to install or maintain on the box.

Building this into an app? See the API your backend calls instead

Frequently asked questions

Why does yt-dlp say "Sign in to confirm you're not a bot" on my server but not on my laptop?

YouTube trusts home connections far more than cloud and VPN IP ranges. The same command, flags and yt-dlp version can pass on a laptop and fail on a VPS, in Docker on a cloud host, or on a CI runner, because the server's IP is the signal YouTube is reacting to.

I passed cookies and it worked for a day, then the error came back. Why?

YouTube rotates the cookies of a session that is still open in a browser, so a cookies.txt exported from a tab you keep using goes stale. Export from a private window you log into once and then close, and use a separate account rather than your main one.

Why does --cookies-from-browser chrome fail on Windows?

Recent Chrome versions on Windows encrypt cookies in a way yt-dlp can't read, and it reports "Failed to decrypt with DPAPI". Use Firefox with --cookies-from-browser firefox, or export a cookies.txt file and pass it with --cookies.

Does --sleep-requests stop the bot check?

It helps when the check is triggered by bursts of requests, which is common in playlist and channel downloads. It won't help on an IP YouTube already distrusts. yt-dlp also has a preset, -t sleep, that adds short sleeps between requests and subtitle downloads.

Can I use my own YouTube account's cookies in a production app?

It's risky. Automated traffic on an account can get that account flagged or blocked, and the cookies expire and need replacing by hand. For a product, plan for the cookies to break and keep a fallback.

Does a VPN fix the "Sign in to confirm you're not a bot" error?

Usually not. Most consumer VPN exit IPs are datacenter ranges YouTube already distrusts, so a VPN often just swaps one flagged IP for another. If the command passes at home but fails on a VPN or server, the IP is the signal - a residential IP is what clears the check, not a VPN.

Does a residential proxy help with the bot check?

It can, because YouTube trusts residential IPs far more than datacenter ones, so routing through one often clears a challenge a cloud IP keeps failing. It's the IP reputation doing the work, not the proxy itself - fresh cookies, a current yt-dlp and a sane request rate still matter. If you'd rather not run and rotate proxies yourself, see [yt-dlp works locally but not on my server](/guides/yt-dlp-blocked-on-server).

How do I fix "Sign in to confirm you're not a bot" in GitHub Actions or CI?

CI runners - GitHub Actions, GitLab, most cloud CI - use datacenter IP ranges YouTube already distrusts, so a command that passes on your laptop can fail on every run with the same flags and version. Cookies, a current yt-dlp and a PO token provider help but often won't clear it on a shared runner IP. What reliably works is making the request come from a residential IP, or moving the download to a service that already does. See [yt-dlp in GitHub Actions](/guides/yt-dlp-github-actions) for the full walk-through.