Getting started with the Statsnet API for lien lookups
Quick answer. Point requests at https://statsnet.co/api/v1, send JSON, and authenticate paid calls with an x-api-key header carrying an sk_live_ key. Public routes such as the Markdown card and the ID resolver work without a key under a rate limit. Search and the paid routes need a key on an active plan.
Steps
-
Open the reference
Read statsnet.co/api.md or the Swagger UI before writing code.
-
Issue a key
Up to 10 keys per account; each one inherits the owner’s subscription.
-
Search the debtor
POST the business name and store the internal ID of the confirmed match.
-
Hand off to the state
Show the user the legal name and a link to the right UCC office.
Handling errors in a lookup UI
Map Statsnet’s codes to messages a user understands. 401 means the key is missing or invalid; 402 means the subscription is inactive; 403 means the endpoint is not on the plan; 404 means no match; 429 means a quota or rate limit was reached. A 404 should read “no company matched this name in Statsnet”, never “no liens found” — the two questions are answered by different systems.
Billing behaviour
Every paid request against a new company consumes one report from the Statsnet plan quota, and repeats for that company within 14 days cost nothing. Cache the internal ID and the call date so a user who comes back the next day does not trigger a fresh lookup by name. Details sit on the API page.
Example requests
curl -X POST "https://statsnet.co/api/v1/companies/search?limit=5" \
-H "x-api-key: $STATSNET_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "Northgate Fabrication"}' curl "https://statsnet.co/api/v1/companies/{id}/meta/beta" pip install statsnet-python-sdk
# JavaScript: github.com/statsnet/js-sdk
# Go: github.com/statsnet/gosdk