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

# Variable

> Live codebook entry for one V-Dem variable tag (question, clarification, scale, aggregation, source variables, data-release line) from v-dem.net, checked against the pinned release; a tag absent from that release is an input error naming the release that introduced or dropped it.

## Request contract

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

[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.variable",
  "method": "POST",
  "path": "/apis/v1/v-dem-net/democracy/variable",
  "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": {
              "tag": "v2x_polyarchy"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "tag": {
              "description": "Variable tag, e.g. v2x_polyarchy. Pattern: ^[A-Za-z0-9_]{2,64}$.",
              "type": "string"
            },
            "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"
              }
            }
          },
          "required": [
            "tag"
          ],
          "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/variable
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/variable:
    post:
      tags:
        - V-Dem
      summary: Variable
      description: >-
        Live codebook entry for one V-Dem variable tag (question, clarification,
        scale, aggregation, source variables, data-release line) from v-dem.net,
        checked against the pinned release; a tag absent from that release is an
        input error naming the release that introduced or dropped it.
      operationId: v-dem-net.democracy.variable
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  tag: v2x_polyarchy
            schema:
              additionalProperties: true
              properties:
                tag:
                  description: >-
                    Variable tag, e.g. v2x_polyarchy. Pattern:
                    ^[A-Za-z0-9_]{2,64}$.
                  type: string
                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
              required:
                - tag
              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: 1
                    function: variable
                    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
                    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: live
                        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
                    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/GetCodebookEntry/?question_id=730
                    source_version: v16
                    tag: v2x_polyarchy
                    total: 1
                    warnings: []
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Live codebook entry for one V-Dem variable tag (question,
            clarification, scale, aggregation, source variables, data-release
            line) from v-dem.net, checked against the pinned release; a tag
            absent from that release is an input error naming the release that
            introduced or dropped it.


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

            | `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_version` | string |  |

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