Skip to main content
This guide uses Node.js 20 or later. It reads every wishlist you own, then every wish of each list, and writes one JSON file.
For a one-time export, you do not need the API. Use Your Data in your Onio profile to download JSON or CSV.

1. Create a token

Create a token in your profile as described in the Quickstart. Store it in ONIO_TOKEN.

2. Write the script

Save this as backup.mjs:
backup.mjs

3. Run it

The script waits and retries when it reaches the rate limit.

What the backup contains

  • All wishlists you own, including private and archived ones.
  • All wishes of these lists, including private ones.
It does not contain lists of other people, followers, share links, or who is getting a wish.