First requests against the Statsnet API
Quick answer. Start with a public call that needs no key, then create a key (sk_live_...) and send it as x-api-key to https://statsnet.co/api/v1. Search, pin the internal ID, and pull /relations for the names your sanctions step needs. For a typed client, generate one from the OpenAPI 3.1 spec or install an official SDK.
Steps
-
Test public calls
Exercise the Markdown and get_id endpoints until resolution is reliable.
-
Create a key per environment
Use separate keys for staging, production and agents.
-
Handle status codes
Branch on 401, 402, 403, 404 and 429 rather than retrying blindly.
Before the first paid call
Public endpoints on Statsnet are rate limited but draw no quota, so build and test resolution logic against them first: the Markdown profile, the internal-ID lookup by national identifier, and the regions list. An account can hold up to 10 keys, which makes it easy to give staging, production and an agent each their own key. Every key inherits the owner’s subscription.
Paid endpoints such as /paid, /relations and /contacts each count as one report per company. Repeat requests for the same company within 14 days are free, so a pipeline that retries or re-reads a profile during review does not burn extra quota.
Typed clients
The spec lives at https://statsnet.co/api/v1/openapi.json, with a Swagger UI beside it. Teams on TypeScript can install the JavaScript SDK from github.com/statsnet/js-sdk, Go services can use github.com/statsnet/gosdk, and Python jobs can pip install statsnet-python-sdk. Read field names from the spec, not from an example response.
Example requests
curl "https://statsnet.co/api/v1/companies/kz/000740000728/md" curl "https://statsnet.co/api/v1/companies/get_id/uz/{identifier}" curl -X POST "https://statsnet.co/api/v1/companies/search?limit=10" \
-H "x-api-key: sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "Northwind Trading", "filters": {"jurisdiction": ["kz"]}}' curl "https://statsnet.co/api/v1/companies/{id}/relations" \
-H "x-api-key: sk_live_YOUR_KEY"