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

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

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

`string apiinfo.version(array)`

Ta metoda pozwala na pobranie wersji API Zabbix.

::: noteimportant
Ta metoda jest dostępna tylko dla nieuwierzytelnionych użytkowników.
:::

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

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

`(array)` Metoda akceptuje pustą tablicę.

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

[comment]: # ({53521d11-53521d11})
### Zwracane wartości

`(string)` Zwraca wersję API Zabbix.

::: notetip
Zaczynając od wersji Zabbix 2.0.4, wersja API
jest taka sama jak wersja Zabbix.
:::

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

[comment]: # ({b41637d2-b41637d2})
### Przykłady

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

[comment]: # ({e03a5558-6ba4bdd0})
#### Pobieranie wersji API

Pobierz wersję API Zabbix.

[Żądanie](/manual/api#performing-requests):

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

Odpowiedź:

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

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

[comment]: # ({25499b5e-25499b5e})
### Źródło

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

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