ML model predicting hidden tech salaries across Africa from job descriptions | XGBoost, FastAPI, Docker, SHAP, React
π API Docs Β· π Live App Β· π» GitHub Β· π Report Bug
> **"70%+ of African tech job posts hide salary information.**
> AfriSalaries predicts whether a role is LOW, MEDIUM, or HIGH relative
> to the local market β with a full breakdown of every factor that drove
> the classification. Built in Kisumu, Kenya. Trained on real data."
---
## β The Problem
African tech is one of the fastest-growing talent markets on the planet β yet it remains one of the most opaque when it comes to compensation. Over 70% of tech job posts across Africa include no salary information whatsoever.
- A junior engineer in Nairobi accepts KES 80,000/month not knowing the market rate is KES 140,000
- An HR team in Amsterdam sets pay for a Lagos remote hire using European benchmarks and gets it wrong
- A startup in Accra loses candidates to a competitor that was simply transparent about pay
- A Kenyan diaspora professional returning home cannot benchmark what they should ask for after years earning in GBP or EUR
The information asymmetry is structural. Companies have salary bands. Candidates have nothing.
---
## π‘ The Solution
AfriSalaries takes any tech job description as plain text and returns a **salary band** β LOW, MEDIUM, or HIGH relative to the local market β with the salary range, country-specific median, and a ranked list of which factors drove the classification.
No account. No form. Paste the description. Get the band. Understand why.
```bash
curl -X POST
afrisalaries.onrender.com \
-H "Content-Type: application/json" \
-d '{
"description": "Senior Python Developer 8yrs AWS Kubernetes Remote Nairobi Kenya fintech",
"country": "KE"
}'
```
**Response:**
```json
{
"band": "MEDIUM",
"band_meaning": "At market rate β negotiate on specific skills and experience.",
"salary_low": 23057,
"salary_mid": 27692,
"salary_high": 38898,
"currency": "USD",
"confidence": 0.482,
"country_median": 27692,
"top_factors": [
"Seniority: Senior (+85%)",
"High-value skills: AWS, Kube β¦