Statsnet sample requests for lien search preparation
Quick answer. The Statsnet REST API lives at https://statsnet.co/api/v1 and returns JSON. Authenticate search and paid calls with x-api-key: sk_live_…; public routes need no key. The samples below search a name, read a public Markdown card, list relations and request a bulk export.
Steps
-
Browse the spec
Swagger UI and openapi.json list every parameter.
-
Run a broad search
Leave filters off first to see same-name companies in other jurisdictions.
-
Narrow and confirm
Add the jurisdiction filter and confirm on the state register.
-
Pull relations
Add affiliates and prior names to the search plan.
Responses to expect
Statsnet answers 200 on success, 401 for a missing or invalid key, 402 for an inactive subscription, 403 for an endpoint outside the plan, 404 for no match and 429 for quota or rate limiting. A 404 on search says nothing about liens; it only means Statsnet did not match that string.
Why run the first search without filters? Because a name that looks unique in one state often has twins elsewhere, and those twins are exactly the companies a careless lien search confuses with the debtor. Seeing them early lets you decide whether a variant will pull in filings that belong to someone else, and lets the report explain why certain names were left out.
SDKs and accounting
Install the Python SDK with pip install statsnet-python-sdk; JavaScript and Go SDKs are at github.com/statsnet/js-sdk and github.com/statsnet/gosdk. Each paid request on a new company counts as one report from the plan, with repeats on that company free for 14 days. The export body format is documented in the Statsnet API reference.
Example requests
curl -X POST "https://statsnet.co/api/v1/companies/search?limit=25" \
-H "x-api-key: sk_live_YOUR_KEY" -H "Content-Type: application/json" \
-d '{"query": "Pinecrest Mechanical", "filters": {"jurisdiction": ["<code from openapi.json>"]}}' curl "https://statsnet.co/api/v1/companies/kz/000740000728/md" curl -H "x-api-key: sk_live_YOUR_KEY" "https://statsnet.co/api/v1/companies/{id}/relations" curl -X POST "https://statsnet.co/api/v1/export" -H "x-api-key: sk_live_YOUR_KEY" -H "Content-Type: application/json" -d @filters.json