API docs

Permits (US)

Get permits issued to a US company.

Returns building, trade and operating permits matched by the company's legal name. row carries the source permit fields (type, address, status). Non-US companies return an empty list.

Endpoint

GET /api/v1/companies/:company_id/permits

Find the company_id with Search (POST /api/v1/companies/search with "filters": {"jurisdiction": ["us-de"]}) or resolve a state entity number with GET /api/v1/companies/get_id/:jurisdiction/:identifier (e.g. us-de, 5600000).

Parameters

ParameterTypeInDescription
company_idintegerpathNumeric Statsnet id of a US company (from search or get_id).
pageintegerqueryPage number (default: 1).
limitintegerqueryRecords per page (default: 100).

Code Examples

Get permits

curl "https://statsnet.co/api/v1/companies/10000913141092/permits" \
  -H "x-api-key: sk_live_YOUR_KEY"

Response

Success response

{
  "records": [
    {
      "category": "permits",
      "state": "TX",
      "number": "BP-2023-018842",
      "date": "2023-09-05",
      "name": "ACME HOLDINGS LLC",
      "row": {
        "permit_type": "Commercial Remodel",
        "status": "Issued"
      }
    }
  ],
  "total": 1
}

Error Handling

Error response

{
  "status": 403,
  "message": "access denied"
}

This endpoint can also return {"status": 402, "message": "payment required"} when the subscription is canceled or expired, and {"status": 429, "message": "quota exhausted"} when the plan’s report quota for the current period is used up.