get https://api.mapmycrop.com/satellite/statistics
Remember
You will get data only for satellite data statistics for satellite imagery having ONLY less than 20% cloud color.
Advanced Data
This API endpoint will advanced pixel level information.
Endpoint: https://api.mapmycrop.com/satellite/statistics
Method: GET
Parameters:
Parameter | Type | Description |
---|---|---|
api_key | string ( Required) | Your unique API key provided by Mapmycrop |
farm_id | string ( Required) | ID of the farm, for which you want to retrieve satellite information. Each farm has a unique ID |
start_date | date ( Required) | The date for which you want to retrieve data, in YYYY-MM-DD format (e.g., 2024-06-29). |
end_date | date ( Required) | The date for which you want to retrieve data, in YYYY-MM-DD format (e.g., 2024-06-29). |
index | string (Required) | The remote sensing index to retrieve (e.g., NDVI, EVI, EV2, Water Stress Map). Refer to the previous API endpoints for more details. |
satellite | string ( Required) | The name of the satellite (e.g., S1, S2). |
interval | string ( Required) | Defaults to P1D |
Response:
[
{
"interval": {
"from": "2024-05-08T00:00:00Z",
"to": "2024-05-09T00:00:00Z"
},
"outputs": {
"data": {
"bands": {
"B0": {
"stats": {
"min": -0.06138613820075989,
"max": 0.9369582533836365,
"mean": 0.37907506603233526,
"stDev": 0.2919590260115986,
"sampleCount": 65536,
"noDataCount": 0
},
"histogram": {
"bins": [
{
"lowEdge": -0.06138613820075989,
"highEdge": 0.038448300957679746,
"count": 91
},
{
"lowEdge": 0.038448300957679746,
"highEdge": 0.13828274011611938,
"count": 636
},
{
"lowEdge": 0.13828274011611938,
"highEdge": 0.238117179274559,
"count": 39332
},
{
"lowEdge": 0.238117179274559,
"highEdge": 0.33795161843299865,
"count": 3931
},
{
"lowEdge": 0.33795161843299865,
"highEdge": 0.4377860575914383,
"count": 1765
},
{
"lowEdge": 0.4377860575914383,
"highEdge": 0.5376204967498779,
"count": 1456
},
{
"lowEdge": 0.5376204967498779,
"highEdge": 0.6374549359083176,
"count": 1251
},
{
"lowEdge": 0.6374549359083176,
"highEdge": 0.7372893750667572,
"count": 1573
},
{
"lowEdge": 0.7372893750667572,
"highEdge": 0.8371238142251968,
"count": 3525
},
{
"lowEdge": 0.8371238142251968,
"highEdge": 0.9369582533836365,
"count": 11976
}
],
"overflowCount": 0,
"underflowCount": 0
}
}
}
}
}
}
]