Docs / Postal codes
Countries with postal data
Lists the countries covered by the postal-code data, with row counts and whether each country has full or partial codes.
GET
/v1/postal-codesimport { Client } from "@liveapiio/liveapi";
const client = new Client({ token: process.env.LIVEAPI_TOKEN });
const coverage = await client.postalCodeCountries();Request
Send Authorization: Bearer YOUR_TOKEN. The token stays on your server. Each library reads it from the environment and calls this endpoint for you.
Response
A 200 response uses one call. Postal data is produced and maintained by LiveAPI.
Errors
A failed request returns { "error": { "code", "message" } } and does not use a call.
| Status | Code | When |
|---|---|---|
| 503 | data_unavailable | Postal code data is not available right now. |
| 401 | unauthorized | The bearer token is missing or not recognized. |