> ## 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

# Data

> Country-year observations for up to 5 variables and 50 countries (ISO3 or V-Dem country_text_id) from v-dem.net's official graphing API for the pinned release (v16, 1789-2025), optionally year-bounded, with codelow/codehigh bounds. Sorted by variable, country_id, year; paginated with next_cursor.

## Request contract

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

[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.data",
  "method": "POST",
  "path": "/apis/v1/v-dem-net/democracy/data",
  "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": {
              "countries": [
                "SWE"
              ],
              "page_size": 5,
              "variables": [
                "v2x_polyarchy"
              ],
              "year_from": 2020
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "countries": {
              "description": "ISO3 codes or V-Dem country_text_id values (ZZB, PSG, SML, XKX, DDR, VDR, YMD, PSB are V-Dem-only).",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "cursor": {
              "description": "Opaque cursor from a previous page's next_cursor (format o<offset>). null or omitted starts at the first page.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "include_uncertainty": {
              "description": "include_uncertainty",
              "type": "boolean",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "page_size": {
              "default": 100,
              "description": "page_size\n\nProvider reference: minimum 1; maximum 2000; default 100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 2000,
                "min": 1
              }
            },
            "variables": {
              "description": "Variable tags, e.g. v2x_polyarchy.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "version": {
              "default": "v16",
              "description": "Dataset release to pin, e.g. v16. Live observations are served for the current release only (v16, March 2026); variable metadata can be filtered for any release via the codebook's data-release line. Pattern: ^v?[0-9]{1,2}$.\n\nProvider reference: default \"v16\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "year_from": {
              "description": "year_from\n\nProvider reference: minimum 1789; maximum 2100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 2100,
                "min": 1789
              }
            },
            "year_to": {
              "description": "year_to\n\nProvider reference: minimum 1789; maximum 2100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 2100,
                "min": 1789
              }
            }
          },
          "required": [
            "countries",
            "variables"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "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/data
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/data:
    post:
      tags:
        - V-Dem
      summary: Data
      description: >-
        Country-year observations for up to 5 variables and 50 countries (ISO3
        or V-Dem country_text_id) from v-dem.net's official graphing API for the
        pinned release (v16, 1789-2025), optionally year-bounded, with
        codelow/codehigh bounds. Sorted by variable, country_id, year; paginated
        with next_cursor.
      operationId: v-dem-net.democracy.data
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  countries:
                    - SWE
                  page_size: 5
                  variables:
                    - v2x_polyarchy
                  year_from: 2020
            schema:
              additionalProperties: true
              properties:
                countries:
                  description: >-
                    ISO3 codes or V-Dem country_text_id values (ZZB, PSG, SML,
                    XKX, DDR, VDR, YMD, PSB are V-Dem-only).
                  items:
                    type: string
                  type: array
                cursor:
                  description: >-
                    Opaque cursor from a previous page's next_cursor (format
                    o<offset>). null or omitted starts at the first page.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                include_uncertainty:
                  description: include_uncertainty
                  type: boolean
                  x-alexandria-option-metadata:
                    in: body
                page_size:
                  default: 100
                  description: |-
                    page_size

                    Provider reference: minimum 1; maximum 2000; default 100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 2000
                    min: 1
                variables:
                  description: Variable tags, e.g. v2x_polyarchy.
                  items:
                    type: string
                  type: array
                version:
                  default: v16
                  description: >-
                    Dataset release to pin, e.g. v16. Live observations are
                    served for the current release only (v16, March 2026);
                    variable metadata can be filtered for any release via the
                    codebook's data-release line. Pattern: ^v?[0-9]{1,2}$.


                    Provider reference: default "v16".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                year_from:
                  description: |-
                    year_from

                    Provider reference: minimum 1789; maximum 2100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 2100
                    min: 1789
                year_to:
                  description: |-
                    year_to

                    Provider reference: minimum 1789; maximum 2100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 2100
                    min: 1789
              required:
                - countries
                - variables
              type: object
        required: true
      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: 5
                    countries:
                      - SWE
                    function: data
                    include_uncertainty: true
                    license: CC BY-SA 4.0
                    license_url: https://creativecommons.org/licenses/by-sa/4.0/
                    next_cursor: o5
                    observed_at_ms: 1789444695000
                    offset: 0
                    records:
                      - codehigh: '0.94'
                        codelow: '0.869'
                        coder_count: null
                        country_id: 5
                        country_name: Sweden
                        country_text_id: SWE
                        historical_date: null
                        historical_or_non_iso: false
                        id: v16:v2x_polyarchy:SWE:2020
                        iso3: SWE
                        ordinal: null
                        question_id: 730
                        release_date: 2026-03
                        scale: Interval, from low to high (0-1).
                        sd: null
                        source_url: >-
                          https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable
                        unit: Interval, from low to high (0-1).
                        value: '0.901'
                        value_num: 0.901
                        variable: v2x_polyarchy
                        version: v16
                        year: 2020
                      - codehigh: '0.938'
                        codelow: '0.871'
                        coder_count: null
                        country_id: 5
                        country_name: Sweden
                        country_text_id: SWE
                        historical_date: null
                        historical_or_non_iso: false
                        id: v16:v2x_polyarchy:SWE:2021
                        iso3: SWE
                        ordinal: null
                        question_id: 730
                        release_date: 2026-03
                        scale: Interval, from low to high (0-1).
                        sd: null
                        source_url: >-
                          https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable
                        unit: Interval, from low to high (0-1).
                        value: '0.9'
                        value_num: 0.9
                        variable: v2x_polyarchy
                        version: v16
                        year: 2021
                      - codehigh: '0.935'
                        codelow: '0.864'
                        coder_count: null
                        country_id: 5
                        country_name: Sweden
                        country_text_id: SWE
                        historical_date: null
                        historical_or_non_iso: false
                        id: v16:v2x_polyarchy:SWE:2022
                        iso3: SWE
                        ordinal: null
                        question_id: 730
                        release_date: 2026-03
                        scale: Interval, from low to high (0-1).
                        sd: null
                        source_url: >-
                          https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable
                        unit: Interval, from low to high (0-1).
                        value: '0.892'
                        value_num: 0.892
                        variable: v2x_polyarchy
                        version: v16
                        year: 2022
                      - codehigh: '0.926'
                        codelow: '0.85'
                        coder_count: null
                        country_id: 5
                        country_name: Sweden
                        country_text_id: SWE
                        historical_date: null
                        historical_or_non_iso: false
                        id: v16:v2x_polyarchy:SWE:2023
                        iso3: SWE
                        ordinal: null
                        question_id: 730
                        release_date: 2026-03
                        scale: Interval, from low to high (0-1).
                        sd: null
                        source_url: >-
                          https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable
                        unit: Interval, from low to high (0-1).
                        value: '0.883'
                        value_num: 0.883
                        variable: v2x_polyarchy
                        version: v16
                        year: 2023
                      - codehigh: '0.92'
                        codelow: '0.843'
                        coder_count: null
                        country_id: 5
                        country_name: Sweden
                        country_text_id: SWE
                        historical_date: null
                        historical_or_non_iso: false
                        id: v16:v2x_polyarchy:SWE:2024
                        iso3: SWE
                        ordinal: null
                        question_id: 730
                        release_date: 2026-03
                        scale: Interval, from low to high (0-1).
                        sd: null
                        source_url: >-
                          https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable
                        unit: Interval, from low to high (0-1).
                        value: '0.881'
                        value_num: 0.881
                        variable: v2x_polyarchy
                        version: v16
                        year: 2024
                    retrieved_at: '2026-09-15T03:58:15.000Z'
                    schema_version: 1.0.0
                    source_release_date: 2026-03
                    source_updated_at: null
                    source_url: https://v-dem.net/data_analysis/VariableGraph/
                    source_urls:
                      - >-
                        https://v-dem.net/data_analysis/GetGraphData/?country_id=5&question_id=730&scale=Original&graph_type=Variable
                    source_version: v16
                    total: 6
                    variables:
                      - v2x_polyarchy
                    version: v16
                    warnings: []
                    year_from: 2020
                    year_to: null
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Country-year observations for up to 5 variables and 50 countries
            (ISO3 or V-Dem country_text_id) from v-dem.net's official graphing
            API for the pinned release (v16, 1789-2025), optionally
            year-bounded, with codelow/codehigh bounds. Sorted by variable,
            country_id, year; paginated with next_cursor.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `citation` | string |  |

            | `complete` | boolean |  |

            | `count` | number |  |

            | `countries` | string[] |  |

            | `function` | string |  |

            | `include_uncertainty` | boolean |  |

            | `license` | string |  |

            | `license_url` | string |  |

            | `next_cursor` | string |  |

            | `observed_at_ms` | number |  |

            | `offset` | number |  |

            | `records` | object[] |  |

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

            | `schema_version` | 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_urls` | string[] |  |

            | `source_version` | string |  |

            | `total` | number |  |

            | `variables` | string[] |  |

            | `version` | string |  |

            | `warnings` | string[] |  |

            | `year_from` | number |  |

            | `year_to` | number |  |



            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.