Skip to content

How to Use a Software Heritage Web API Bearer Token

You can use a Software Heritage Web API bearer token for better performance and/or to access document successions that are not on GitHub.

You will need to get a bearer token from the Software Heritage Archive.

Set the SWHA_BEARER_TOKEN environment variable before running hidos. For example, at a shell command line, before running hidos, you can:

export SWHA_BEARER_TOKEN=eyJhbGciOiJIUzI1...NiIsInR5cCIgOiAiS

where eyJhbGciOiJIUzI1...NiIsInR5cCIgOiAiS is replaced with your bearer token.