Developer quickstart for California entity lookups
Quick answer. Read the endpoint list at netstate.co/v1, pull the Markdown API reference, then create a free key and call GET /v1/search. AI clients can connect to the MCP server at netstate.co/mcp with a one-line config. GET /v1/meta, the taxonomy, needs no key.
Steps
-
Pull the reference
Fetch api.md with Accept: text/markdown and keep it beside your code.
-
Check routes
netstate.co/v1 returns the JSON discovery document.
-
Create a key
Free for company search. Store it server-side.
-
Search and pin
Search the legal name, pick the California profile, save the entity number as a string.
Schema notes for California
Use a text column for the entity number. Give status its own columns for the Secretary of State label and the Franchise Tax Board label, rather than a single boolean. Keep officers in a child table with the Statement of Information year. Store the Netstate source citation and the call timestamp on every row.
Exact field names are in the API reference. Because responses mirror Netstate’s public profile page, you can open any California company on netstate.co to preview the JSON.
Paid calls
SoS filings ($0.01) and Liens ($0.03) are billed per request and included in the Pro plan. Keys can be revoked instantly from the Netstate dashboard.
When a California company is missing
If bizfile shows an entity that your Netstate search does not, check three things before filing a bug: the letter prefix on the number, the entity type filter, and the formation date. A company formed in the last few days may simply not have reached Netstate yet, since each register is read on its own schedule.
Example requests
curl -H "Accept: text/markdown" https://netstate.co/api.md -o netstate-api.md curl https://netstate.co/v1 | jq . {
"mcpServers": {
"netstate-registry": { "url": "https://netstate.co/mcp" }
}
}