Hagbard

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.

PlanPer minutePer day
1 seat6010,000
2+ seats12050,000
Lifetime302,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).

rulequery · string
sincequery · string
limitquery · 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").

keyquery · stringYour API key (only this endpoint accepts it in the URL)
countyquery · string
sincequery · string
typequery · string
stagequery · permit | registered | open
liquorquery · filed | issued | any
min_signalsquery · 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.

countyquery · stringSlug or FIPS; repeat or comma-separate. Default: all your counties
sincequery · stringOnly businesses first seen on or after this date
typequery · string
stagequery · permit | registered | open
liquorquery · filed | issued | anyOnly businesses with a liquor licence on file; comma-separate filed,issued
min_signalsquery · integer ≤ 5Only businesses with at least this many signals on file
cursorquery · stringnext_cursor from the previous page
limitquery · 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).

sincequery · string
limitquery · integer ≤ 100
includequery · updatedupdated = 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
eventbody · entry.created | entry.stage_changed | rule.matched | any | entry.updatedDefault: any
countybody · stringFIPS code of one county in your plan
typebody · string
rulebody · 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.

idstring
namestring or null
business_typestring
stagepermit | registered | open
stage_labelstring
stage_sincestring or null
first_seenstring
planned_openingstring or null
addressstring
citystring or null
zipstring or null
countystring or null
county_fipsstring
statestring or null
latnumber or null
lonnumber or null
chainboolean
liquorfiled | issued | Liquor licence on file: filed (applied) or issued; null if none
signalsintegerDistinct signals on file: registration, liquor licence, health permit, building/trade permit, Google listing
factstring or nullOne fact from public records; null while locked (lifetime)
owner_companystring or nullOwner, only when it is a company; null while locked (lifetime)
lockedbooleanLifetime plans: true until unlocked with POST /businesses/{id}/unlock
phonestring or nullPhone on request: set when anyone looked it up in the last 30 days; otherwise null (see phone_status)
websitestring or nullWebsite from the same Google Maps lookup as phone
phone_statusfound | not_listed | on_requestfound: phone/website set; not_listed: no Google Maps listing (checked in the last 7 days); on_request: POST /businesses/{id}/reveal-phone
license_estimate_fromstring or nullTexas 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_tostring or nullEnd of the estimated liquor license issue date window
license_estimate_confidencelow | 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_basisstring or nullOne sentence on what the estimate is based on
urlstring or nullThe 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-businesses returns new businesses and stage changes, newest first, up to 100. Each item's id is business:stage, so your tool can skip what it has seen. It never spends Lifetime unlocks. Add ?include=updated to also get entry.updated when a business gets a phone number, a website or a Google listing. The item carries change; a phone change says phone_available: true, never the number.
  • REST hooks: POST /hooks with a https URL gives you an id and a secret. 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>" (from GET /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":"…"}}.

400bad_requestA parameter is wrong; the message says which.
401unauthorizedNo key, a malformed key, or a revoked key.
402no_unlocksLifetime: no unlocks left for POST /businesses/{id}/unlock.
403plan / countyYour plan has no API access, or the county is not in your plan.
404not_foundNo such business or hook in your counties.
409too_manyMore than 20 hooks on the account.
429rate_limitedOver the per-minute or daily limit. Wait for Retry-After seconds.
503unavailableWe could not check your limit. Retry after 30 seconds.

Questions or a field you need? Write to ben@hagbard.studio.

Hagbard API