Namely Countries API

The Countries API from Namely — 2 operation(s) for countries.

Operations 2

GET /countries Get all Countries #
GET /countries/{id} Get a Country #

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/namely-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 email required.

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

OpenAPI Specification

namely-countries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: ''
  title: Namely Countries API
  description: Move your app forward with the Namely API Move your app forward with the Namely API
tags:
- name: Countries
paths:
  /countries:
    get:
      operationId: GET_countries
      summary: Get all Countries
      tags:
      - Countries
      description: Returns all valid countries in Namely. A country is universal and may not be modified.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  countries:
                    type: array
                    items:
                      $ref: '#/components/schemas/countries'
      security:
      - Authorization: []
  /countries/{id}:
    parameters:
    - name: id
      in: path
      description: id of the country (an abbreviation of the country's name) you want to view
      required: true
      schema:
        type: string
    get:
      operationId: GET_countries-id
      summary: Get a Country
      tags:
      - Countries
      description: Returns one country, as well as a list of a country’s subdivisions (e.g. a list of its states or provinces).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  countries:
                    type: array
                    items:
                      $ref: '#/components/schemas/Country'
      security:
      - Authorization: []
components:
  schemas:
    Subdivision:
      title: Subdivision
      type: object
      properties:
        id:
          type: string
          description: 'unique identifier of the subdivision unit (e.g. NJ); abbreviation of the name; used in the #model:yq9tkBR24wuBhzizY model'
        name:
          type: string
          description: name of the subdivision unit (e.g. New Jersey)
    countries:
      title: Countries
      type: object
      properties:
        id:
          type: string
          description: unique identifier of the profile; 2-digit ISO code; used when passing home or office <code>address</code>
        name:
          type: string
          description: name of the country
        subdivision_type:
          type: string
          description: name of the country's subdivision (e.g. State, Province)
    Country:
      title: Country
      type: object
      properties:
        id:
          type: string
          description: 'unique identifier of the profile; 2-digit ISO code; used when passing home or office #model:yq9tkBR24wuBhzizY'
        name:
          type: string
          description: name of the country
        subdivision_type:
          type: string
          description: name of the country's subdivision (e.g. State, Province)
        links:
          type: array
          items:
            type: object
            properties:
              subdivision:
                type: array
                items:
                  $ref: '#/components/schemas/Subdivision'
  securitySchemes:
    Authorization:
      name: Authorization
      type: apiKey
      in: header