[comment]: # translation:outdated

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

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

[comment]: # ({new-bc32199a})
### Description

`string apiinfo.version(array)`

This method allows to retrieve the version of the Zabbix API.

::: noteimportant
This method is only available to unauthenticated
users and must be called without the `auth` parameter in the JSON-RPC
request.
:::

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

[comment]: # ({4fa8a419-4fa8a419})
### Paraméterek

`(tömb)` A metódus üres tömböt fogad el.

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

[comment]: # ({53521d11-53521d11})
### Visszatérési értékek

`(string)` A Zabbix API verzióját adja vissza.

::: jegyzet
A Zabbix 2.0.4-től kezdve az API verziója
megegyezik a Zabbix verziójával.
:::

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

[comment]: # ({b41637d2-b41637d2})
### Példák

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

[comment]: # ({new-6ba4bdd0})
#### Retrieving the version of the API

Retrieve the version of the Zabbix API.

Request:

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

Response:

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

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

[comment]: # ({25499b5e-25499b5e})
### Forrás

CAPInfo::version() az *ui/include/classes/api/services/CAPIInfo.php*-ban.

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