OpenAny
Get API keyAPI Key
APIData

geo-data logo
Geo Data Postal Code Countries API

List Geo Data countries with postal-code coverage via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, raw, and retrieve structured data including source country name, source country code, source postal-code count summary, returned coverage-country count, and source place-data attribution for coverage selector, and postal navigation.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Geo Data Postal Code Countries API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Geo Data Postal Code Countries API

Geo Data Postal Code Countries API

This catalogue operation has no business selector. Each items entry provides country, country_code and codes; keep the source coverage list separate from a claim of universal postal-address support.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs No business selector is required. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.
Selected implementation apish · Geo Data countries with postal code data API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Coverage selector: Offer source-supported country choices.
  • Postal navigation: Link country references to a postal-code lookup.

Returned Data

Field Meaning
items[].country Source country name
items[].country_code Source country code
items[].codes Source postal-code count summary
count Returned coverage-country count
attribution Source place-data attribution

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/geo/v1/postal-code-countries \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode output=json \
  --data-urlencode raw=0

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published Geo Data Postal Code Countries API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (5)
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
Geo Data countries with postal code data API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/geo/v1/postal-code-countries
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.

enum: "json"

recordsURL query parametersquerystringNo

With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • attributionstring
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • fetched_atstring
  • itemsobject[]
    • codesinteger
    • countrystring
    • country_codestring

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 5

    Review these request fields before running. Keep the published provider and request method unchanged.

    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
    records
    With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/apish/geo/v1/postal-code-countries?output=json&raw=0' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "attribution": "Place data: GeoNames (geonames.org), CC BY 4.0",
      "cached": false,
      "count": 123,
      "credits_used": 1,
      "fetched_at": "2026-11-19T12:26:39.082Z",
      "items": [
        {
          "codes": 7,
          "country": "Andorra",
          "country_code": "AD"
        },
        {
          "codes": 178171,
          "country": "United Arab Emirates",
          "country_code": "AE"
        },
        {
          "codes": 1,
          "country": "Anguilla",
          "country_code": "AI"
        },
        {
          "codes": 494,
          "country": "Albania",
          "country_code": "AL"
        },
        {
          "codes": 772,
          "country": "Armenia",
          "country_code": "AM"
        },
        {
          "codes": 20260,
          "country": "Argentina",
          "country_code": "AR"
        },
        {
          "codes": 1,
          "country": "American Samoa",
          "country_code": "AS"
        },
        {
          "codes": 19225,
          "country": "Austria",
          "country_code": "AT"
        },
        {
          "codes": 18521,
          "country": "Australia",
          "country_code": "AU"
        },
        {
          "codes": 37,
          "country": "Aland Islands",
          "country_code": "AX"
        },
        {
          "codes": 1186,
          "country": "Azerbaijan",
          "country_code": "AZ"
        },
        {
          "codes": 1349,
          "country": "Bangladesh",
          "country_code": "BD"
        },
        {
          "codes": 2781,
          "country": "Belgium",
          "country_code": "BE"
        },
        {
          "codes": 5304,
          "country": "Bulgaria",
          "country_code": "BG"
        },
        {
          "codes": 112,
          "country": "Bermuda",
          "country_code": "BM"
        },
        {
          "codes": 5525,
          "country": "Brazil",
          "country_code": "BR"
        },
        {
          "codes": 3133,
          "country": "Belarus",
          "country_code": "BY"
        },
        {
          "codes": 900676,
          "country": "Canada",
          "country_code": "CA"
        },
        {
          "codes": 1,
          "country": "Cocos Islands",
          "country_code": "CC"
        },
        {
          "codes": 4520,
          "country": "Switzerland",
          "country_code": "CH"
        },
        {
          "codes": 346,
          "country": "Chile",
          "country_code": "CL"
        },
        {
          "codes": 2352,
          "country": "China",
          "country_code": "CN"
        },
        {
          "codes": 3681,
          "country": "Colombia",
          "country_code": "CO"
        },
        {
          "codes": 473,
          "country": "Costa Rica",
          "country_code": "CR"
        },
        {
          "codes": 1,
          "country": "Christmas Island",
          "country_code": "CX"
        },
        {
          "codes": 1127,
          "country": "Cyprus",
          "country_code": "CY"
        },
        {
          "codes": 15507,
          "country": "Czechia",
          "country_code": "CZ"
        },
        {
          "codes": 23297,
          "country": "Germany",
          "country_code": "DE"
        },
        {
          "codes": 1159,
          "country": "Denmark",
          "country_code": "DK"
        },
        {
          "codes": 544,
          "country": "Dominican Republic",
          "country_code": "DO"
        },
        {
          "codes": 15951,
          "country": "Algeria",
          "country_code": "DZ"
        },
        {
          "codes": 1225,
          "country": "Ecuador",
          "country_code": "EC"
        },
        {
          "codes": 5398,
          "country": "Estonia",
          "country_code": "EE"
        },
        {
          "codes": 37867,
          "country": "Spain",
          "country_code": "ES"
        },
        {
          "codes": 3576,
          "country": "Finland",
          "country_code": "FI"
        },
        {
          "codes": 1,
          "country": "Falkland Islands",
          "country_code": "FK"
        },
        {
          "codes": 4,
          "country": "Micronesia",
          "country_code": "FM"
        },
        {
          "codes": 130,
          "country": "Faroe Islands",
          "country_code": "FO"
        },
        {
          "codes": 51611,
          "country": "France",
          "country_code": "FR"
        },
        {
          "codes": 1839678,
          "country": "United Kingdom",
          "country_code": "GB"
        },
        {
          "codes": 77,
          "country": "French Guiana",
          "country_code": "GF"
        },
        {
          "codes": 14,
          "country": "Guernsey",
          "country_code": "GG"
        },
        {
          "codes": 1,
          "country": "Gibraltar",
          "country_code": "GI"
        },
        {
          "codes": 33,
          "country": "Greenland",
          "country_code": "GL"
        },
        {
          "codes": 105,
          "country": "Guadeloupe",
          "country_code": "GP"
        },
        {
          "codes": 1,
          "country": "South Georgia and the South Sandwich Islands",
          "country_code": "GS"
        },
        {
          "codes": 548,
          "country": "Guatemala",
          "country_code": "GT"
        },
        {
          "codes": 21,
          "country": "Guam",
          "country_code": "GU"
        },
        {
          "codes": 1,
          "country": "Hong Kong",
          "country_code": "HK"
        },
        {
          "codes": 1,
          "country": "Heard Island and McDonald Islands",
          "country_code": "HM"
        },
        {
          "codes": 38,
          "country": "Honduras",
          "country_code": "HN"
        },
        {
          "codes": 6774,
          "country": "Croatia",
          "country_code": "HR"
        },
        {
          "codes": 236,
          "country": "Haiti",
          "country_code": "HT"
        },
        {
          "codes": 3571,
          "country": "Hungary",
          "country_code": "HU"
        },
        {
          "codes": 81058,
          "country": "Indonesia",
          "country_code": "ID"
        },
        {
          "codes": 139,
          "country": "Ireland",
          "country_code": "IE"
        },
        {
          "codes": 87,
          "country": "Isle of Man",
          "country_code": "IM"
        },
        {
          "codes": 155570,
          "country": "India",
          "country_code": "IN"
        },
        {
          "codes": 1,
          "country": "British Indian Ocean Territory",
          "country_code": "IO"
        },
        {
          "codes": 195,
          "country": "Iceland",
          "country_code": "IS"
        },
        {
          "codes": 18415,
          "country": "Italy",
          "country_code": "IT"
        },
        {
          "codes": 5,
          "country": "Jersey",
          "country_code": "JE"
        },
        {
          "codes": 146883,
          "country": "Japan",
          "country_code": "JP"
        },
        {
          "codes": 890,
          "country": "Kenya",
          "country_code": "KE"
        },
        {
          "codes": 35583,
          "country": "South Korea",
          "country_code": "KR"
        },
        {
          "codes": 13,
          "country": "Liechtenstein",
          "country_code": "LI"
        },
        {
          "codes": 1837,
          "country": "Sri Lanka",
          "country_code": "LK"
        },
        {
          "codes": 21870,
          "country": "Lithuania",
          "country_code": "LT"
        },
        {
          "codes": 4519,
          "country": "Luxembourg",
          "country_code": "LU"
        },
        {
          "codes": 6101,
          "country": "Latvia",
          "country_code": "LV"
        },
        {
          "codes": 1325,
          "country": "Morocco",
          "country_code": "MA"
        },
        {
          "codes": 29,
          "country": "Monaco",
          "country_code": "MC"
        },
        {
          "codes": 1753,
          "country": "Moldova",
          "country_code": "MD"
        },
        {
          "codes": 2,
          "country": "Marshall Islands",
          "country_code": "MH"
        },
        {
          "codes": 220,
          "country": "North Macedonia",
          "country_code": "MK"
        },
        {
          "codes": 1,
          "country": "Macao",
          "country_code": "MO"
        },
        {
          "codes": 3,
          "country": "Northern Mariana Islands",
          "country_code": "MP"
        },
        {
          "codes": 100,
          "country": "Martinique",
          "country_code": "MQ"
        },
        {
          "codes": 73,
          "country": "Malta",
          "country_code": "MT"
        },
        {
          "codes": 491,
          "country": "Malawi",
          "country_code": "MW"
        },
        {
          "codes": 144655,
          "country": "Mexico",
          "country_code": "MX"
        },
        {
          "codes": 2818,
          "country": "Malaysia",
          "country_code": "MY"
        },
        {
          "codes": 52,
          "country": "New Caledonia",
          "country_code": "NC"
        },
        {
          "codes": 1,
          "country": "Norfolk Island",
          "country_code": "NF"
        },
        {
          "codes": 468809,
          "country": "The Netherlands",
          "country_code": "NL"
        },
        {
          "codes": 5132,
          "country": "Norway",
          "country_code": "NO"
        },
        {
          "codes": 1,
          "country": "Nauru",
          "country_code": "NR"
        },
        {
          "codes": 1,
          "country": "Niue",
          "country_code": "NU"
        },
        {
          "codes": 1738,
          "country": "New Zealand",
          "country_code": "NZ"
        },
        {
          "codes": 729,
          "country": "Panama",
          "country_code": "PA"
        },
        {
          "codes": 96943,
          "country": "Peru",
          "country_code": "PE"
        },
        {
          "codes": 207,
          "country": "French Polynesia",
          "country_code": "PF"
        },
        {
          "codes": 2317,
          "country": "Philippines",
          "country_code": "PH"
        },
        {
          "codes": 2563,
          "country": "Pakistan",
          "country_code": "PK"
        },
        {
          "codes": 72899,
          "country": "Poland",
          "country_code": "PL"
        },
        {
          "codes": 2,
          "country": "Saint Pierre and Miquelon",
          "country_code": "PM"
        },
        {
          "codes": 1,
          "country": "Pitcairn",
          "country_code": "PN"
        },
        {
          "codes": 177,
          "country": "Puerto Rico",
          "country_code": "PR"
        },
        {
          "codes": 206942,
          "country": "Portugal",
          "country_code": "PT"
        },
        {
          "codes": 1,
          "country": "Palau",
          "country_code": "PW"
        },
        {
          "codes": 8644,
          "country": "Paraguay",
          "country_code": "PY"
        },
        {
          "codes": 152,
          "country": "Reunion",
          "country_code": "RE"
        },
        {
          "codes": 37915,
          "country": "Romania",
          "country_code": "RO"
        },
        {
          "codes": 1155,
          "country": "Serbia",
          "country_code": "RS"
        },
        {
          "codes": 43538,
          "country": "Russia",
          "country_code": "RU"
        },
        {
          "codes": 18887,
          "country": "Sweden",
          "country_code": "SE"
        },
        {
          "codes": 121154,
          "country": "Singapore",
          "country_code": "SG"
        },
        {
          "codes": 556,
          "country": "Slovenia",
          "country_code": "SI"
        },
        {
          "codes": 8,
          "country": "Svalbard and Jan Mayen",
          "country_code": "SJ"
        },
        {
          "codes": 5233,
          "country": "Slovakia",
          "country_code": "SK"
        },
        {
          "codes": 26,
          "country": "San Marino",
          "country_code": "SM"
        },
        {
          "codes": 1,
          "country": "Turks and Caicos Islands",
          "country_code": "TC"
        },
        {
          "codes": 903,
          "country": "Thailand",
          "country_code": "TH"
        },
        {
          "codes": 36307,
          "country": "Turkey",
          "country_code": "TR"
        },
        {
          "codes": 29571,
          "country": "Ukraine",
          "country_code": "UA"
        },
        {
          "codes": 41490,
          "country": "United States",
          "country_code": "US"
        },
        {
          "codes": 1964,
          "country": "Uruguay",
          "country_code": "UY"
        },
        {
          "codes": 1,
          "country": "Vatican",
          "country_code": "VA"
        },
        {
          "codes": 16,
          "country": "U.S. Virgin Islands",
          "country_code": "VI"
        },
        {
          "codes": 3,
          "country": "Wallis and Futuna",
          "country_code": "WF"
        },
        {
          "codes": 1,
          "country": "Samoa",
          "country_code": "WS"
        },
        {
          "codes": 21,
          "country": "Mayotte",
          "country_code": "YT"
        },
        {
          "codes": 3920,
          "country": "South Africa",
          "country_code": "ZA"
        }
      ]
    }

Common questions

Which business inputs are required?

None. The operation returns the available source postal-code country catalogue.

What does codes count?

It is the source postal-code count summary for that country, not a count of street addresses.

Does the list imply every global postcode is supported?

No. It describes the returned source coverage. Preserve that list when preparing lookup choices.

How do I use a country entry?

Pass the supported country code or English country name with code to Postal Code Lookup, retaining GeoNames attribution.

How do I bypass cached results?

Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

Can I request CSV or NDJSON?

This OpenAny implementation serves JSON only. Omit output or set output=json.

Use Geo Data Postal Code Countries API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.