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

# Länderliste

> Die Ländercodes, die eine Engine annimmt, aus denselben Regeln, die eine Übermittlung prüfen. Filter mit ?model=.

Ohne `model` liefert der Endpoint alle vergebenen ISO-3166-1-alpha-2-Codes. Mit `model` liefert er nur die Länder, die diese Engine annimmt; eine Auswahl aus dieser Liste bietet also keine Kombination an, die die Übermittlung mit `422 REGION_UNSUPPORTED` ablehnt.

`COMMERCE_SERP` und `COMMERCE_PRODUCT` liefern die Länder aller ihrer Shops. Jeder Shop bedient genau ein Land: Senden Sie die `site` oder die Produkt-URL, die zum gewählten Land gehört; jede andere Kombination liefert `422 REGION_UNSUPPORTED`.

Neben unseren taskTypes werden die Anbieternamen von Cloro akzeptiert. `aioverview` und `GOOGLE` bezeichnen die AI-Overviews-Engine, `google` und `GOOGLE_SERP` die Such-Engine. Eine Engine, die wir nicht verkaufen, liefert `400 VALIDATION_ERROR`.

Die Liste ändert sich selten: beim Start einmal abrufen und mindestens 24 Stunden zwischenspeichern. Die Antwort ist das Array selbst, wie bei Cloro, mit `Cache-Control: public, max-age=3600`.


## OpenAPI

````yaml GET /v1/countries
openapi: 3.1.0
info:
  title: querying.ai
  description: >-
    One API for every AI answer engine. Every task is asynchronous: submit, then
    collect the result via webhook or polling.
  version: 1.0.0
servers:
  - url: https://api.querying.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/countries:
    get:
      tags:
        - Operations
      summary: List of countries
      description: >-
        The ISO 3166-1 alpha-2 codes one engine accepts, and every assigned code
        when no model is named. Read it at start-up and cache it: the list
        changes rarely. Filtering follows the same rules that validate a
        submission, so a country from this list passes submit. COMMERCE_SERP and
        COMMERCE_PRODUCT list the countries of all their storefronts, and each
        storefront serves one country, so the `site` or product URL must belong
        to the country sent. A model we do not sell returns 400. The response is
        a bare array, as in Cloro, so a client that moves over parses it
        unchanged.
      operationId: getCountries
      parameters:
        - name: model
          in: query
          required: false
          description: >-
            One engine. Cloro's provider names are accepted alongside our
            taskTypes: `aioverview` and `GOOGLE` are the AI Overviews engine,
            `google` and `GOOGLE_SERP` the search one. Aliases such as
            `bing_copilot_search` work too.
          schema:
            type: string
            examples:
              - aioverview
              - aimode
              - bing_aimode
              - chatgpt
              - gemini
              - google
              - perplexity
          example: bing_aimode
      responses:
        '200':
          description: Country codes, ascending.
          headers:
            Cache-Control:
              schema:
                type: string
                example: public, max-age=3600
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                  example: US
              example:
                - AE
                - AU
                - BR
                - CA
                - DE
                - EE
                - ES
                - FR
                - GB
                - HK
                - HU
                - IE
                - IN
                - IT
                - JP
                - MX
                - NL
                - PL
                - PT
                - RO
                - RS
                - SE
                - SG
                - SK
                - TR
                - US
                - ZA
        '400':
          description: '`model` is not an engine we sell.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Request validation failed
                  details:
                    - field: model
                      message: '''grok'' is not a model we serve; use one of ...'
                  timestamp: '2026-11-10T02:00:00.000Z'
      security: []
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          $ref: '#/components/schemas/ErrorDetail'
    ErrorDetail:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Stable, safe to branch on. See the Errors guide for the full list.
        message:
          type: string
          description: For humans. May change.
        details:
          description: >-
            Context for the error. An array of `{field, message}` on most
            `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on
            `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted
            when there is nothing to add.
          oneOf:
            - type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
            - type: object
              additionalProperties: true
        timestamp:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer <key>`.'

````

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