Skip to main content

Default Behaviour

By default, scanoss.New connects to https://api.scanoss.com (scanoss.DefaultAPIURL) without authentication. The public endpoint rejects keyless requests; a custom endpoint, an on-prem deployment for example, may allow them.

Using an API Key

Pass it as APIKey on Config. You can obtain an API key from your SCANOSS account dashboard.

Using a Custom API Endpoint

Set APIURL to direct the SDK at a different endpoint, such as an on-prem deployment:

Proxy and Custom CA

An unreadable CA file or a schemeless proxy fails at scanoss.New(...), not on the first request, so a misconfiguration surfaces immediately rather than mid-scan.
See Usage for the remaining Config fields, request timeout, retry behaviour, and decoration chunk/worker tuning.