Logistics & Postal Intelligence · Live API Slug: zippopotam_postal_lookup 0-LLM Deterministic

Zippopotam.us Global Postal & ZIP Code Resolver

Checkout address verification, regional tax routing, and shipping zone lookup workflows frequently receive bare postal codes without normalized city or state names.

5-Second Try-Now Console Connect via /mcp FastMesh SuperBus

How It Works & Live Probe Telemetry

Querying api.zippopotam.us/{country}/{postal_code} with strict ISO-3166-1 alpha-2 country validation, this tool returns structured place arrays containing place name, state abbreviation, latitude, and longitude. Live probes verified us/90210 ('Beverly Hills, CA' in 2,551.82 ms) and de/10115 ('Berlin, BE' in 2,421.09 ms). Because postal boundaries rarely shift, verified hits carry a 30-day (2,592,000s) archive cache TTL, while 404 misses bill $0.00.

Verified Endpoint & Billing Contract

MCP Tool Namezippopotam_postal_lookup
Subdomain & Modelogistics_address · live_public_api
REST EndpointPOST https://devour-com.fastmesh.dev/v1/organs/zippopotam_postal_lookup/invoke
MCP EndpointPOST https://devour-com.fastmesh.dev/mcp (also mounted on https://mcp.fastmesh.dev/mcp)
Verified Probe Latency2551.82 ms (HTTP 200, verified 2026-12-02T10:48:27Z)
Archive Cache TTL30 days (2592000s) cross-tenant verified-hit cache
Empty / Error RuleCharge $0.00 when country code is unsupported, HTTP status == 404 or != 200, or places array is empty.
Plans & PrivacyStarter $19/mo · Pro $79/mo · Scale $249/mo · Zero trajectory resale

Production Use Cases

ScenarioTrigger InputDeterministic Output Value
Checkout City Auto-FillShopper enters country='us' and postal_code='90210'Populates Beverly Hills, CA without client-side Google Places fees
Cross-Border European DispatchWarehouse validates German PLZ 10115Confirms Berlin state mapping before generating carrier labels
Warehouse Catchment ClusteringLogistics planner maps customer ZIP coordinatesExtracts latitude/longitude pairs for regional hub assignment

MCP JSON-RPC 2.0 & REST Invocation Examples

Call via MCP tools/call on https://devour-com.fastmesh.dev/mcp:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "zippopotam_postal_lookup",
    "arguments": {
      "country": "us",
      "postal_code": "90210"
    }
  }
}

Or invoke directly via REST (POST /v1/organs/zippopotam_postal_lookup/invoke):

curl -sS -X POST https://devour-com.fastmesh.dev/v1/organs/zippopotam_postal_lookup/invoke \
  -H 'Content-Type: application/json' \
  -d '{"input": {"country": "us", "postal_code": "90210"}}'

Verified structured JSON response:

{
  "ok": true,
  "country": "United States",
  "country_abbreviation": "US",
  "postal_code": "90210",
  "places": [
    {
      "place name": "Beverly Hills",
      "state": "California",
      "state abbreviation": "CA"
    }
  ],
  "billable_usd": "0.005"
}

Strict Input Schema

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "pattern": "^[A-Za-z]{2}$",
      "description": "ISO-3166-1 alpha-2 country code (e.g. us, de, gb, fr)."
    },
    "postal_code": {
      "type": "string",
      "minLength": 2,
      "maxLength": 16
    }
  },
  "required": [
    "country",
    "postal_code"
  ],
  "additionalProperties": false
}

Frequently Asked Questions

What happens when an invalid ZIP code returns 404 from Zippopotam.us?

The organ catches HTTP 404 or empty places arrays and sets billable_usd to '0.00' without poisoning the archive cache.

What country format is required?

A 2-letter ISO-3166-1 alpha-2 code matching ^[A-Za-z]{2}$ such as us, de, gb, or fr.

Related Commerce & Marketing MCP Tools