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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Countries

> V-Dem country crosswalk (183 countries served by the graphing API): country_id, country_text_id, name, ISO3 or null with historical/non-ISO entities flagged, coded year span and V-Dem region; optional name/code/region filter. Embedded snapshot; no live request.

## Request contract

* **Method and path:** POST /apis/v1/v-dem-net/democracy/countries
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/v-dem-net/democracy/countries`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/v-dem-net.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "v-dem-net.democracy.countries",
  "method": "POST",
  "path": "/apis/v1/v-dem-net/democracy/countries",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "query": "SWE"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "include_historical": {
              "description": "include_historical",
              "type": "boolean",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "query": {
              "description": "query",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/v-dem-net.json POST /apis/v1/v-dem-net/democracy/countries
openapi: 3.1.0
info:
  description: ''
  title: V-Dem
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    v-dem-net:
      description: ''
      title: V-Dem
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: afa66f9b9173d9aeeb4aaff9fb379d659b95182a9bc65eac24dd46288277964e
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/v-dem-net/democracy/countries
    - /apis/v1/v-dem-net/democracy/data
    - /apis/v1/v-dem-net/democracy/datasets
    - /apis/v1/v-dem-net/democracy/ert
    - /apis/v1/v-dem-net/democracy/variable
    - /apis/v1/v-dem-net/democracy/variables
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:ec8c747a406d33b6c02dc402332b23b4d6d16d852807f0da68ba4b472f46260f
    facts_hash: afa66f9b9173d9aeeb4aaff9fb379d659b95182a9bc65eac24dd46288277964e
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: v-dem-net
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/v-dem-net/democracy/countries:
    post:
      tags:
        - V-Dem
      summary: Countries
      description: >-
        V-Dem country crosswalk (183 countries served by the graphing API):
        country_id, country_text_id, name, ISO3 or null with historical/non-ISO
        entities flagged, coded year span and V-Dem region; optional
        name/code/region filter. Embedded snapshot; no live request.
      operationId: v-dem-net.democracy.countries
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  query: SWE
            schema:
              additionalProperties: true
              properties:
                include_historical:
                  description: include_historical
                  type: boolean
                  x-alexandria-option-metadata:
                    in: body
                query:
                  description: query
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-15T03:58:15.000Z.
                  summary: Official provider example
                  value:
                    citation: >-
                      Coppedge, Michael, John Gerring, Carl Henrik Knutsen,
                      Staffan I. Lindberg, Jan Teorell, David Altman, Fabio
                      Angiolillo, Michael Bernhard, Agnes Cornell, M. Steven
                      Fish, Linnea Fox, Lisa Gastaldi, Haakon Gjerløw, Adam
                      Glynn, Ana Good God, Allen Hicken, Katrin Kinzelbach,
                      Joshua Krusell, Kyle L. Marquardt, Kelly McMann, Valeriya
                      Mechkova, Juraj Medzihorsky, Anja Neundorf, Pamela Paxton,
                      Daniel Pemstein, Josefine Pernes, Johannes von Römer,
                      Brigitte Seim, Rachel Sigman, Svend-Erik Skaaning, Jeffrey
                      Staton, Aksel Sundström, Marcus Tannenberg, Eitan Tzelgov,
                      Yi-ting Wang, Tore Wig, Steven Wilson and Daniel Ziblatt.
                      2026. "V-Dem [Country-Year/Country-Date] Dataset v16"
                      Varieties of Democracy (V-Dem) Project.
                      https://doi.org/10.23696/vdemds26.
                    complete: true
                    count: 1
                    function: countries
                    license: CC BY-SA 4.0
                    license_url: https://creativecommons.org/licenses/by-sa/4.0/
                    next_cursor: null
                    observed_at_ms: 1789444695000
                    offset: 0
                    query: SWE
                    records:
                      - country_id: 5
                        country_name: Sweden
                        country_text_id: SWE
                        first_year: 1900
                        historical_or_non_iso: false
                        id: country:5
                        iso3: SWE
                        last_year: 2025
                        region_path:
                          - Europe
                          - Nordic countries
                        source_url: >-
                          https://raw.githubusercontent.com/vdeminstitute/ERT/master/inst/ert.csv
                    retrieved_at: '2026-09-15T03:58:15.000Z'
                    schema_version: 1.0.0
                    snapshot_date: '2026-09-12'
                    source_release_date: 2026-03
                    source_updated_at: null
                    source_url: >-
                      https://raw.githubusercontent.com/vdeminstitute/ERT/master/inst/ert.csv
                    source_version: v16
                    total: 1
                    warnings: []
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            V-Dem country crosswalk (183 countries served by the graphing API):
            country_id, country_text_id, name, ISO3 or null with
            historical/non-ISO entities flagged, coded year span and V-Dem
            region; optional name/code/region filter. Embedded snapshot; no live
            request.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `citation` | string |  |

            | `complete` | boolean |  |

            | `count` | number |  |

            | `function` | string |  |

            | `license` | string |  |

            | `license_url` | string |  |

            | `next_cursor` | string |  |

            | `observed_at_ms` | number |  |

            | `offset` | number |  |

            | `query` | string |  |

            | `records` | object[] |  |

            | `retrieved_at` | string | RFC 3339 UTC time of retrieval. |

            | `schema_version` | string |  |

            | `snapshot_date` | string |  |

            | `source_release_date` | string |  |

            | `source_updated_at` | object | V-Dem publishes a release month
            only; never copied from retrieval time. |

            | `source_url` | string |  |

            | `source_version` | string |  |

            | `total` | number |  |

            | `warnings` | string[] |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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