plant nutrition.io

Crop Nutrient Removal Calculator

Open Calculator Read API Documentation

API Documentation

GET https://api.plantnutrition.io/nurd/toc

Retrieves a list of available crops.

Example request

Content-Type: application/json
Authorization: x-api-key

Example response

Content-Type: application/json

POST https://api.plantnutrition.io/nurd/calculator

Calculates a specific crop. The following properties are required:

cropKey
The crop to calculate. String Required
yieldGoal
The yield goal. Number Required
isImperialMath
The math preference. True=Imperial/US units. False=Metric units. Boolean Required

Example request

Content-Type: application/json
Authorization: x-api-key
Body:
In this example, "ww" refers to the crop "Wheat (winter) grain".

Example response

Content-Type: application/json

Python Examples with PlantNutrition NurdConnect.py

Python - Simple Example

This example uses the Python library PlantNutritionNurdConnect. It contains methods to access the API.
In this example, a crop calculation is hard-coded for "ws", with a yield goal of 2.5, and Metric math.

Python - Advanced Example

In this example, a list of available crops is returned from the API. The user is prompted for a crop, and yield goal. The results are then displayed.

Download Python Examples

This download includes: PlantNutritionNurdConnect.py

AWS Documentation

AWS diagram