API v1.0.0
Hagbard API
New businesses before they open, in the states of your plan, as JSON. Use it from n8n, Zapier (beta) or your own code. Included in every paid plan (One state, Whole US, Lifetime codes); the free plan has no API.
Authentication
The account owner creates a key in Settings → API (up to 5 keys). We show a key once; keep it in your tool's secret store. Send it with every request as Authorization: Bearer hgb_live_… or as X-API-Key: hgb_live_…. Base URL: https://app.hagbard.studio/api/v1
export HAGBARD_KEY=hgb_live_… curl "https://app.hagbard.studio/api/v1/me" -H "Authorization: Bearer $HAGBARD_KEY"
Limits
Per key. Days count in UTC. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Daily-Remaining.
| Plan | Per minute | Per day |
|---|---|---|
| 1 seat | 60 | 10,000 |
| 2+ seats | 120 | 50,000 |
| Lifetime | 30 | 2,000 |
When data updates
We add new businesses and stage changes once a day, in our daily run around 11:00 UTC. Polling more often than every hour gives you nothing new. The polling trigger and REST hooks follow the same rhythm: hooks fire right after the daily run, and the trigger shows the new items from then on.
Endpoints
GET/me
Your account, plan, counties and unlocks.
curl "https://app.hagbard.studio/api/v1/me" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 403, 429
GET/counties
Counties in your plan.
curl "https://app.hagbard.studio/api/v1/counties" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 403, 429
GET/types
Business types.
curl "https://app.hagbard.studio/api/v1/types" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 403, 429
GET/triggers/rule-matched
Polling trigger: new matches of your Smart Triggers, newest first (rule.matched payload + event_at).
| rule | query · string | |
| since | query · string | |
| limit | query · integer |
curl "https://app.hagbard.studio/api/v1/triggers/rule-matched" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 403, 429
GET/rules
Your Smart Triggers (id, name, trigger, enabled), for the rule.matched hook.
curl "https://app.hagbard.studio/api/v1/rules" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 403, 429
GET/feed.csv
The same businesses as CSV for Google Sheets: =IMPORTDATA("https://app.hagbard.studio/api/v1/feed.csv?key=YOUR_KEY").
| key | query · string | Your API key (only this endpoint accepts it in the URL) |
| county | query · string | |
| since | query · string | |
| type | query · string | |
| stage | query · permit | registered | open | |
| liquor | query · filed | issued | any | |
| min_signals | query · integer ≤ 5 |
curl "https://app.hagbard.studio/api/v1/feed.csv" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 403, 429
GET/businesses
List businesses, newest stage first.
| county | query · string | Slug or FIPS; repeat or comma-separate. Default: all your counties |
| since | query · string | Only businesses first seen on or after this date |
| type | query · string | |
| stage | query · permit | registered | open | |
| liquor | query · filed | issued | any | Only businesses with a liquor licence on file; comma-separate filed,issued |
| min_signals | query · integer ≤ 5 | Only businesses with at least this many signals on file |
| cursor | query · string | next_cursor from the previous page |
| limit | query · integer ≤ 100 |
curl "https://app.hagbard.studio/api/v1/businesses?county=travis&stage=permit&limit=50" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 403, 429
GET/businesses/{id}
One business.
| id * | path · string |
curl "https://app.hagbard.studio/api/v1/businesses/BUSINESS_ID" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 403, 404, 429
POST/businesses/{id}/reveal-phone
Look up the phone of one business on request (Google Maps). A recent result costs nothing; otherwise one lookup from your daily budget (200 a day, 500 with 2+ seats; resets 00:00 UTC). Lifetime: unlock first..
| id * | path · string |
curl -X POST "https://app.hagbard.studio/api/v1/businesses/BUSINESS_ID/reveal-phone" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 402, 403, 404, 429, 503
POST/businesses/{id}/unlock
Lifetime plans: unlock one business (spends one unlock; already unlocked costs nothing).
| id * | path · string |
curl -X POST "https://app.hagbard.studio/api/v1/businesses/BUSINESS_ID/unlock" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 402, 403, 404, 429
GET/businesses/lookup
Find by name and city (up to 5, with score).
name needs at least one word of 2 or more letters or digits, city at least 2 characters; otherwise 400. Matching is plain text: * % _ , ( ) are removed, there are no wildcards.
| name * | query · string | |
| city * | query · string |
curl "https://app.hagbard.studio/api/v1/businesses/lookup?name=Taqueria%20Garcia&city=Austin" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 403, 429
GET/triggers/new-businesses
Polling trigger: new businesses and stage changes, newest first (id = business:stage).
| since | query · string | |
| limit | query · integer ≤ 100 | |
| include | query · updated | updated = also entry.updated (phone, website or Google found; never the phone number) |
curl "https://app.hagbard.studio/api/v1/triggers/new-businesses?since=2026-11-20T00:00:00Z" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 403, 429
POST/hooks
Subscribe a REST hook (signed POST with each new business or stage change, after the daily run).
| url * | body · string | |
| event | body · entry.created | entry.stage_changed | rule.matched | any | entry.updated | Default: any |
| county | body · string | FIPS code of one county in your plan |
| type | body · string | |
| rule | body · string |
curl -X POST https://app.hagbard.studio/api/v1/hooks \
-H "Authorization: Bearer $HAGBARD_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://hooks.zapier.com/hooks/catch/…","event":"entry.created"}'Responses: 201, 400, 401, 403, 409, 429
DELETE/hooks/{id}
Unsubscribe a REST hook.
| id * | path · string |
curl -X DELETE "https://app.hagbard.studio/api/v1/hooks/HOOK_ID" \ -H "Authorization: Bearer $HAGBARD_KEY"
Responses: 200, 400, 401, 403, 404, 429
The business record
What /businesses, /businesses/{id}, the trigger and hooks return. Lists come newest stage first; pass next_cursor as cursor for the next page. Upcoming businesses are always included. Businesses that already opened stay for 30 days after opening with 1 seat (and on Lifetime), 12 months with 2+ seats; that holds for the list, single fetches and lookups. Owners appear only when the owner is a company. On Lifetime, fact and owner_company stay empty until you unlock the business with POST /businesses/{id}/unlock.
| id | string | |
| name | string or null | |
| business_type | string | |
| stage | permit | registered | open | |
| stage_label | string | |
| stage_since | string or null | |
| first_seen | string | |
| planned_opening | string or null | |
| address | string | |
| city | string or null | |
| zip | string or null | |
| county | string or null | |
| county_fips | string | |
| state | string or null | |
| lat | number or null | |
| lon | number or null | |
| chain | boolean | |
| liquor | filed | issued | | Liquor licence on file: filed (applied) or issued; null if none |
| signals | integer | Distinct signals on file: registration, liquor licence, health permit, building/trade permit, Google listing |
| fact | string or null | One fact from public records; null while locked (lifetime) |
| owner_company | string or null | Owner, only when it is a company; null while locked (lifetime) |
| locked | boolean | Lifetime plans: true until unlocked with POST /businesses/{id}/unlock |
| phone | string or null | Phone on request: set when anyone looked it up in the last 30 days; otherwise null (see phone_status) |
| website | string or null | Website from the same Google Maps lookup as phone |
| phone_status | found | not_listed | on_request | found: phone/website set; not_listed: no Google Maps listing (checked in the last 7 days); on_request: POST /businesses/{id}/reveal-phone |
| license_estimate_from | string or null | Texas only: start of the estimated liquor license issue date window (the earliest day it can sell alcohol). Not an opening date. null when there is no reliable estimate |
| license_estimate_to | string or null | End of the estimated liquor license issue date window |
| license_estimate_confidence | low | medium | high | | medium: from a liquor license application (usually 2–5 weeks). low: from a sales-tax registration (6–15 weeks, right about 6 in 10 times) |
| license_estimate_basis | string or null | One sentence on what the estimate is based on |
| url | string or null | The business on app.hagbard.studio |
Example: GET /businesses
{
"data": [
{
"id": "6f1c…",
"name": "Taqueria Garcia",
"business_type": "Restaurant",
"stage": "permit",
"stage_label": "Being built",
"stage_since": "2026-11-18",
"first_seen": "2026-11-18",
"planned_opening": null,
"address": "1200 E 6th St",
"city": "Austin",
"zip": "78702",
"county": "Travis County",
"county_fips": "48453",
"state": "TX",
"lat": 30.2651,
"lon": -97.7275,
"chain": false,
"fact": "…",
"owner_company": "Garcia Foods LLC",
"locked": false,
"url": "https://app.hagbard.studio/c/travis?e=6f1c…"
}
],
"next_cursor": "eyJzIjoi…"
}Triggers and hooks (Zapier, n8n)
- Polling:
GET /triggers/new-businessesreturns new businesses and stage changes, newest first, up to 100. Each item'sidisbusiness:stage, so your tool can skip what it has seen. It never spends Lifetime unlocks. Add?include=updatedto also getentry.updatedwhen a business gets a phone number, a website or a Google listing. The item carrieschange; a phone change saysphone_available: true, never the number. - REST hooks:
POST /hookswith a https URL gives you anidand asecret. After each daily run (around 11:00 UTC) we POST every new business or stage change to that URL, once per business and stage. Up to 20 hooks per account; a hook turns off after 20 failed deliveries in a row, and when its key is revoked.DELETE /hooks/{id}removes it. - Smart Triggers:
{"event":"rule.matched"}sends every new match of your Smart Triggers, once per match, with the trigger's name, the business and what changed. Add"rule":"<id>"(fromGET /rules) for one trigger only. - Make: add a Webhooks → Custom webhook module and copy its address. Subscribe it once with
POST /hooks {"url":"<Make address>","event":"rule.matched"}(curl, or an HTTP → Make a request module run once). Run the scenario once with a sample so Make learns the fields, then add your modules, for example Slack, Google Sheets or your CRM. To stop,DELETE /hooks/{id}. - Signature: each delivery has the header
Hagbard-Signature: t=<unix seconds>,v1=<hex>, an HMAC-SHA256 of<t>.<raw body>with the hook's secret.
{
"id": "6f1c…:permit",
"type": "entry.created",
"created": "2026-11-21T11:04:12Z",
"business": { …the business record… }
}Errors
Errors come as {"error":{"code":"…","message":"…"}}.
| 400 | bad_request | A parameter is wrong; the message says which. |
| 401 | unauthorized | No key, a malformed key, or a revoked key. |
| 402 | no_unlocks | Lifetime: no unlocks left for POST /businesses/{id}/unlock. |
| 403 | plan / county | Your plan has no API access, or the county is not in your plan. |
| 404 | not_found | No such business or hook in your counties. |
| 409 | too_many | More than 20 hooks on the account. |
| 429 | rate_limited | Over the per-minute or daily limit. Wait for Retry-After seconds. |
| 503 | unavailable | We could not check your limit. Retry after 30 seconds. |
Questions or a field you need? Write to ben@hagbard.studio.