# 86. Запрос: получить «Фермы»

Ниже приведено описание базового GraphQL-запроса, используемого для получения всех «Ферм», доступных пользователю:

{% code overflow="wrap" lineNumbers="true" %}

```graphql
запрос FetchAllFarms {
  getFarms {
    uuid
    userUuid
    название
    farmOwnership
    externalKey
    ownerEmail
    датаСоздания
    updatedDate
  }
}
```

{% endcode %}

В дополнение к другим параметрам вы можете использовать `farmUuids` и `externalKeys` фильтры для настройки ответа. Эти фильтры можно применять независимо или в комбинации, что позволяет более целенаправленно получать данные.

{% code overflow="wrap" lineNumbers="true" %}

```graphql
запрос FetchAllFarmsWithFilters {
  getFarms(
    farmUuids:["<placeholder_of_farm_uuid>"], 
    externalKeys:["<placeholder_of_external_key>"]
  ) {
    uuid
    userUuid
    название
    farmOwnership
    externalKey
    ownerEmail
    датаСоздания
    updatedDate
  }
}
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.geopard.tech/geopard-tutorials/ru/dokumentaciya-api/obzor-zaprosov-api-geopard/86.-zapros-poluchit-fermy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
