Skip to content
Documentation

API keys

How to create, use and revoke the keys your code signs requests with.

Create a key

  1. Open API keys in the panel.
  2. Click Create key and enter a name, for example the name of the application.
  3. Copy the key. It starts with ssk_ and is shown only once.

You can have up to 10 active keys in a team. Create a separate key for each application, so that you can revoke one without breaking the others.

Use a key

Send it in the Authorization header:

curl https://api.seoscraper.io/v1/tokens \
  -H "Authorization: Bearer ssk_YOUR_KEY"

A missing, mistyped or revoked key returns 401 with the code unauthorized.

What a key can do

A key belongs to its author and to one team:

  • it sees the results of that team only,
  • it has the current role of its author, so when the author becomes a viewer, the key can only read,
  • it uses the tokens of its author,
  • it stops working when the author leaves the team.

Keep it secret

Do not put a key in code that runs in a browser or in a public repository. Keep it on a server, in an environment variable.

SEOScraper stores only the SHA-256 hash of a key, so a lost key cannot be recovered. Create a new one and revoke the old one.

Revoke a key

Click Revoke next to the key. Applications that use it lose access at once. A revoked key cannot be restored.