> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Hosts

Retrieve a list of hosts.

**Note:** To pass additional Zabbix parameters, use the **Additional Parameters** field with the following format:

```
{
  "params": {
    "output": "extend",
    "selectInterfaces": "extend"
  }
}
```

<Note>
  External Documentation

  To learn more, visit the [Zabbix documentation](https://www.zabbix.com/documentation/7.4/en/manual/api/reference/host/get).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter            | Description                                                                                            |
  | -------------------- | ------------------------------------------------------------------------------------------------------ |
  | Group IDs            | Select the user groups to filter results by. Can be obtained from the `List User Groups` action.       |
  | Host IDs             | A comma-separated list of host IDs to filter results by. Can be obtained from the `List Hosts` action. |
  | Limit                | The maximum number of results to return.                                                               |
  | Monitored Hosts Only | Select to return only monitored hosts.                                                                 |
  | Request ID           | The ID to send with the request.                                                                       |
  | Sort Field           | Select the field to sort results by.                                                                   |
  | Sort Order           | Select the sort order.                                                                                 |
  | discovered           | A comma-separated list of discovered IDs to filter results by.                                         |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter             | Description                                                                                                                                                                                                                                                                                                                                                                                                             |
  | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Additional Parameters | A JSON object for additional body parameters. Values specified in this parameter will override equivalent parameters.<br /><br />For example:<br /><pre><code>\{<br />    "first\_key": 12345,<br />    "second\_key": "some\_value"<br />}</code></pre>The object must follow the vendor's structure as defined in the [API documentation](https://www.zabbix.com/documentation/7.4/en/manual/api/reference/host/get). |
</div>

## Example Output

```json theme={"dark"}
{
	"jsonrpc": "2.0",
	"result": [
		{
			"hostid": "10084",
			"host": "Zabbix server",
			"inventory": {
				"os": "Linux Ubuntu"
			}
		},
		{
			"hostid": "10107",
			"host": "Linux server",
			"inventory": {
				"os": "Linux Mint"
			}
		}
	],
	"id": 1
}
```

## Workflow Library Example

[List Hosts with Zabbix and Send Results Via Email](https://library.blinkops.com/workflows/list-hosts-with-zabbix-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-hosts-with-zabbix-and-send-results-via-email/canvas" />
</div>
