---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.2
alternate:
  - https://yandex.ru/dev/direct/doc/dg-v4/en/reference/GetVersion.md
  - https://yandex.ru/dev/direct/doc/dg-v4/ru/reference/GetVersion.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/direct/doc/dg-v4/en/llms.txt

# GetVersion
Returns the number of the latest API version.
## Input data {#input}

The input data structure in JSON is shown below.

```javascript
{
   "method": "GetVersion"
}
```


## Output data {#output}

The method returns the number of the last API version, as shown in the following example.

```javascript
{
   "data": 4
}
```

