Skip to content
Texas Lien Search Check for liens
On this page
  1. Steps
  2. Keys and plans
  3. Status codes
  4. Saving output for the report
  5. Example requests
  6. Sources reviewed

First Statsnet requests for a Texas lien file

Quick answer. Statsnet’s REST base is https://statsnet.co/api/v1. Public routes need no key; paid routes take an x-api-key header. Start by listing regions to find filter codes, then search, then read the Markdown card or the paid relations for the chosen company.

Steps

  1. Find filter codes

    Use the regions endpoint and the OpenAPI spec.

  2. Search the debtor

    Name plus jurisdiction filter; review hits by hand.

  3. Read the card

    The Markdown endpoint is public and free.

  4. Pull relations

    Paid; counts as one report per company.

Keys and plans

A key looks like sk_live_ followed by a token and inherits the subscription of the account owner. Accounts can hold up to 10 keys. Statsnet has no separate API plan, so the key works on whatever the subscription includes; check the Statsnet plans page.

Status codes

Handle 401 for a missing or bad key, 402 for an inactive subscription, 403 for an endpoint outside the plan, 404 for an unknown company and 429 for quota or rate limits. In a lien batch, a 404 on a debtor is a prompt to recheck the name, not a finding.

Saving output for the report

Pipe each response to a file named after the debtor and the date rather than only printing it. When the SOSPortal receipt and the county clerk printouts go into the lien report, the Statsnet JSON sits beside them and shows how each debtor name was chosen. A reviewer reading the report weeks later can then follow every search back to a dated source.

Example requests

Regions of a jurisdiction (public)
curl "https://statsnet.co/api/v1/companies/states/$JURISDICTION"
Search, keep names and IDs
curl -s -X POST "https://statsnet.co/api/v1/companies/search?limit=25" \
  -H "x-api-key: $STATSNET_KEY" -H "Content-Type: application/json" \
  -d '{"query": "Lone Star Fabrication", "filters": {"jurisdiction": ["'"$JURISDICTION"'"]}}' | jq .
Relations for the chosen company
curl -s -H "x-api-key: $STATSNET_KEY" \
  "https://statsnet.co/api/v1/companies/$ID/relations" | jq .

Sources reviewed