Skip to content
State Liens Search Check for liens
On this page
  1. Steps
  2. Errors to handle
  3. Spend reports only on confirmed debtors
  4. Example requests
  5. Sources reviewed

Getting started with the Statsnet REST API

Quick answer. Statsnet’s REST API lives at https://statsnet.co/api/v1 and speaks JSON. Free endpoints need no key; paid ones take an x-api-key header with a sk_live_ key. Start with a search, keep the internal ID, then call the profile or relations you need.

Steps

  1. Pick a plan

    There is no separate API plan. A key inherits the owner’s subscription.

  2. Create a key

    Up to 10 keys per account. Use one per system.

  3. Search

    POST /companies/search with a query and a jurisdiction filter.

  4. Read the profile

    Free meta profile, or the paid full profile for the file.

Errors to handle

Expect 200 for success, 401 for a missing or invalid key, 402 when the subscription is inactive, 403 when the endpoint is outside the plan, 404 when there is no such company and 429 when you hit a quota or rate limit. A lien batch should stop on 401, 402 and 403, retry later on 429, and log 404 as a name to re-check.

Take jurisdiction codes and field names from the OpenAPI 3.1 document, not from a sample response. Statsnet also publishes a Swagger UI and a machine-readable page at statsnet.co/api.md.

Spend reports only on confirmed debtors

Search and the meta profile cost nothing against the quota, so use them to settle which company you mean. Call the paid profile or relations only once the match is confirmed. Each paid company is one report, and calls for that same company over the next 14 days are free, so a debtor touched several times in one file is still counted once.

Example requests

Company search with fetch (Node 18+)
const res = await fetch("https://statsnet.co/api/v1/companies/search?limit=20", {
  method: "POST",
  headers: { "x-api-key": process.env.STATSNET_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({ query: "Debtor Name Inc", filters: { jurisdiction: [process.env.JURISDICTION] } }),
});
if (!res.ok) throw new Error(`Statsnet ${res.status}`);
console.log(await res.json());
Free JSON profile by internal ID
curl "https://statsnet.co/api/v1/companies/$ID/meta/beta"

Sources reviewed