Building Actionable Intel for Agriculture

In addition to our application, we created an API to incorporate into existing workflows and provide simple access to our data. With our API you can determine the predicted yield with an associated error rate for an area of interest. In its current form, one prediction was made in each growing season from 2010–2015. This was done in mid May of each year, several months before harvest.

The API can be accessed via several tools and programming languages. We like to use cURL and Python.

To begin using, find your API key from your profile highlighted in blue.

Access available crop ID for yield prediction.

curl -H “Authorization: YOUR_API_KEY” https://app.vinsight.co/api/crops

Crop response.

{
“crops”: [
{
“id”: 75,
“name”: “Almonds”
},
{
“id”: 69,
“name”: “Grapes”
},
{
“id”: 3,
“name”: “Rice”
}
]
}

Select crop, year, geometry and lat/long to calculate yield prediction.

curl -H “Authorization: YOUR_API_KEY”                               -H “Content-Type: application/json”                                  -X PUT                                                              -d ‘{“crop”:69,”year”:2010,”geojson”:{“type”:”Feature”,”properties”:{},”geometry”:{“type”:”Polygon”,”coordinates”:[[[-121.2403106689453,37.99751544814143],[-121.2403106689453,38.016451585943095],[-121.1960220336914,38.016451585943095],[-121.1960220336914,37.99751544814143],[-121.2403106689453,37.99751544814143]]]}}}’ https://app.vinsight.co/api/yield

Yield response.

{
“error”: 0.085,
“yield”: “7.5 tons/acre”
}

We are currently testing our pipeline for 2016 data and will be releasing it in the coming weeks. Stay tuned for more features and as always follow us on twitter @VinsightCo for updates.

Sign up for access to our app and API at https://app.vinsight.co/signup