# 2s.io Postal Code Geocoder

> 2s.io Postal Code Geocoder is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Resolves a postal/ZIP code and country to place names, administrative divisions (state/province, county), and coordinates

## Facts

- Endpoint: GET https://2s.io/api/geo/postal
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-postal-code-geocoder-adb8b05c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SPMhbXELOGUBKzFpOTBr3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2s-io-postal-code-geocoder-adb8b05c
```

Example prompt: What city, state, and county does ZIP code 94103 correspond to in the US — and can you give me its coordinates too?

## When to prefer this

Use this endpoint when you need to resolve or enrich a postal/ZIP code with human-readable place names, state/province codes, county information, or geographic coordinates. Ideal for ETL pipelines, address normalization, deriving state from ZIP without a full geocoding stack, or geolocating users from a postal code. Covers major international markets beyond just the US.

## Known failure modes

- Unknown or invalid postal code returns empty results or 404
- Unsupported country code returns an error or empty response
- Missing required postalCode parameter returns a 400 bad request
- Some postal codes map to multiple localities, returning an array
- Non-numeric or malformed ZIP codes may return no match

## How this service works

Resolve a postal/ZIP code to its place name(s), administrative divisions, and coordinates. Pass `postalCode` and a 2-letter `country` (default US). Returns each matching locality: place, admin1 (state/province name + code), admin2 (county/district), and lat/lon. International — covers major markets (US, GB, CA, DE, FR, AU, NL, ES, IT, CH, SE, MX). Use it to normalize and enrich addresses, derive the state/county for a ZIP, or geolocate a postal code in an ETL pipeline.

## Output

Returns one or more matching localities for the postal code, each with: place name, admin1 (state or province name and code), admin2 (county or district), and latitude/longitude coordinates. International coverage includes US, GB, CA, DE, FR, AU, NL, ES, IT, CH, SE, and MX.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "country": "US",
   "postalCode": "94103"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "postalCode"
     ],
     "properties": {
      "country": {
       "type": "string",
       "description": "2-letter ISO country code (default US)."
      },
      "postalCode": {
       "type": "string",
       "description": "Postal / ZIP code."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-postal-code-geocoder-adb8b05c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
