PIXIVFE_TOKEN
cookieThis guide covers how to obtain the PIXIVFE_TOKEN
cookie from your Pixiv account, which is necessary for authenticating with the Pixiv API.
!!! warning
You should create an entirely new account for this to avoid account theft. And also, PixivFE will get contents **from your account.** You might not want people to know what kind of illustrations you like :P
For now, the only page that may contain contents that is relevant to you is the discovery page. Be careful if you are using your main account.
Log in to the Pixiv account you want to use. Upon logging in, you should see the Pixiv landing page. If you are already logged in, simply navigate to the landing page.
Press F12
to open the Firefox Developer Tools. Switch to the Storage
tab.
Press F12
to open the Chrome Developer Tools. Switch to the Application
tab.
In the left sidebar, expand the Cookies
section and select www.pixiv.net
. This is where you will find your authentication cookie.
Locate the cookie with the key PHPSESSID
. The value next to this key is your account's token.
In the left sidebar, find the Storage
section. Expand the Cookies
subsection and select www.pixiv.net
. This is where you will find your authentication cookie.
Locate the cookie with the key PHPSESSID
. The value next to this key is your account's token.
Copy the token value obtained in the previous step. If deploying with Docker Compose, paste it into the docker/pixivfe_token.txt
file. Otherwise, set it as the PIXIVFE_TOKEN
environment variable in your configuration.
123456_AaBbccDDeeFFggHHIiJjkkllmMnnooPP