Foxel
Menu
On this page

PikPak

Connect a PikPak account with automatic login and token refresh, file reads/writes, and directory management.

Adapter type: pikpak. See Common configuration for mounting instructions.

Setup

  1. Set a usable account password and verify login in the official client.
  2. Start with username, password, and the default platform: android. Normal setup does not require manual tokens, CAPTCHA tokens, or a device ID.
  3. Leave root_id empty for the drive root, or obtain a subfolder ID from an official web directory request.
  4. Resolve login verification in the official client first. Supply matching platform/device tokens only when needed for troubleshooting.

Configuration

FieldTypeRequiredDefaultDescription
usernamestringYes—Remote account username.
passwordpasswordYes—Remote account password.
platformselectNo"android"Client platform: android, web, or pc.
refresh_tokenpasswordNo—PikPak login refresh token, normally maintained automatically; manual values must match the account and platform.
access_tokenpasswordNo—Optional access token, normally maintained automatically; it does not replace the required username and password.
expires_atnumberNo—Access token expiry as Unix seconds; normally maintained automatically.
captcha_tokenpasswordNo—Verification token matching the account/device; normally maintained automatically.
device_idstringNo—Device ID; generated if blank. Avoid changing it unnecessarily.
root_idstringNo""Root folder ID; an empty string means the drive root.
disable_media_linkbooleanNotrueDisable media transcoding links to prefer originals.
enable_direct_download_307booleanNofalseAllow HTTP 307 redirects to an upstream download URL; the client must be able to reach it.

Example

This is a config object. In the admin form, fill the corresponding fields rather than pasting the whole object. Replace credential placeholders with your own values.

json
{
  "username": "YOUR_ACCOUNT",
  "password": "YOUR_PASSWORD",
  "platform": "android",
  "root_id": "",
  "disable_media_link": true,
  "enable_direct_download_307": false
}

Behavior and limitations

  • Username and password remain required even when tokens are supplied.
  • Platforms are android, web, and pc; do not mix temporary credentials from different platforms or devices.
  • Login tokens, expiry, and device details are saved back to configuration; avoid overwriting them manually.
  • Media transcoding links are disabled by default to prefer originals. Redirect downloads require client access to the upstream URL.

Troubleshooting

  • CAPTCHA / verification: complete official verification and check platform/device consistency.
  • Invalid token: check account ownership of supplied tokens; clear manually entered tokens and log in again if needed.
  • Unexpected video quality: keep disable_media_link: true and check that an original download URL exists.

References

External documentation provides service and authorization context. Use this page and the current Foxel adapter for configuration fields and limitations.