Skip to content
Building Permit Records Look up a permit
On this page
  1. Steps
  2. Quota and responses
  3. Example requests
  4. Sources reviewed

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

  1. Get a key

    Up to 10 per account; each inherits the owner’s subscription.

  2. Resolve or search

    Identifier lookup where available, otherwise POST /companies/search.

  3. Confirm the entity

    Read the public profile before paying for more.

  4. 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

Resolve an identifier to an internal ID (no key)
curl "https://statsnet.co/api/v1/companies/get_id/kz/{identifier}"
Public JSON profile (no key)
curl "https://statsnet.co/api/v1/companies/{id}/meta/beta"
Full profile and relations (key)
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"

Sources reviewed