Default Behaviour
By default,Scanner connects to the SCANOSS OSS Knowledge Base API at
https://api.osskb.org without requiring any authentication.
Using an API Key
Whencfg.API_KEY is set and cfg.API_URL has not been explicitly configured,
the SDK automatically switches to the SCANOSS authenticated (Premium) endpoint.
Assign your key to the API_KEY property on a ScannerCfg instance:
Note: Omitcfg.API_URLwhen using this configuration. IfAPI_URLis set explicitly, it takes precedence over the automatic endpoint selection described below.
Using a Custom API URL
To direct the SDK to a different endpoint, assign the target URL to theAPI_URL property on a ScannerCfg instance:
Using an API Key with a Custom URL
API_KEY and API_URL can be set together. When API_URL is explicitly
assigned to any value other than the default or authenticated endpoint URLs,
it takes precedence — the custom URL is always used regardless of whether an
API key is present. The API key is still sent in the request headers.