HeadHoncho

Get statistics areas

Get statistics areas is a read in the HeadHoncho API. Every place the work happened, by postal code and city: jobs, closes, cancels, average ticket and profit, with a point to put on a map.

Read as Markdown

The request

Reference for Get statistics areas, HeadHoncho API v1. It is a read, sent to the base address https://api.headhoncho.app.

GET /api/v1/statistics/areas

The key needs the Statistics and marketing area at read. An answered call costs 1 credit; a refusal costs nothing. See credits.

Send your key as Authorization: Bearer hh_live_.... See API keys.

Parameters

NameKindRequiredDescriptionExample
company_idid, in the queryNoOne company. Default: every company the credential reaches.cmp_14f5
fromdate, in the queryNoFirst day. Default: the last 30 days, as the Statistics panel does.2026-10-01
todate, in the queryNoLast day, included. Default: today in the company's time zone.2026-10-26
by_datetext, in the queryNoWhich date puts a job in the range: created (default), scheduled or closed. One of created, scheduled, closed.created

Try it with your key

Paste your key and change the values. The box builds the call as a cURL line and a fetch line, ready to copy. It never sends anything itself.

Your key stays in this page and is never sent anywhere. Copy the line below and run it yourself.

What comes back

from, to, by_date, then areas, one per place: key, label, city, state, postal_code, jobs, closed, canceled, decided, closing_rate (a share from 0 to 1, null with nothing decided), average_ticket, net, net_per_job, lat and lng (the middle of its jobs), pinned and last_job. workspace: net_per_job and closing_rate for the whole range, to compare a place against.

It never changes a record. It only reads the companies the key reaches.

Every field in the answer

Types are read from the example answer. Money is a plain number in the company's currency. A time carries its offset from UTC (Z is UTC). Ids are opaque text. A field with no line of its own here has its name spelled out; the common fields mean the same on every page.

FieldTypeMeaning
fromdate (YYYY-MM-DD)The first day of the range, inclusive.
todate (YYYY-MM-DD)The last day of the range, inclusive.
by_datetextOne of created, scheduled, closed.
areaslist of objectsThe areas.
areas[].keytextA short code for this item. Match on it in code.
areas[].labeltextThe name the app shows for it.
areas[].citytextThe city.
areas[].statetextThe state or region.
areas[].postal_codetextThe postal code.
areas[].jobswhole numberThe jobs.
areas[].closedwhole numberTrue when the job is closed.
areas[].canceledwhole numberThe canceled.
areas[].decidedwhole numberThe decided.
areas[].closing_ratenumberThe closing rate.
areas[].average_ticketnumberThe average ticket.
areas[].netmoney (number)The net amount, after what is owed either way. In the company's currency.
areas[].net_per_jobmoney (number)The net per job. In the company's currency.
areas[].latnumberThe lat.
areas[].lngnumberThe lng.
areas[].pinnedwhole numberThe pinned.
areas[].last_jobdate (YYYY-MM-DD)The last job.
workspaceobjectThe workspace.
workspace.net_per_jobmoney (number)The net per job. In the company's currency.
workspace.closing_ratenumberThe closing rate.

Places, not people

Each row is a postal code and city, never a street. The point is the average of the jobs in it. The app's above and below average labels are not given: read the figures.

Errors that apply

CodeStatusWhat it means
`missing_key`401Send your key as Authorization: Bearer hh_live_...
`unknown_key`401That key is not one we issued, or it was revoked.
`no_access`403This credential does not reach that. Ask the person who made it for access.
`not_found`404No such record in the companies this credential reaches.
`out_of_scope`404No such company in the companies this credential reaches.
`invalid`422Some fields were refused. See fields.
`no_credits`402Out of credits. Top up on Settings › Credits, or turn on auto top-up.
  • Get statistics summary: Jobs and leads for a range and the money they left: profit, lead cost, cost per lead, profit after leads, ad spend and profit after advertising.
  • List area jobs: The jobs behind one area on the map, newest first, twenty-five a page, with status, price, profit and where they came from.
  • List job pins: Each job in the range that has a point on the map, newest first, up to 400, with its status, price and profit. Narrow it with a box.
  • The same records in the app: the Statistics panel.
  • How the API fits together: the model, API keys, errors and the MCP server.