Baidu Downloader

Blog

Baidu extraction code (提取码): what it is and how to use it

Direct answer. A Baidu extraction code (提取码, also called 访问码 or access code) is the 4-character password on a public share. Owners put it in the chat next to the link, or it is already on the URL as ?pwd=8k2p. Paste both. A missing or stale code is the most common reason a transfer dies with “wrong password” or a false “group share” error (Baidu errno -9).

If you have ever opened a Baidu link and stared at a pink box asking for 请输入提取码, this article is the map. The code is not a captcha. It is not your Baidu password. It is not the SMS you never received. It is a short secret the owner chose when they clicked 分享. This site’s form calls it “Access code” for the same object.

What a 提取码 is

When a Baidu user shares a file or folder they pick a visibility. The usual public option is “anyone with the link and the code”. Baidu then prints two pieces: a https://pan.baidu.com/s/… URL and a 4-character code made of lowercase letters and digits. Official product copy uses 提取码. English pages say extraction code, access code, or password. On this form the field is “Access code (if any)”.

The code is bound to that share, not to your identity. Anyone who has both the URL and the code can open the listing. Anyone missing the code hits a wall. Baidu’s web API returns errno -9 when the session has no valid BDCLND cookie for that share — which is what a wrong or empty 提取码 produces. Older tools sometimes mis-label that as a group share. It is usually just the password.

Where to find the code

Owners almost always send both pieces in one message. Typical WeChat / QQ / email shapes:

  • Link: https://pan.baidu.com/s/1-6RukyClXT8y-eDpinj-_A 提取码: 8929
  • The same URL already carrying ?pwd=8929
  • A screenshot of the Baidu share card, code printed under the link

If the owner sent only the URL, ask them for 提取码. There is no public way to recover it. We cannot guess it. Brute force is not supported and would lock the share.

Sometimes the code is on the URL and people still type a second, different code from an old message. The form prefers the field you type. If you leave the field empty, JavaScript reads pwd from the query string. Prefer one source of truth: either paste the full URL with pwd=, or paste a clean URL plus the four characters.

Shares that have no code

Not every share has a 提取码. Some owners disable it. Those links open in a private window without a prompt. Leave our access-code field empty. Do not type “none” or “0000”. Empty means empty.

A link that opens for you while you are logged into your Baidu account, but fails in a private window, is not a public share. It may be a group share, a friend-only share, or a folder that was never shared — you are just browsing your own drive. We can only transfer public /s/ links. That is the same rule as downloading without a Baidu account.

Why a wrong code looks like a “group share”

Baidu’s list and transfer APIs do not always return a sentence in English. They return an integer. errno -9 means the share cannot be listed with the cookies we have. Two common causes: no 提取码 was sent, or a leftover BDCLND from a previous share poisoned the request. Our client now treats the code as part of verify, then lists. If you still see a group-share error on a link you can open in a private browser with the same code, it is a real group/enterprise share and transfer is blocked on Baidu’s side. Retrying another SVIP account will not help. The job fails on purpose.

If the owner rotates the code after you submit, inspect may have passed and transfer will fail later. Re-copy the latest message and start a new job. We do not cache share URLs for 24 hours. Each submit is a live verify.

How to enter it on this site

  1. Paste the share URL in the text area. Newlines are stripped.
  2. If the URL already has ?pwd=, you can leave Access code blank.
  3. Otherwise type the four characters. Case usually does not matter; type them as the owner sent them.
  4. Wait for Checking…. A bad code fails here, before a job is created, so you can fix it without burning the guest gate.

The access-code field is maxlength 8 because Baidu’s current public codes are four characters and we want a little headroom if a future share uses a longer 访问码. It is not a place for your Baidu password or a cookie.

Safety notes

A 提取码 is a weak secret. Treat the pair (URL + code) as the file itself. Do not post both in a public GitHub issue. If a share was meant for one person and leaked, ask the owner to cancel it in the Baidu client (取消分享) and create a new one.

This site does not store the code as a login. It is sent to the API for that job’s verify/list/transfer, then discarded with the job metadata retention. It is not a way to take over the owner’s account.

Frequently asked questions

Is 提取码 the same as my Baidu password?

No. The extraction code only unlocks one share link. It cannot sign you into Baidu Netdisk or change the owner’s files. Never type your Baidu account password into the access-code field.

The owner sent pwd= in the URL and also a different code in the text. Which one wins?

Whatever you type in Access code wins. If the field is empty, we read pwd from the URL. Delete the field and paste the full URL if you want the query string to win.

Can you download a share if I lost the code?

No. Ask the owner for a new 提取码 or a new link. There is no reset flow for strangers, including us.

Why did inspect pass and the job still fail?

The owner changed or cancelled the share after inspect, or Baidu listed files but refused transfer (group/enterprise). Read the job error. A wrong code almost always fails at Checking…, not later.

Related

Once the code is right, the rest of the path is the same as any public share: we transfer, then you pull with IDM and links.txt so the last mile is not a crawl from Baidu — see why Netdisk is slow outside China. Large trees still hit the 100 files / 5 GiB guest gate.