---
title: "Get The Stats From Majority Pra (Small Agricultural Region) From Epsg:4326 Geojson Input"
method: POST
path: "/agri/pra-maj"
tags: ["AGRI endpoints"]
---

# Get The Stats From Majority Pra (Small Agricultural Region) From Epsg:4326 Geojson Input

`POST /agri/pra-maj`

Get stats form PRA (Small Agricultural Region). If a plot overlaps two PRA then the statistics of the majority PRA is returned. 
Returns the input Geojson in which each feature embeds cover information, as follows : 
```
[
    {
        "year": 2020,
        "method": "original",
        "pra_stats": {
            "name": "praREGION_CENTRALE_comSAINT_GILLES",
            "ddc_meanp_pra_all": 325,
            "ddc_70qp_pra_all": 344,
            "ddc_70qp_pra_grd_culture": 326,
            "ddc_q3_pra_grd_culture": 341,
            "ddc_meanp_pra_grd_culture": 307,
            "ddc_meanp_pra_div": 317,
            "ddc_70qp_pra_div": 336,
            "ddc_q3_pra_div": 363
        }
    }
]

```

## Query parameters

- `year_from` integer — YEAR of the DDC/PRA dataset to query - defaults to last year of available dataset
- `year_to` integer — YEAR of the DDC/PRA 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` — Unauthorized: You need a KERMAP Token
- `404` — Not found
- `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)
