Changelog
Every change to the HappyFetch API, newest first.
v1.1.0 (2026-10-19)#
Clearer errors, stricter checks on input that can't be looked up, and fixes to the cache.
- Every lookup, search and cache check (
POST /v1/…) answers withCache-Control: no-store, and a401carriesWWW-Authenticate: Bearer realm="HappyFetch API". - New error codes:
method_not_allowed(405, with anAllowheader) for a wrong method on a real endpoint, andhttps_required(403): the API only answers over HTTPS. An unknown path on the API host answersroute_not_foundin the usual error body. - A body that isn't JSON or UTF-8, has a wrong or missing
Content-Type, or is compressed is checked after the API key and the rate limit: without a valid key you get401first, and these400s carry theRateLimit-*headers andmeta.credits_remaining. - Requests with a missing or invalid API key are limited per IP address, 60 a minute. Past that they get
429rate_limited. POST /v1/cache:fetched_atis rounded down to the hour, andage_secondscounts from there. When the company copy is too old formax_ageand a newer not-found answer is held, it reports the not-found, as the lookup does.- Not-found answers are reused from the cache for at most 24 hours, whatever
max_agesays, andmeta.cache.max_age_secondsreports that window. Cached not-found responses carryX-CacheandAge. POST /v1/domain: a site on a hosting platform's subdomain, likeacme.myshopify.com, is a lookup of its own. A public suffix on its own (co.uk) and names under special-use endings (localhost,.local,.internaland the like) are rejected for free. A trailing dot (stripe.com.) is accepted.POST /v1/company: a URL whose path has.or..segments is rejected for free.POST /v1/person: a profile name is 3 to 100 letters, digits, hyphens or underscores, starting with a letter or digit. A relative/in/<name>?trk=…works.- An
Idempotency-Keyis at most 255 bytes. - MCP: a replayed call says so with
meta.replayed: true, unknown or misspelled arguments are rejected for free withinvalid_request, and the paid tools are no longer marked read-only.
v1.0.0 (2026-10-15)#
The first public version of the API.
POST /v1/company: company profiles from a LinkedIn company URL, slug, numeric id or URN, with the canonical slug and id inmeta.canonical.POST /v1/domain: the company behind a website domain, with the same profile asPOST /v1/companyand the matched domain and whether the match is verified inmeta.resolved.POST /v1/person: a person's profile summary (name, location, employers, schools, followers), with a content hash.POST /v1/search: web search results as JSON.POST /v1/cache: free. How old our copy of a company is, and what a lookup would cost now.GET /v1/pricing: free, and works without a key. The price of every call, the credit packs and the free credits.- An MCP server at
/mcp: the lookups, the search, the cache check and the prices as tools for AI agents, with your API key. - Database cache with
max_age, theX-CacheandAgeheaders, andmeta.cacheon every result. - Credits, prepaid packs, automatic refunds and a per-request ledger.
Idempotency-Keyon every endpoint;RateLimit-*headers on every response to a request made with a valid API key.- OpenAPI 3.1 at /openapi.json, with code samples in cURL, JavaScript and Python.