Center for Parent Information and Resources Countries API

ISO 3166-1 country reference records.

Operations 2

GET /cn-api/v1/countries List countries #
GET /cn-api/v1/countries/{code} Retrieve one country #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/center-for-parent-information-and-resources-countries-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

center-for-parent-information-and-resources-countries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CPIR Geography Reference Countries API
  version: cn-api/v1
  description: 'Public, unauthenticated reference data served alongside the CPIR Parent Center directory: ISO 3166-1 country records, their administrative subdivisions (US states and territories with bounding boxes and centroids), and country boundary geometry as GeoJSON. This is the geography layer the "Find Your Parent Center" map is built on. Verified live on 2026-09-05.'
  contact:
    name: Center for Parent Information and Resources
    url: https://www.parentcenterhub.org/contact/
  x-derived-from: https://www.parentcenterhub.org/wp-json/ route index (`cn-api/v1` namespace) plus live anonymous GET verification of /countries, /countries/us, /countries/us/regions, /countries/us/region/IA and /countries/us/geojson
  x-derived-on: '2026-09-05'
  x-api-evangelist-note: Third-party profile. Paths, parameters and enums are read from the server's own published route index; response shapes from live 200 responses on 2026-09-05. Nothing here is invented.
servers:
- url: https://www.parentcenterhub.org/wp-json
  description: CPIR WordPress REST API (Parent Center Hub)
tags:
- name: Countries
  description: ISO 3166-1 country reference records.
paths:
  /cn-api/v1/countries:
    get:
      operationId: listCountries
      summary: List countries
      description: Retrieve the full ISO 3166-1 country reference set. Verified live on 2026-09-05 returning a keyed object of ~250 countries with common, official and native names, alpha-2 and alpha-3 codes, calling code and currency.
      tags:
      - Countries
      parameters:
      - name: context
        in: query
        description: Scope under which the request is made; determines fields present in response.
        schema:
          type: string
          default: view
      - name: detailed
        in: query
        description: Whether to retrieve detailed country data.
        schema:
          type: boolean
      responses:
        '200':
          description: Country records keyed by lowercase alpha-2 code.
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  $ref: '#/components/schemas/Country'
  /cn-api/v1/countries/{code}:
    get:
      operationId: getCountry
      summary: Retrieve one country
      description: Retrieve a single ISO 3166-1 country record by its lowercase alpha-2 code.
      tags:
      - Countries
      parameters:
      - name: code
        in: path
        required: true
        description: Lowercase ISO 3166-1 alpha-2 country code.
        schema:
          type: string
          pattern: ^[a-z]{2}$
      - name: context
        in: query
        description: Scope under which the request is made; determines fields present in response.
        schema:
          type: string
          default: view
      responses:
        '200':
          description: A single country record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CountryDetail'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Error:
      type: object
      description: The WordPress REST error envelope, observed live on this host.
      properties:
        code:
          type: string
        message:
          type: string
        data:
          type: object
          properties:
            status:
              type: integer
    Country:
      type: object
      description: An ISO 3166-1 country reference record as returned by the collection.
      properties:
        name:
          type: string
        official_name:
          type: string
        native_name:
          type: string
        native_official_name:
          type: string
        iso_3166_1_alpha2:
          type: string
          description: ISO 3166-1 alpha-2 code.
        iso_3166_1_alpha3:
          type: string
          description: ISO 3166-1 alpha-3 code.
        calling_code:
          type: string
        currency:
          type: string
          description: ISO 4217 currency identifier.
    CountryDetail:
      type: object
      description: The detailed country record returned for a single country.
      properties:
        name:
          type: object
          properties:
            common:
              type: string
            official:
              type: string
            native:
              type: object
        demonym:
          type: string
        capital:
          type: string
  responses:
    NotFound:
      description: No resource matched the requested identifier.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'