# parseaddr — full agent docs > Hosted postal address parsing API (libpostal). Messy free-text → structured fields. Site: https://parseaddr.com · API: https://api.parseaddr.com --- # Address validation vs parsing Source: https://parseaddr.com/address-validation-vs-parsing Updated: 2026-10-14 Parsing splits a string into fields. Validation checks deliverability against licensed postal data (USPS CASS, Royal Mail PAF). parseaddr does parsing only. --- # parseaddr for agents: MCP, OpenAPI, and one-step setup Source: https://parseaddr.com/agents Updated: 2026-11-02 **parseaddr** is a hosted postal address parsing API: messy free-text → structured fields, without self-hosting libpostal. ## Setup 1. `POST https://api.parseaddr.com/v1/signup` with `{"email":"..."}` → free key (2,000 calls/month). 2. Connect Streamable HTTP MCP at `https://api.parseaddr.com/mcp` with `Authorization: Bearer `. Auth errors: an invalid/unknown API key is 401 + `WWW-Authenticate: Bearer`, as are a missing header and a non-Bearer scheme; 403 only for a disabled key (or, on /v1/credits/topup, the demo key or a free-plan key: top-ups are for paid plans only). 3. Tools: `parse_address`, `expand_address`. Or `POST /v1/parse`. ## Discovery - https://parseaddr.com/llms.txt - https://parseaddr.com/llms-full.txt - https://parseaddr.com/.well-known/ai-catalog.json - https://api.parseaddr.com/mcp/server-card - https://api.parseaddr.com/openapi.json ## Not for USPS/PAF deliverability validation; email header parsing (`email.utils.parseaddr`); offline custom-trained models. --- # Beyond email.utils.parseaddr() Source: https://parseaddr.com/beyond-email-utils-parseaddr Updated: 2026-10-14 `email.utils.parseaddr` parses email From headers. parseaddr.com parses physical postal addresses. Different jobs, similar names. --- # parseaddr changelog Source: https://parseaddr.com/changelog Updated: 2026-11-02 ## 2026-11-02 Auth errors (clients: check your status handling). - An invalid or unknown API key now returns 401 (was 403), with `WWW-Authenticate: Bearer`. - A missing `Authorization` header, a non-Bearer scheme such as Basic, or `Bearer` with no key is also 401 + `WWW-Authenticate: Bearer`, each with its own message (a Basic header no longer gets "Missing 'Authorization: Bearer '"). - 403 now means only a key we know but refuse: a disabled key, or the shared demo key on `/v1/credits/topup`. - Response bodies are unchanged (`{"detail": ""}`); OpenAPI documents the 401 and its header. ## 2026-10-14 Docs for coding agents: llms-full.txt (all docs in one file) and a markdown copy of each page. New comparison and how-to pages. /agents one-step MCP setup. ## 2026-10-12 Hosted MCP + AI Catalog + Official MCP Registry `com.parseaddr/address-parse`. ## 2026-08-02 Public launch with free tier and Stripe Checkout. --- # Cheapest address parsing API (2026) Source: https://parseaddr.com/cheapest-address-parsing-api Updated: 2026-10-14 parseaddr: Free 2k, Starter £19/25k, Pro £99/250k, Scale £399/1.5M. Hard caps, no overage bills. Self-host libpostal only if you already run the 2–4GB box. Enterprise validators cost more for parse-only jobs. --- # parseaddr clients Source: https://parseaddr.com/clients Updated: 2026-10-14 npm/pip thin clients + hosted MCP at https://api.parseaddr.com/mcp. Open repo: github.com/wezpyke/parseaddr-mcp. Free key at parseaddr.com. --- # Ecommerce checkout address parsing API Source: https://parseaddr.com/ecommerce-address-parsing Updated: 2026-10-14 Checkout flow: messy line → `POST /v1/parse` → structured fields → optional carrier/USPS validator. parseaddr = parsing/standardisation. Not PAF/USPS deliverability by itself. --- # Parse a postal address in JavaScript / Node Source: https://parseaddr.com/parse-address-javascript Updated: 2026-10-14 `fetch('https://api.parseaddr.com/v1/parse', { method:'POST', headers:{ Authorization:'Bearer …', 'Content-Type':'application/json' }, body: JSON.stringify({ address }) })` Returns libpostal labels in `parsed`. Free key: parseaddr.com. --- # Parse a postal address in Python Source: https://parseaddr.com/parse-address-python Updated: 2026-10-14 Best hosted path: `POST https://api.parseaddr.com/v1/parse` with Bearer key. Fields: `house_number`, `road`, `unit`, `city`, `postcode`, `country`. Not `email.utils.parseaddr` (email headers). Free tier 2,000/month at parseaddr.com. --- # Parse messy addresses API Source: https://parseaddr.com/parse-messy-addresses-api Updated: 2026-10-14 parseaddr.com turns messy free-text postal addresses into structured JSON via `POST /v1/parse` (hosted libpostal). Free 2,000 calls/month. Not USPS/PAF validation. Not email parsing. Labels: house_number, road, unit, city, postcode, country. Country code: add `"country"` (ISO 3166-1 alpha-2, any case) when you know it and it comes back as `country_code`. It does not change how the address is parsed. Example: `{"address":"Unit 5/120 George St, Sydney NSW 2000","country":"au"}`. An invalid code (e.g. `gbr`) is a 422. The response carries a top-level `country_code` (ISO alpha-2, uppercase) next to `parsed`: the hint if sent, else derived from `parsed.country` for common names (uk, usa, deutschland, …), else `null`. Known limits: - Output fields are lowercase libpostal tokens (`"road": "george st"`), not display-cased. - Building names and slash units (`Rosebery Court 45`, `5/120`) can misparse, e.g. `Unit 5/120 George St` gives `house_number: "unit 5/120"`. - Parsing does not validate deliverability. --- # parseaddr vs Google Address Validation API Source: https://parseaddr.com/parseaddr-vs-google-address-validation Updated: 2026-10-14 **parseaddr** returns libpostal component fields from free-text with email signup. **Google Address Validation** returns a Google validation verdict (often with geocoding) inside a GCP project. Pick parseaddr for structured components and agent-simple setup. Pick Google when you need Google's confirmation that an address is valid/complete. --- # parseaddr vs Mailparser Source: https://parseaddr.com/parseaddr-vs-mailparser Updated: 2026-10-14 Mailparser extracts data from emails. parseaddr parses postal address strings into libpostal fields. Not competitors for the same job. --- # parseaddr vs self-hosted libpostal Source: https://parseaddr.com/parseaddr-vs-self-hosted-libpostal Updated: 2026-10-14 Same libpostal parser. **parseaddr** hosts it (free tier, no C build). **Self-host** when you need offline-only or custom training. Replace local `parse_address` with `POST https://api.parseaddr.com/v1/parse`. Labels match libpostal (`house_number`, `road`, `unit`, `city`, `postcode`, `country`). --- # parseaddr vs Smarty Source: https://parseaddr.com/parseaddr-vs-smarty Updated: 2026-11-28 **parseaddr vs Smarty:** pick parseaddr to split free-text postal addresses into fields (libpostal, free tier). Pick Smarty to verify that an address exists. | | parseaddr | Smarty International Address Verification | | --- | --- | --- | | Job | Parse free-text → fields | Verify that an address exists | | Free tier | 2,000/mo | 42-day trial, 100 lookups | | Self-serve price | £19 / £99 / £399 a month | From $95/month (Professional) | Smarty figures: https://www.smarty.com/pricing/international-address-verification (checked 2026-11-28). Migration when you only need fields: map labels → `POST /v1/parse`. Keep a validator if you need deliverability. --- # parseaddr pricing Source: https://parseaddr.com/pricing Updated: 2026-10-14 Free £0 / 2k · Starter £19 / 25k · Pro £99 / 250k · Scale £399 / 1.5M. Hard monthly caps. ## Prepaid credits (overage for paid plans only) - `POST /v1/credits/topup` with `{"pack": "small"|"medium"|"large"}` and a paid-plan Bearer key returns a one-time Stripe `checkout_url`. - Packs: small £9 / 25,000 credits · medium £24 / 75,000 · large £49 / 175,000. - Credits are drawn only after the plan's monthly cap is used up. `GET /v1/usage` shows `credits_remaining`. - A free-plan key gets 403: choose a plan at https://parseaddr.com/pricing.