AGRICULTURAL DATA API
Ujuzi Data
Build agricultural applications with real soil data, crop recommendations, and weather intelligence.
API CAPABILITIES
What You Can Access
Comprehensive agricultural data endpoints for building powerful applications
Soil Data API
Access NPK levels, pH, moisture, and organic matter data for any location
Crop Recommendations
Get AI-powered crop suggestions based on soil, climate, and season
Weather Forecasts
Hyperlocal weather data and 14-day forecasts for agricultural planning
Market Prices
Real-time commodity prices from major markets across Kenya
Disease Detection
AI-powered crop disease identification from images
Yield Predictions
Forecast crop yields based on multiple environmental factors
USE CASES
What You Can Build
Our API powers agricultural applications across multiple sectors
Farm Management Apps
Build mobile or web apps that help farmers manage operations with real agricultural data
Advisory Platforms
Provide data-driven recommendations through SMS, WhatsApp, or custom platforms
Input Marketplaces
Show farmers exactly what fertilizers or seeds they need based on soil conditions
Research & Analytics
Access aggregated data for research, policy development, or market analysis
DEVELOPER FRIENDLY
Simple, RESTful API
Clean JSON responses, comprehensive documentation, and code examples in multiple languages. Get started in minutes.
RESTful Design
Standard HTTP methods and status codes
Code Examples
Python, JavaScript, PHP, and cURL examples
Comprehensive Docs
Detailed documentation with examples and best practices
{
"status": "success",
"data": {
"location": {
"latitude": -1.2864,
"longitude": 36.8172
},
"soil": {
"nitrogen": 45.2,
"phosphorus": 18.5,
"potassium": 220,
"ph": 6.5,
"moisture": 32,
"organic_matter": 3.8
},
"units": {
"npk": "ppm",
"moisture": "percent"
}
}
}
PRICING
Simple, Transparent Pricing
Start free, scale as you grow
QUICK START
Get Started in Minutes
Example: Get Soil Data
cURL
curl -X GET \
"https://api.ujuzikilimo.com/v1/soil-data?latitude=-1.2864&longitude=36.8172" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Python
import requests
url = "https://api.ujuzikilimo.com/v1/soil-data"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
params = {"latitude": -1.2864, "longitude": 36.8172}
response = requests.get(url, headers=headers, params=params)
data = response.json()
JavaScript
const response = await fetch(
'https://api.ujuzikilimo.com/v1/soil-data?latitude=-1.2864&longitude=36.8172',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
}
);
const data = await response.json();
Ready to Start Building?
Sign up for a free account and get your API key in under 2 minutes.
Need enterprise features or higher limits?