All API HubAll API Hub
Homepage
Getting Started
Frequently Asked Questions
Changelog
  • 简体中文
  • English
  • 日本語
Homepage
Getting Started
Frequently Asked Questions
Changelog
  • 简体中文
  • English
  • 日本語
  • 🚀 Getting Started

    • Getting Started
    • Permission Management (Optional Permissions)
    • Safari Extension Installation Guide
    • Installation Guide for QQ / 360 and Other Browsers
  • 🔑 Accounts & Credentials

    • Account Management
    • API Credentials
    • Key Management
    • Bookmark Management
    • Sorting Priority Settings
  • 📊 Analytics & Dashboard

    • Balance History
    • Usage Analysis
    • Share Snapshot
    • Model List and Price Comparison
    • Automatic Refresh and Real-time Data
  • 🤖 Automation Helpers

    • Automatic Check-in and Check-in Monitoring
    • Redemption Assist
    • Web AI API Sniffing and Verification
    • Cloudflare Shield Bypass Assistant
  • 🔌 Ecosystem & Integrations

    • Supported Site List
    • LDOH Site Lookup
    • Supported Export Tools List
    • Quick Export Site Configuration
    • CLIProxyAPI Integration and One-Click Import
  • 🛠️ Admin Management

    • Managed Site Model Sync
    • Self-Hosted Site Management
    • Model Redirect
    • New API Security Verification
  • 🛡️ Data & Support

    • Data Import and Export
    • WebDAV Backup and Automatic Synchronization
    • All API Hub Privacy Policy
    • Troubleshooting Guide for Auto-Identification
    • Developer & Advanced Tools
    • Frequently Asked Questions
  • Changelog

Data Import and Export

Quickly back up/migrate accounts and preferences via JSON or WebDAV, supporting both local manual import/export and cloud synchronization modes.

Applicable Scenarios

  • Synchronize existing site accounts, keys, and sorting preferences on new devices.
  • Batch migration to test environments/team members.
  • Mutual import and export with other management tools (e.g., One API Hub old version).

Manual Import and Export

  1. Open the plugin → Import/Export page.
  2. In the "Local Backup" card:
    • Click "Export JSON", and the browser will automatically generate a file containing accounts/preferences.
    • Click "Import JSON" and select the file. The page will prompt success/failure upon completion.
  3. The JSON structure includes:
    • accounts: All site accounts, fields are the same as accountStorage.
    • pinnedAccountIds: Pinned account IDs.
    • last_updated: Unix timestamp, for easy determination of newness/oldness.
    • preferences: User preferences (language, sorting, auto-refresh, etc.).

Tip: Importing will overwrite current accounts and preferences. It is recommended to export a backup first.

WebDAV Synchronization

  • See WebDAV Backup and Automatic Synchronization for details.
  • Supports "Merge/Upload Only/Download Only" strategies, with automatic periodic synchronization.

Interoperability with Other Tools

  • One API Hub: Due to inheriting its data structure, JSON exported from the old version can be directly imported.
  • Third-party scripts: As long as they follow the same field naming, JSON can also be constructed and then imported.
  • CherryStudio / CC Switch: Please use Quick Export Site to directly push to the target platform, without the need for manual JSON editing.

Common Issues

IssueSolution
Import failedThe JSON structure might have been altered by an editor; it is recommended to use the original exported format. Consult console error messages if necessary.
Accounts lostCheck if accounts.length in the backup is 0; if accidentally overwritten, old files can be found in WebDAV or the system recycle bin.
Only want to restore preferencesYou can manually edit the JSON, keeping only the preferences field, and then import.
File contains old fieldsThe system will automatically execute migration scripts (e.g., WebDAV config migration); if it still fails, please provide feedback with the JSON structure.

Related Documentation

  • WebDAV Backup and Automatic Synchronization
  • Quick Export Site Configuration
  • Auto-refresh and Real-time Data
Last Updated: 11/23/25, 6:18 AM
Contributors: github-actions[bot], qixing-jk, anime
Next
WebDAV Backup and Automatic Synchronization