Quickstart: first Statsnet calls for a lien file
Quick answer. Read a public Markdown profile with no key, create a key on a Statsnet plan, search the business by name, then call the paid profile and relations endpoints on the internal ID. Each paid company counts once against the plan quota, and a repeat within 14 days is free.
Steps
-
Try a public profile
The Markdown endpoint needs no key. The documented example uses a Kazakhstan identifier.
-
Create a key
Keys look like sk_live_... and inherit the owner subscription. An account can hold up to 10.
-
Search by name
POST /companies/search with a query and a jurisdiction filter taken from the spec.
-
Fetch relations
GET /companies/{id}/relations lists shareholders, officers and affiliated companies.
Reading the response codes
Statsnet answers 401 when the key is missing or wrong, 402 when the subscription is inactive, 403 when the endpoint is not on the plan, 404 when the company is not found and 429 when a quota or rate limit is hit. Log the code with the request so a reviewer can tell a not-found from a billing problem.
Field names live in the OpenAPI 3.1 spec and the Swagger UI. Generate a client from the spec, or install the Statsnet Python, JavaScript or Go SDK, rather than guessing field names from a single response.
Example requests
curl "https://statsnet.co/api/v1/companies/kz/000740000728/md" curl -X POST "https://statsnet.co/api/v1/companies/search?limit=10" \
-H "x-api-key: $STATSNET_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "Example Holdings LLC", "filters": {"jurisdiction": ["$JURISDICTION"]}}' curl -H "x-api-key: $STATSNET_KEY" "https://statsnet.co/api/v1/companies/$ID/relations"