[comment]: # ({34f25b55-34f25b55})
# apiinfo.version

[comment]: # ({/34f25b55-34f25b55})

[comment]: # ({bc32199a-bc32199a})
### Apraksts

`string apiinfo.version(array)`

Šī metode ļauj izgūt Zabbix API versiju.

::: noteimportant
Šī metode ir pieejama tikai neautentificētiem
lietotājiem, un tā ir jāizsauc bez `auth` parametra JSON-RPC
pieprasījumā.
:::

[comment]: # ({/bc32199a-bc32199a})

[comment]: # ({4fa8a419-4fa8a419})
### Parametri

`(array)` Metode pieņem tukšu masīvu.

[comment]: # ({/4fa8a419-4fa8a419})

[comment]: # ({53521d11-53521d11})
### Atgrieztās vērtības

`(string)` Atgriež Zabbix API versiju.

::: notetip
Sākot ar Zabbix 2.0.4, API versija
atbilst Zabbix versijai.
:::

[comment]: # ({/53521d11-53521d11})

[comment]: # ({b41637d2-b41637d2})
### Piemēri

[comment]: # ({/b41637d2-b41637d2})

[comment]: # ({aeb6b774-6ba4bdd0})
#### API versijas iegūšana

Iegūstiet Zabbix API versiju.

[Pieprasījums](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "apiinfo.version",
    "params": [],
    "id": 1
}
```

Atbilde:

```json
{
    "jsonrpc": "2.0",
    "result": "7.0.0",
    "id": 1
}
```

[comment]: # ({/aeb6b774-6ba4bdd0})

[comment]: # ({25499b5e-25499b5e})
### Avots

CAPIInfo::version() failā *ui/include/classes/api/services/CAPIInfo.php*.

[comment]: # ({/25499b5e-25499b5e})
