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

# Variables

> Search the V-Dem codebook (404 variables served by v-dem.net's graphing API) by tag, name or question text, filtered by thematic section, index level (high, mid, indicator, other) and the release a variable belongs to. Returns codebook metadata from a dated embedded snapshot of the official codebook entries; no live request.

## Request contract

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

[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.variables",
  "method": "POST",
  "path": "/apis/v1/v-dem-net/democracy/variables",
  "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": {
              "page_size": 5,
              "query": "v2x_polyarchy"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "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"
              }
            },
            "index_level": {
              "description": "index_level\n\nProvider reference: allowed values [\"high\", \"mid\", \"indicator\", \"other\", \"null\"].",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "high",
                  "mid",
                  "indicator",
                  "other",
                  "null"
                ]
              }
            },
            "page_size": {
              "default": 50,
              "description": "page_size\n\nProvider reference: minimum 1; maximum 2000; default 50.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 2000,
                "min": 1
              }
            },
            "query": {
              "description": "Case-insensitive match on tag, name or question text. Omit to list.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "section": {
              "description": "Thematic section substring, e.g. Elections, Civil Liberties, Judiciary, Liberal Democracy Index.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "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"
              }
            }
          },
          "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/variables
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/variables:
    post:
      tags:
        - V-Dem
      summary: Variables
      description: >-
        Search the V-Dem codebook (404 variables served by v-dem.net's graphing
        API) by tag, name or question text, filtered by thematic section, index
        level (high, mid, indicator, other) and the release a variable belongs
        to. Returns codebook metadata from a dated embedded snapshot of the
        official codebook entries; no live request.
      operationId: v-dem-net.democracy.variables
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  page_size: 5
                  query: v2x_polyarchy
            schema:
              additionalProperties: true
              properties:
                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
                index_level:
                  description: >-
                    index_level


                    Provider reference: allowed values ["high", "mid",
                    "indicator", "other", "null"].
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - high
                      - mid
                      - indicator
                      - other
                      - 'null'
                page_size:
                  default: 50
                  description: |-
                    page_size

                    Provider reference: minimum 1; maximum 2000; default 50.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 2000
                    min: 1
                query:
                  description: >-
                    Case-insensitive match on tag, name or question text. Omit
                    to list.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                section:
                  description: >-
                    Thematic section substring, e.g. Elections, Civil Liberties,
                    Judiciary, Liberal Democracy Index.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                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
              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: 2
                    function: variables
                    index_level: null
                    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: v2x_polyarchy
                    records:
                      - aggregation: >-
                          The index is formed by taking the average of, on the
                          one hand, the weighted average of the indices
                          measuring freedom of association thick
                          (v2x_frassoc_thick), clean elections (v2xel_frefair),
                          freedom of expression (v2x_freexp_altinf), elected
                          officials (v2x_elecoff), and suffrage (v2x_suffr) and,
                          on the other, the five-way multiplicative interaction
                          between those indices. This is half way between a
                          straight average and strict multiplication, meaning
                          the average of the two. It is thus a compromise
                          between the two most well known aggregation formulas
                          in the literature, both allowing partial
                          "compensation" in one sub-component for lack of
                          polyarchy in the others, but also punishing countries
                          not strong in one sub-component according to the
                          "weakest link" argument. The aggregation is done at
                          the level of Dahl's sub-components with the one
                          exception of the non-electoral component. The index is
                          aggregated using this formula: begin{equation*

                          begin{aligned

                          v2x_polyarchy = { & .5 * MPI + .5 * API 

                          & = .5 * (v2x_elecoff * v2xel_frefair * 
                          v2x_frassoc_thick * 

                          & v2x_suffr *  v2x_freexp_altinf) 

                          & + .5 * ((1/8) * v2x_elecoff + (1/4) * 
                          v2xel_frefair 

                          &  + (1/4) * v2x_frassoc_thick + (1/8) * v2x_suffr 

                          & + (1/4) * v2x_freexp_altinf)

                          end{aligned

                          end{equation*
                        clarification: >-
                          The electoral principle of democracy seeks to embody
                          the core value of making rulers responsive to
                          citizens, achieved through electoral competition for
                          the electorate's approval under circumstances when
                          suffrage is extensive; political and civil society
                          organizations can operate freely; elections are clean
                          and not marred by fraud or systematic irregularities;
                          and elections affect the composition of the chief
                          executive of the country. In between elections, there
                          is freedom of expression and an independent media
                          capable of presenting alternative views on matters of
                          political relevance. In the V-Dem conceptual scheme,
                          electoral democracy is understood as an essential
                          element of any other conception of representative
                          democracy --- liberal, participatory, deliberative,
                          egalitarian, or some other.
                        codebook_url: https://v-dem.net/documents/70/codebook_v16.pdf
                        cross_coder_aggregation: null
                        data_release: >-
                          1-16. Release 1-5 used a different, preliminary
                          aggregation formula.
                        first_release: v1
                        id: v16:v2x_polyarchy
                        index_level: high
                        index_root: Deliberative Democracy Index
                        last_release: v16
                        metadata_source: embedded_snapshot
                        name: Electoral democracy index
                        notes: null
                        parent_tags:
                          - v2x_delibdem
                        project_managers: Jan Teorell
                        question: >-
                          To what extent is the ideal of electoral democracy in
                          its fullest sense achieved?
                        question_id: 730
                        release_ranges:
                          - - 1
                            - 16
                        responses: null
                        scale: Interval, from low to high (0-1).
                        section: Deliberative Democracy Index
                        snapshot_date: '2026-09-12'
                        source_url: >-
                          https://v-dem.net/data_analysis/GetCodebookEntry/?question_id=730
                        source_variables:
                          - v2x_freexp_altinf
                          - v2x_frassoc_thick
                          - v2x_suffr
                          - v2xel_frefair
                          - v2x_elecoff
                        tag: v2x_polyarchy
                        version: v16
                        years: 1789-2025
                      - aggregation: >-
                          This index is formed by taking the sum of all past
                          values on the Electoral Democracy Index using a 1%
                          annual depreciation rate and then rescaling into a 0-1
                          interval. We assume that cases enter the sample with
                          no accumulated stock. For each subsequent year, we
                          calculate stock as the previous year’s depreciated
                          stock plus the prior year’s level of electoral
                          democracy (v2x polyarchy). To improve interpretability
                          and cross-country comparability, we rescale stock
                          variable to fall within the 0–1 interval. The stock
                          index is calculated using the following formula: The
                          procedure for filling gaps is as follows:  
                          [v2x_polyarchy_stock = (0.01) sum_{s=0^{t-1
                          0.99^{,t-1-s, v2x_polyarchy_{i, s ] (1) Historical
                          recoding (e.g., based on colonial or occupying
                          regimes) is applied where appropriate, following V-Dem
                          Country Coding Units guidance. These decisions aim to
                          balance historical continuity with transparency. (2)
                          Missing values are filled forward up to five years if
                          there is sufficient prior information (at least five
                          years of data before the gap). (3) If no prior data
                          exist or the gap exceeds five years, stock is left
                          missing. Full documentation of missing value handling
                          is available in the demstock package and in
                          citet{EdgellB.
                        clarification: >-
                          A country’s accumulated stock of electoral democracy
                          accounts for the cumulative sum of all past values on
                          the Electoral Democracy Index, with a one-percent
                          annual depreciation rate. This measure reflects the
                          extent to which a country has accumulated experience
                          over time with electoral democracy, compared to a
                          hypothetical country that has always attained the
                          ideal of electoral democracy to the fullest extent. A
                          higher value indicates longer or more consistent
                          electoral democracy, even if recent levels have
                          fluctuated.
                        codebook_url: https://v-dem.net/documents/70/codebook_v16.pdf
                        cross_coder_aggregation: null
                        data_release: '16.'
                        first_release: v16
                        id: v16:v2x_polyarchy_stock
                        index_level: other
                        index_root: null
                        last_release: v16
                        metadata_source: embedded_snapshot
                        name: Electoral Democracy Stock
                        notes: null
                        parent_tags: []
                        project_managers: >-
                          Vanessa Boese-Schlosser, Amanda B. Edgell, Matthew C.
                          Wilson
                        question: >-
                          What is the country’s accumulated stock of electoral
                          democracy?
                        question_id: 4819
                        release_ranges:
                          - - 16
                            - 16
                        responses: null
                        scale: Interval, from low to high (0-1).
                        section: Other
                        snapshot_date: '2026-09-12'
                        source_url: >-
                          https://v-dem.net/data_analysis/GetCodebookEntry/?question_id=4819
                        source_variables:
                          - v2x_polyarchy
                        tag: v2x_polyarchy_stock
                        version: v16
                        years: 1790-2025
                    retrieved_at: '2026-09-15T03:58:15.000Z'
                    schema_version: 1.0.0
                    section: null
                    source_release_date: 2026-03
                    source_updated_at: null
                    source_url: https://v-dem.net/data_analysis/VariableGraph/
                    source_version: v16
                    total: 2
                    version: v16
                    warnings:
                      - >-
                        codebook metadata is an embedded snapshot of
                        https://v-dem.net/data_analysis/GetCodebookEntry/ taken
                        2026-09-12; call `variable` for a live entry
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search the V-Dem codebook (404 variables served by v-dem.net's
            graphing API) by tag, name or question text, filtered by thematic
            section, index level (high, mid, indicator, other) and the release a
            variable belongs to. Returns codebook metadata from a dated embedded
            snapshot of the official codebook entries; no live request.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `citation` | string |  |

            | `complete` | boolean |  |

            | `count` | number |  |

            | `function` | string |  |

            | `index_level` | 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 |  |

            | `section` | 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 |  |

            | `version` | string |  |

            | `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.