Koko Countries API

Country metadata endpoints

Operations 1

GET /crisis_helplines/countries Get list of available countries #

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/koko-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

koko-countries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Crisis Helplines Countries API
  description: 'A public API providing crisis helpline data organized by country. This API serves mental health and crisis support helpline information to help integrate crisis resources into your application.


    ## Features

    - Comprehensive helpline data by country

    - Country alias support (e.g., "USA" resolves to "United States")

    - CORS-enabled for web applications

    - No authentication required (public API)

    '
  version: 0.0.1
  contact:
    name: API Support
    url: https://github.com/koko/helpline-api
  license:
    name: MIT
servers:
- url: https://helpline-api.koko.ai/
  description: Production server
security: []
tags:
- name: Countries
  description: Country metadata endpoints
paths:
  /crisis_helplines/countries:
    get:
      summary: Get list of available countries
      description: 'Returns a sorted list of all countries that have helpline data available. Each country includes its country code and internationalization key.


        Countries are sorted alphabetically by country name (countryI18nKey) and deduplicated to ensure each country appears only once.

        '
      operationId: getCountries
      tags:
      - Countries
      responses:
        '200':
          description: Successfully retrieved list of countries
          headers:
            Access-Control-Allow-Origin:
              description: CORS header indicating allowed origin
              schema:
                type: string
                example: https://example.com
            Vary:
              description: Indicates response varies by Origin header
              schema:
                type: string
                example: Origin
          content:
            application/json:
              schema:
                type: object
                required:
                - countries
                properties:
                  countries:
                    type: array
                    items:
                      $ref: '#/components/schemas/Country'
              example:
                countries:
                - countryCode: CA
                  countryI18nKey: Canada
                - countryCode: GB
                  countryI18nKey: United Kingdom
                - countryCode: US
                  countryI18nKey: United States
        '403':
          description: Forbidden - Origin not allowed (CORS error)
          content:
            text/plain:
              schema:
                type: string
              examples:
                noOrigin:
                  summary: No allowed origins configured
                  value: 'Forbidden: no allowed origins configured'
                originNotAllowed:
                  summary: Request origin not in allowlist
                  value: 'Forbidden: Origin https://unauthorized.com not allowed'
components:
  schemas:
    Country:
      type: object
      description: 'Country metadata including code and internationalization key.


        Only countries with at least one helpline are included in the response.

        '
      required:
      - countryCode
      - countryI18nKey
      properties:
        countryCode:
          type: string
          description: ISO 3166-1 alpha-2 country code
          example: US
          pattern: ^[A-Z]{2}$
        countryI18nKey:
          type: string
          description: Full country name used as internationalization key
          example: United States
x-readme:
  explorer-enabled: true
  proxy-enabled: true
x-apievangelist-assembled-from:
- https://developers.kokocares.org/reference/gethelplines.md
- https://developers.kokocares.org/reference/getcountries.md