Country.io · Capability

Country.io Data API — Continents

Country.io Data API — Continents. 1 operations. Lead operation: Get continent codes keyed by ISO2 country code. Self-contained Naftiko capability covering one Country Io business surface.

Run with Naftiko Country IoContinents

What You Can Do

GET
Getcontinents — Get continent codes keyed by ISO2 country code
/v1/continent-json

MCP Tools

get-continent-codes-keyed-iso2

Get continent codes keyed by ISO2 country code

read-only idempotent

Capability Spec

data-continents.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Country.io Data API — Continents
  description: 'Country.io Data API — Continents. 1 operations. Lead operation: Get continent codes keyed by ISO2 country
    code. Self-contained Naftiko capability covering one Country Io business surface.'
  tags:
  - Country Io
  - Continents
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COUNTRY_IO_API_KEY: COUNTRY_IO_API_KEY
capability:
  consumes:
  - type: http
    namespace: data-continents
    baseUri: https://country.io
    description: Country.io Data API — Continents business capability. Self-contained, no shared references.
    resources:
    - name: continent.json
      path: /continent.json
      operations:
      - name: getcontinents
        method: GET
        description: Get continent codes keyed by ISO2 country code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: data-continents-rest
    port: 8080
    description: REST adapter for Country.io Data API — Continents. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/continent-json
      name: continent-json
      description: REST surface for continent.json.
      operations:
      - method: GET
        name: getcontinents
        description: Get continent codes keyed by ISO2 country code
        call: data-continents.getcontinents
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: data-continents-mcp
    port: 9090
    transport: http
    description: MCP adapter for Country.io Data API — Continents. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-continent-codes-keyed-iso2
      description: Get continent codes keyed by ISO2 country code
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-continents.getcontinents
      outputParameters:
      - type: object
        mapping: $.