Skip to content
California Lien Search Check for liens
On this page
  1. Steps
  2. Status codes worth catching
  3. Why a reviewer picks the ID
  4. Example requests
  5. Sources reviewed

Quickstart for a California lien file

Quick answer. With a Statsnet key in hand, three requests cover a typical California debtor: a name search, a free meta profile to confirm the match, and a paid relations call. The Python SDK installs with pip install statsnet-python-sdk; the example below uses plain HTTP so the endpoints stay visible.

Steps

  1. Set the key

    Export STATSNET_KEY. Keys start sk_live_ and inherit your plan.

  2. Search and choose

    Pick the hit that matches the bizfile record.

  3. Confirm for free

    Read the meta profile before spending a report.

  4. Pull relations

    One report for the company; repeats within 14 days are free.

Status codes worth catching

A 401 means the key is missing or invalid; 402 means the subscription lapsed; 403 means relations is not on your plan; 404 means no company at that ID; 429 means a rate or quota limit. Stop the batch on the first three and retry 429 later.

Jurisdiction codes and response fields are defined in the OpenAPI 3.1 file. Statsnet also publishes Swagger and SDKs for JavaScript and Go.

Why a reviewer picks the ID

Name search can return several California-registered companies with near-identical names, especially in construction and property holding. The script above leaves the choice of internal ID to a person who has the bizfile record open. Automating that choice is where wrong-debtor lien searches start.

Once the ID is chosen, store it next to the bizfile entity number in your file. Every later Statsnet call, and every recorder or Secretary of State search, can then be traced back to that one confirmed match.

Example requests

Python with requests
import os, requests

API = "https://statsnet.co/api/v1"
H = {"x-api-key": os.environ["STATSNET_KEY"]}

hits = requests.post(f"{API}/companies/search", params={"limit": 10}, headers=H,
    json={"query": "Golden State Builders LLC", "filters": {"jurisdiction": [os.environ["JURISDICTION"]]}}).json()
company_id = os.environ["CHOSEN_ID"]  # picked by a reviewer from hits
meta = requests.get(f"{API}/companies/{company_id}/meta/beta").json()
relations = requests.get(f"{API}/companies/{company_id}/relations", headers=H)
relations.raise_for_status()

Sources reviewed