---
title: "Get Kermap Ndvi Values From Geojson Polygon Input (Epsg:4326)"
method: POST
path: "/demo/ndvi-values-polygon/"
tags: ["API Demo endpoints"]
---

# Get Kermap Ndvi Values From Geojson Polygon Input (Epsg:4326)

`POST /demo/ndvi-values-polygon/`

Returns NDVI values from server based on date range and GEOJSON EPSG: 4326 Polygon coordinates.
```
"ndvi_values":[
    {
        "x":"2022-04",
        "y":0.71
    },
    {
        "x":"2022-05",
        "y":0.78
    },
    {
        "x":"2022-06",
        "y":0.81
    },
    {
        "x":"2022-07",
        "y":0.74
    },
    {
        "x":"2022-08",
        "y":0.66
    },
    {
        "x":"2022-09",
        "y":0.6
    }
]
```
x = Date,
y = Value

## Query parameters

- `date_from` string, required — Format - YYYYMM, eg. `202001`
- `date_to` string, required — Format - YYYYMM, eg. `202005`

## Request body

- object — EPSG:4326 Geojson FeatureCollection request body

## Response `200`

Successful Response

- NdviResponse — NDVI Response Model
  - `ndvi_values` Response[], required
    - `x` string, required
    - `y` number, nullable

## Other responses

- `403` — Unauthorized: You need a KERMAP Token
- `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)
