Zabalist API · v1 · Quickstart
Trace a project from registration to permit
Make one request for a fictional project, read the dates on its two filings, then repeat the same lookup with a live project. You can do this on the Free plan.
Step 1
Get a free API key
Create a key from the API dashboard. The Free plan includes 500 calls a month at 10 requests per minute. Free live keys can search permits, projects and bids and inspect their records. Paid live keys add contractor matching, recorded-plat comparisons and change feeds. The quota is per account, shared by all of your live keys. The key is shown once — store it in a secret manager or an environment variable, and only ever call the API from a server.
Start with a test key
Choose Test key in the dashboard. It returns fictional records with meta.test_mode and X-Api-Test-Mode set to true. Each account can create 2 test keys and each key allows 20 requests per minute. Test reads use zero monthly calls.
export ZABALIST_API_KEY="zbl_test_..."Step 2
Look up the two filings
This example uses a fixed project ID that works with a test key. Send the key from your server using X-API-Key or Authorization: Bearer.
curl --fail-with-body --silent --show-error \
-H "X-API-Key: $ZABALIST_API_KEY" \
"https://www.zabalist.com/api/public/v1/projects/00000000-0000-4000-8000-000000000101"const response = await fetch("https://www.zabalist.com/api/public/v1/projects/00000000-0000-4000-8000-000000000101", {
headers: { "X-API-Key": process.env.ZABALIST_API_KEY },
});
if (!response.ok) throw new Error("Zabalist HTTP " + response.status);
const { data } = await response.json();
const pair = data.insight.registration_to_permit;
if (pair) {
console.log(pair.registration.reference, pair.permit.reference, pair.days_between);
} else {
console.log("Review the available filings", data.insight.permit_evidence);
}import json, os, urllib.request
request = urllib.request.Request(
"https://www.zabalist.com/api/public/v1/projects/00000000-0000-4000-8000-000000000101",
headers={"X-API-Key": os.environ["ZABALIST_API_KEY"],
"User-Agent": "Zabalist-Quickstart/1.0"},
)
with urllib.request.urlopen(request, timeout=15) as response:
data = json.load(response)["data"]
pair = data["insight"]["registration_to_permit"]
if pair:
print(pair["registration"]["reference"], pair["permit"]["reference"], pair["days_between"])
else:
print("Review the available filings", data["insight"]["permit_evidence"])Step 3
Decide what your application can say
The fictional response cites a January 10 registration and a January 15 issued permit. Your application can report five calendar days between those filings and retain both references. Construction start, approval time and completion each require separate evidence.
Read data.insight.registration_to_permit. A reported pair identifies one eligible registration at the filed Austin street and unit, dated within 365 days of the permit. When several registrations fit, show the available filings and leave the interval unknown. A bounded review describes only the filings examined.
Repeat with a live project
Set a live account key, run the search below, and replace the fictional ID in step 2 with a returned data[].id. An empty list means this query returned no matching records. Open the evidence on the detail response before acting on the result.
curl --fail-with-body -H "X-API-Key: $ZABALIST_API_KEY" "https://www.zabalist.com/api/public/v1/projects?county=Travis&limit=5"List responses include pagination in meta. Record details carry a single data.record and its evidence. Read meta.notes for filter and coverage qualifications. Use X-Request-Id when reporting a problem and GET /usage to inspect your account quota.
Step 4
Handle limits and errors
Errors are always { "error": { "code", "message", … } }. Branch on error.code. For a throttled request, check which limit was reached.
rate_limited— too many requests this minute. Wait theRetry-Afterseconds (60) and retry.quota_exceeded— the monthly quota is used up. Retry-After is the time until 00:00 UTC on the 1st, which can be weeks. Stop, alert, or upgrade viaerror.upgrade_url.
Owner spending caps and rate or resource limits have separate error codes. Review the response before retrying. The error reference lists every code.
const BASE = 'https://www.zabalist.com/api/public/v1';
class QuotaExceededError extends Error {}
async function zabalist(path, params = {}, attempts = 5) {
const url = `${BASE}${path}?${new URLSearchParams(params)}`;
// A successful Contractor Verify lookup can incur an overage. Retry only these feeds.
const retryableRead = ['/projects', '/permits', '/bids', '/signals', '/coverage'].includes(path);
for (let attempt = 0; attempt < attempts; attempt++) {
const res = await fetch(url, {
headers: { 'X-API-Key': process.env.ZABALIST_API_KEY },
redirect: 'error', signal: AbortSignal.timeout(30000),
});
if (res.ok) return res.json();
const body = await res.json().catch(() => null);
const { code = 'http_error', message = 'HTTP ' + res.status,
request_id = res.headers.get('X-Request-Id'), upgrade_url } = body?.error ?? {};
// Monthly quota: Retry-After is the seconds until 00:00 UTC on the 1st —
// possibly weeks. Never sleep on it. Stop and tell a human.
if (code === 'quota_exceeded') {
throw new QuotaExceededError(
`${message} Resets ${res.headers.get('X-Quota-Reset')}. Upgrade: ${upgrade_url}`
);
}
// Per-minute rate limit (Retry-After: 60) and transient 5xx: back off, retry.
if (retryableRead && attempt + 1 < attempts && (code === 'rate_limited' || res.status >= 500)) {
const retryAfter = Number(res.headers.get('Retry-After'));
const seconds = retryAfter > 0 ? retryAfter : Math.min(2 ** attempt, 60);
if (seconds > 60) throw new Error(`Try again in ${seconds} seconds (request_id ${request_id})`);
await new Promise((r) => setTimeout(r, seconds * 1000 + Math.random() * 250));
continue;
}
throw new Error(`${code}: ${message} (request_id ${request_id})`);
}
throw new Error(`Gave up on ${path} after ${attempts} attempts`);
}
const { data } = await zabalist('/permits', { zip: '78745' });import os, random, time, requests
BASE = "https://www.zabalist.com/api/public/v1"
session = requests.Session()
session.headers["X-API-Key"] = os.environ["ZABALIST_API_KEY"]
class QuotaExceeded(Exception):
pass
def zabalist(path, attempts=5, **params):
retryable_read = path in ("/projects", "/permits", "/bids", "/signals", "/coverage")
for attempt in range(attempts):
res = session.get(f"{BASE}{path}", params=params, timeout=30, allow_redirects=False)
if 200 <= res.status_code < 300:
return res.json()
try:
body = res.json()
except ValueError:
body = None
error = body.get("error") if isinstance(body, dict) else None
error = error if isinstance(error, dict) else {}
code = error.get("code", "http_error")
message = error.get("message", f"HTTP {res.status_code}")
request_id = error.get("request_id") or res.headers.get("X-Request-Id")
# Monthly quota: Retry-After is the seconds until the 1st (can be
# weeks). Never sleep on it — stop and alert.
if code == "quota_exceeded":
raise QuotaExceeded(
f"{message} Resets {res.headers.get('X-Quota-Reset')}. "
f"Upgrade: {error.get('upgrade_url')}"
)
# Per-minute rate limit (Retry-After: 60) and transient 5xx: back off.
if retryable_read and attempt + 1 < attempts and (code == "rate_limited" or res.status_code >= 500):
retry_after = res.headers.get("Retry-After", "")
seconds = int(retry_after) if retry_after.isdecimal() else min(2 ** attempt, 60)
if seconds > 60:
raise RuntimeError(f"Try again in {seconds} seconds (request_id {request_id})")
time.sleep(seconds + random.random() / 4)
continue
raise RuntimeError(f"{code}: {message} (request_id {request_id})")
raise RuntimeError(f"gave up on {path} after {attempts} attempts")
permits = zabalist("/permits", zip="78745")["data"]Step 5
Paginate
Ask for up to 100 rows per call with limit, then pass meta.next_cursor back as cursor until it comes back null. Pagination stops at offset 100,000; for bigger result sets, slice the query by date window or county and page each slice.
const params = new URLSearchParams({
county: 'Bexar', project_type: 'commercial', filed_after: '2026-01-01', limit: '100',
});
const rows = [];
let cursor = null;
do {
if (cursor) params.set('cursor', cursor);
const body = await fetch(`https://www.zabalist.com/api/public/v1/projects?${params}`, {
headers: { 'X-API-Key': process.env.ZABALIST_API_KEY },
}).then((r) => r.json());
if (body.error) throw new Error(body.error.code);
rows.push(...body.data);
cursor = body.meta.next_cursor;
} while (cursor);params = {"county": "Bexar", "project_type": "commercial", "filed_after": "2026-01-01", "limit": 100}
rows, cursor = [], None
while True:
if cursor:
params["cursor"] = cursor
body = requests.get(
"https://www.zabalist.com/api/public/v1/projects",
headers={"X-API-Key": os.environ["ZABALIST_API_KEY"]},
params=params, timeout=30,
).json()
if "error" in body:
raise RuntimeError(body["error"]["code"])
rows.extend(body["data"])
cursor = body["meta"]["next_cursor"]
if not cursor:
breakNext
Where to go from here
With a paid live key or a fictional test key, resolve a contractor with Contractor Verify and pass a reviewed match.entity.id to Contractor History. Generate a typed client, or import the API into Postman, from the OpenAPI 3.1 document (keyless; also at /openapi-schema.json).
npx @openapitools/openapi-generator-cli generate \
-i https://www.zabalist.com/api/public/v1/openapi.json \
-g typescript-fetch -o ./zabalist-clientUse the documented API paths
/api/v1/export and /api/v2/bulk are not product endpoints. They are scraper traps: never call them — a request to either blocks the calling IP.
Ready to build?
Free tier: 500 calls/month, no card required.