---
title: "Why is my API query returning more information than I expect?"
description: "API queries may return more information than expected if the filters used are invalid. Refer to the Opsview API documentation for correct filter examples to ensure queries return the intended filtered results."
url: "https://docs.itrsgroup.com/docs/faq/opsview/4921888400797-opsview-why-is-my-api-query-returning-more-information-than-i-expect/index.html"
---
Your API query may have invalid filters. If your API query has invalid filters, the API returns the unfiltered result of your query.

You should refer to [our API documentation](https://docs.itrsgroup.com/docs/opsview/current/rest-api/rest-api-background/api-introduction/index.html) for examples of correct filters for each endpoint.

## Example

When querying `config/host` and filtering to only return host information for the host where `id = 1`, information about all hosts is returned if the filter is invalid.

This incorrect query returns information about all hosts:

```
GET config/host?host.id=1
```

This correct query returns information about only the host for which `id = 1`:

```
GET config/host?s.id=1
```


