Skip to main content
The Orbscan Open API uses Bearer token authentication. Every request you send must include an Authorization header with your API key. Requests that omit the header, or that supply an invalid key, are rejected immediately with a 401 response — no data is returned.

Getting an API Key

Request an API key by completing the sign-up form on the Orbscan website. Once your key is issued, copy it to a secure location — you will not be able to view it again in full after the initial generation.

The Authorization Header

Add the following header to every request, replacing YOUR_API_KEY with your actual key:

Code Examples

Use the examples below to make your first authenticated request in your preferred language.
A successful, authenticated response looks like this:

Security Best Practices

Treat your API key as a secret credential. Follow these practices to keep it safe:
  • Store it in an environment variable. Load your key from process.env.ORBSCAN_API_KEY (Node.js) or os.environ["ORBSCAN_API_KEY"] (Python) rather than hard-coding it.
  • Never commit it to source control. Add any .env files that contain secrets to .gitignore before your first commit.
  • Never expose it in client-side code. Browser JavaScript, mobile apps, and any other code that runs on end-user devices can be inspected — keep your key on the server side only.
  • Rotate it immediately if leaked. Request a replacement key via the sign-up form as soon as you suspect a key has been exposed.

What Happens Without a Valid Key

If you omit the Authorization header or supply an incorrect key, the API returns a 401 response with the standard error envelope:
Check the code field programmatically to detect authentication failures in your error-handling logic. See Errors for the full list of error codes and how to handle them.