---
title: "Get Field Data From Epsg:4326 Geojson Input"
method: POST
path: "/agri/field/data"
tags: ["AGRI endpoints"]
---

# Get Field Data From Epsg:4326 Geojson Input

`POST /agri/field/data`

Get crop information for each feature (boundaries) in the EPSG:4326 Geojson request body (could be a collection of points, polygons, etc.)

Returns the input Geojson in which each feature embeds a year by year crop information, as follows : 
```
"properties": {
    "data": [
        {
            "year": 2020,
            "crop": "MAIS",
            "code_cultu": "MIS",
            "stats": {
                "count": 524,
                "sum": 1048,
                "mean": 2,
                "stddev": 0,
                "min": 2,
                "max": 2
            }
        }
    ]
},
```

## Query parameters

- `year_from` integer — YEAR of the dataset to query - defaults to last year of available dataset
- `year_to` integer — YEAR of the dataset to query - defaults to last year of available dataset

## Request body

- object — EPSG:4326 Geojson FeatureCollection request body

## Response `200`

Successful Response

- unknown

## Other responses

- `403` — Area out of bounds, you are not allowed to query the requested data
- `404` — Not found
- `412` — No feature detected in Geojson input
- `422` — Validation Error

---

[API](https://skmtc.dev/nimbo/apis/nimbo-api.md) · [All operations](https://skmtc.dev/nimbo/apis/nimbo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nimbo/nimbo-api/revisions/33ea0b26547a/schema)
