Authentication:
- Requires
Authorization: Bearer <api-key>whenPIXIVUTIL_SERVER_API_KEYis set. - If
PIXIVUTIL_SERVER_API_KEYis unset/empty, authentication is disabled.
GET /api/server/cookie
Get the cookie in use.
PUT /api/server/cookie
Update the cookie. The cookie is sent in the JSON request body, so it does not end up in URLs or access logs.
{"cookie": "<your-pixiv-cookie>"}DELETE /api/server/database
Reset the database.
DELETE /api/server/downloads
Delete the downloads folder.
Compatibility note:
PUT /api/server/cookie/{cookie}is still available but deprecated. UsePUT /api/server/cookiewith a request body instead.