← Enterprise

API & Data

Build on Haooze.

REST endpoints over JSON, OAuth-issued API keys with granular scopes, and a sandbox environment we can spin up in minutes. GraphQL is available for partners who prefer it — same data, same auth.

Auth

Every request carries a bearer token. Tokens are scoped — a partner key with listings.read can't read leads, and vice versa.

Authorization: Bearer hzk_live_•••

Versioning + region

Versioned via the URL prefix (/v1). Pick your residency region at key issuance (us, eu, af) — we'll send your traffic to that region only.

https://api.haooze.app/v1 https://eu.api.haooze.app/v1

Endpoints

GET/v1/listingsscope: listings.read

List active listings, filtered by country/category/price

Returns up to 100 active listings per page, ordered newest-first with paid boosts surfaced. Filterable by country, category, town, price band, bedrooms.

Example request

curl https://api.haooze.app/v1/listings \
  -H "Authorization: Bearer $HAOOZE_KEY" \
  -G --data-urlencode "country=KE" \
       --data-urlencode "category=sale" \
       --data-urlencode "minPrice=5000000" \
       --data-urlencode "maxPrice=12000000"

Example response

{
  "data": [
    {
      "id": "lst_8r9...",
      "title": "Aaradhya Homes",
      "town": "Ananda",
      "country": "Kenya",
      "category": "sale",
      "price": { "amount": 8500000, "currency": "KES" },
      "bedrooms": 4,
      "bathrooms": 3,
      "boostTier": null,
      "agent": { "id": "agt_3...", "verified": true, "name": "Wanjiru Kamau" },
      "createdAt": "2026-03-04T08:11:22Z"
    }
  ],
  "nextPageToken": null
}
GET/v1/listings/:idscope: listings.read

Fetch a single listing

Full detail including image gallery and amenities. Same shape as the list endpoint plus `description` and `images[]`.

POST/v1/leadsscope: leads.write

Create a reverse-search lead programmatically

For partners surfacing Haooze inside their own apps. Returns the lead id and the conversation ids opened with the first three accepting agents.

Example request

curl https://api.haooze.app/v1/leads \
  -H "Authorization: Bearer $HAOOZE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "user": { "name": "Jane M.", "email": "jane@bank.co.ke" },
    "country": "KE",
    "town": "Kilimani",
    "category": "rent",
    "priceMin": 60000,
    "priceMax": 90000,
    "bedrooms": 3,
    "description": "3-bed near Yaya, preferably newer block."
  }'

Example response

{
  "leadId": "led_1f3...",
  "status": "pending",
  "broadcastTo": 18,
  "expiresAt": "2026-03-06T08:11:22Z"
}
GET/v1/agentsscope: agents.read

List verified agents in a country

Public profile data only: name, verification status, specialization, base town, response rate. Excludes contact info — use /leads to engage agents.

GET/v1/insights/demandscope: insights.read

Aggregate demand by neighborhood

Anonymized roll-up of how many leads were created in each town in the past N days, by category and price band. Neighborhood-granular only — no PII.

Example response

{
  "country": "KE",
  "since": "2026-02-04",
  "until": "2026-03-04",
  "buckets": [
    { "town": "Kilimani", "category": "rent", "count": 412, "avgPriceMax": 78500 },
    { "town": "Westlands", "category": "rent", "count": 287, "avgPriceMax": 92000 },
    { "town": "Karen", "category": "sale", "count": 64, "avgPriceMax": 35000000 }
  ]
}
GET/v1/insights/migrationsscope: insights.read

Move-trends: who is moving from where, to where

Aggregated migration signal — destination town × age band × source country, refreshed daily. Pulled from opt-in user activity, not survey data.