get https://api.mapmycrop.com/satellite/statistic-historic
This endpoints gives you all data necessary to build a graph for Crop growth stages along with soil data.
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). |
soil | string ( Required) | You can either choose "Soil Moisture" or "Soil Temperature" as input denoted by "moisture" and "temperature" respectively. |
Response:
{
"weather": {
"timestamp": [
"2024-05-08",
"2024-05-09"
],
"precipitation": [
0.242,
1.304
],
"soil_moisture_0_to_7cm": [
0.354,
0.383
],
"soil_moisture_7_to_28cm": [
0.346,
0.358
]
},
"indices": {
"timestamp": [],
"min": [],
"max": [],
"mean": []
}
}