How to import data via Coinbase Exchange API key?

Create a read-only key on Coinbase and connect it in a couple of minutes

Coinbase retired its old API keys on 5 February 2025. Any key made before then stopped working, and the screens described in older guides no longer exist. Keys now come from the Coinbase Developer Platform, and there is one setting on that screen that decides whether the key works at all.

There are two ways in. Connecting directly is quicker and involves no keys, so start there.

Connect directly, no keys needed

In Moonscape choose Add a source, pick Coinbase, and click Connect with Coinbase. You sign in on Coinbase's own site, approve read access, and you are done. Nothing to copy, nothing to store, and you can revoke it from Coinbase at any time.

Use an API key instead if you would rather not sign in through a browser, or if you are connecting an account you do not hold the login for.

Create an API key on Coinbase

  1. Go to the Coinbase Developer Platform and sign in with your Coinbase account.
  2. Under the API Keys tab, select Secret API Keys.
  3. Click Create API key and give it a nickname.
  4. Expand API restrictions and set the permissions to read only. Leave trade and transfer permissions off.
  5. Expand Advanced Settings and change the signature algorithm to ECDSA.
  6. Leave the IP allowlist empty.
  7. Click Create API key, then Download API key to save the file.

ECDSA, not Ed25519. This is the one that catches people. Coinbase offers both, but Ed25519 does not work with the API we read your history through, and a key made that way fails every time with no useful error. If you already made one, delete it and create another with ECDSA.

The private key is shown once. Download it before you leave the page. If you lose it you have to delete the key and create another.

Connect it in Moonscape

Your key comes as two parts. The key name looks like organizations/1a2b3c/apiKeys/4d5e6f, and the private key is a block of text beginning -----BEGIN EC PRIVATE KEY-----.

  1. Open the Moonscape web app and go to Settings.
  2. Under Exchange connections, click Connect exchange.
  3. Choose Coinbase from the list.
  4. Paste the key name into the API key field.
  5. Paste the private key into the Secret field, including the -----BEGIN and -----END lines.
  6. Click Add.

Paste the private key whole. Line breaks are part of it. If you strip them out or paste only the middle section, the key will not authenticate.

Your transactions sync from here on, for both portfolio tracking and tax.

If something is missing

If your Coinbase connection stopped working and you set it up before February 2025, the key itself has expired. Create a new one with the steps above, or connect directly instead.

If transactions are not appearing correctly, email us and we will get them into the import. Every report shapes what we build next.

Start with a free diagnostic scan.

Show us the mess — redacted is fine. You get back how many transactions we found, how many missing cost bases, how many unmatched transfers, and how many tax years are affected. Yours to keep either way.

Get my free scanAbout two business days · fixed quote from £499
Read nextImporting · 3
25 Aug 2026
How to import your Robinhood history
Robinhood exports crypto, shares and your wallet as three different files. Here is which one you need.
3 min
07 Dec 2024
Moonscape CSV Format Guide
Learn about the Moonscape CSV format structure, column definitions, and how to use our standardized format for crypto trading data across exchanges
3 min
25 Feb 2024
How to import data via Binance Exchange API key?
Create a read-only key on Binance and connect it in a couple of minutes
1 min