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

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

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

`string apiinfo.version(array)`

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

::: noteimportant
Šī metode ir pieejama tikai neautentificētiem lietotājiem.
:::

[comment]: # ({/425f6e3f-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]: # ({d72dc18f-6ba4bdd0})
#### Zabbix 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.4.0",
    "id": 1
}
```

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

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

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

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