My API key is not working / Error: Not authorized (401)

Check in order:

  1. Header must be exactly Authorization: Bearer YOUR_API_KEY — no quotes around the key.

  2. Confirm your subscription is active at lunarcrush.com/settings.

  3. Re-copy the key via a plain text editor to strip invisible characters.

  4. The key is case-sensitive.

If none of these work, regenerate a new key at lunarcrush.com/developers/api/authentication.

Helpful links