API
CA Property Lookup exposes a single server function you can call from any page in this app. External access is available through the public API endpoint described below.
Server function
Import and call lookupParcels from any client component:
import { useServerFn } from "@tanstack/react-start";
import { lookupParcels } from "@/lib/parcels.functions";
const search = useServerFn(lookupParcels);
const result = await search({ data: { query: "123 Main St, Los Angeles" } });
console.log(result.parcels); // array of Parcel records
console.log(result.error); // error message, if anyPublic endpoint
A public POST endpoint is available at /api/public/lookup for external integrations. It accepts a JSON body with a query string and returns owner records in the same shape.
curl -X POST https://your-domain.com/api/public/lookup \
-H "Content-Type: application/json" \
-d '{"query": "123 Main St, Los Angeles"}'Response shape
{
"parcels": [
{
"id": "string",
"address": "string",
"owner": "string",
"ownerAddress": "string",
"parcelId": "string",
"propertyType": "string",
"sqft": 0,
"yearBuilt": "string",
"salePrice": "string",
"saleDate": "string",
"lat": 0,
"lng": 0
}
],
"error": "string | null"
}Usage limits
Public API usage is limited by the connected data provider plan. Heavy usage or commercial redistribution should contact the provider directly for a dedicated agreement.