---
url: https://docs.geo.admin.ch/access-data/find-features.md
---
# Find Features

Find features in a specific layer by searching for a matching attribute.

::: warning
A maximum of 200 features can be retrieved per request.
To download a larger number of features or entire datasets, use the file-based [STAC API](/download-data/stac-api/overview.md).

Do not send requests over a grid of bounding boxes to export a layer. We block clients that do this.
This also applies to scripts that AI agents generate. See [Fair Use](/get-started/overview.md#fair-use).
:::

## Request Details

To interact with the find features service, you need to provide specific parameters in your request.
This endpoint only has query parameters that modify the behavior of the request, some are required and some are optional.

### Query Parameters

| Parameters                    | Description                                                                                                                                                                                                                                              |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **layer (required)**          | A layer ID (only one layer at a time can be specified).                                                                                                                                                                                                  |
| **searchText (required)**     | The text to search for (one can use numerical values as well).                                                                                                                                                                                           |
| **searchField (required)**    | The name of the field to search (only one search field can be searched at a time).                                                                                                                                                                       |
| **contains (optional)**       | If false, the operation searches for an exact match of the searchText string. An exact match is case sensitive. Otherwise, it searches for a value that contains the searchText string provided. This search is not case sensitive. The default is true. |
| **geometryFormat (optional)** | Returned geometry format. Default to ESRI geometry format. Supported values are: "esrijson" or "geojson".                                                                                                                                                |
| **returnGeometry (optional)** | This parameter defines whether the geometry is returned or not. Default to "true".                                                                                                                                                                       |
| **sr (optional)**             | The spatial reference. Supported values: 21781 (LV03), 2056 (LV95), 4326 (WGS84) and 3857 (Web Pseudo-Mercator). Defaults to "21781".                                                                                                                    |
| **lang (optional)**           | The language. Supported values: de, fr, it , rm, en. Defaults to "de".                                                                                                                                                                                   |
| **layerDefs (optional)**      | Filter features with an expression (see [identify features](/access-data/identify-features##layerdefs-syntax)) Syntax: { "\<layerId>" : "\<layerDef1>"}                                                                 |
| **callback (optional)**       | The name of the callback function.                                                                                                                                                                                                                       |

## Examples

Search for “Lavaux” in the field `bln_name` of the layer `ch.bafu.bundesinventare-bln` (substring match):

Search for `12316` in the field `egid` of the layer `ch.bfs.gebaeude_wohnungs_register` (substring match):

Search for `123164` in the field `egid` of the layer `ch.bfs.gebaeude_wohnungs_register` (exact match):

Search for the `Talstrasse` in Commune `Full-Reuenthal`
