> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reqi.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Normalize ISO / alias

> Strict normalization for ISO 3166 alpha-2/alpha-3, numeric ccn3, IOC codes, and maintained aliases. Does not fuzzy-match country names.



## OpenAPI

````yaml https://api.reqi.dev/openapi/countries.json get /v1/countries/normalize
openapi: 3.1.0
info:
  title: Countries API — Countries
  version: 1.0.0
  description: >-
    JSON country records under /v1/countries Subset of the full API contract at
    /openapi.json (31 paths).
servers:
  - url: https://api.reqi.dev
    description: API host
  - url: https://cdn.reqi.dev
    description: Flag CDN
security: []
tags:
  - name: Countries
    description: JSON country records under /v1/countries
paths:
  /v1/countries/normalize:
    get:
      tags:
        - Countries
      summary: Normalize ISO / alias
      description: >-
        Strict normalization for ISO 3166 alpha-2/alpha-3, numeric ccn3, IOC
        codes, and maintained aliases. Does not fuzzy-match country names.
      operationId: normalizeCountry
      parameters:
        - name: q
          in: query
          required: true
          description: Code or alias to normalize.
          schema:
            type: string
      responses:
        '200':
          description: Normalization result (valid may be false).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NormalizeCountry'
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  schemas:
    NormalizeCountry:
      type: object
      required:
        - input
        - valid
        - match
        - cca2
        - cca3
        - ccn3
        - cioc
      properties:
        input:
          type: string
        valid:
          type: boolean
        match:
          type: string
          nullable: true
          enum:
            - cca2
            - cca3
            - ccn3
            - cioc
            - alias
        cca2:
          type: string
          nullable: true
        cca3:
          type: string
          nullable: true
        ccn3:
          type: string
          nullable: true
        cioc:
          type: string
          nullable: true
    Error:
      type: object
      required:
        - message
        - status
      properties:
        message:
          type: string
        status:
          type: integer
  responses:
    BadRequest:
      description: Invalid query parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.