---
title: "Get information about a specific variable"
method: GET
path: "/variable/{variableID}"
tags: ["Variables"]
---

# Get information about a specific variable

`GET /variable/{variableID}`

## Path parameters

- `variableID` string, required

## Response `200`

The requested variable's information is sent back in the response body

- Variable
  - `defaultValue` string
  - `definitionPeriod` 'MONTH' | 'YEAR' | 'ETERNITY'
  - `description` string
  - `entity` string
  - `formulas` object
  - `id` string
  - `reference` string[]
  - `source` string
  - `valueType` 'Int' | 'Float' | 'Boolean' | 'Date' | 'String'

## Other responses

- `404` — The requested variable does not exist

## Changes

> 28 revisions in range; 3 could not be searched.

- **2022-10-16** `99fd939badee` — 2 warning
  - the optional response header `schema` removed for the status `200`
  - the optional response header `schema` removed for the status `404`
- **2022-10-16** `89012c518ce9` — 1 info
  - added the media type `application/json` for the response with the status `200`

[Change history](https://skmtc.dev/openfisca/apis/country-package-name-web-api/changes/variable/:variableID/get.md)

---

[API](https://skmtc.dev/openfisca/apis/country-package-name-web-api.md) · [All operations](https://skmtc.dev/openfisca/apis/country-package-name-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openfisca/country-package-name-web-api/revisions/297f18b6e68f/schema)
