Quickstart: from a permit name to a company profile
Quick answer. If a permit or contract gives a national identifier, resolve it with GET /companies/get_id/{jurisdiction}/{identifier}. Otherwise search by name. Read the public profile, then call relations with an x-api-key header. Public routes need no key; paid routes need an active subscription.
Steps
-
Get a key
Up to 10 per account; each inherits the owner’s subscription.
-
Resolve or search
Identifier lookup where available, otherwise POST /companies/search.
-
Confirm the entity
Read the public profile before paying for more.
-
Pull relations
Officers and owners for the permit file.
Quota and responses
One paid request per company is one report from the plan quota; the same company again within 14 days is free, so call the paid profile and relations together. Responses are 200, 401 (bad or missing key), 402 (inactive subscription), 403 (not on plan), 404 (not found) and 429 (quota or rate limit).
Statsnet publishes Python, JavaScript and Go SDKs, an OpenAPI 3.1 file and a Swagger UI. The Statsnet API documentation is the reference for parameters.
Example requests
curl "https://statsnet.co/api/v1/companies/get_id/kz/{identifier}" curl "https://statsnet.co/api/v1/companies/{id}/meta/beta" curl -H "x-api-key: sk_live_YOUR_KEY" "https://statsnet.co/api/v1/companies/{id}/paid"
curl -H "x-api-key: sk_live_YOUR_KEY" "https://statsnet.co/api/v1/companies/{id}/relations"