DEV Community

Madhav Adhikari
Madhav Adhikari

Posted on

I made a jobs API and put it on RapidAPI, here is what I learned

I made a jobs API and put it on RapidAPI, here is what I learned

I am not from US or UK. Finding job data for my country is hard. Most APIs only cover US or UK jobs and they cost a lot of money.

So I built my own.

It is called JobSphere API. It gives you live job listings, salary data, and hiring trends. It covers 10 countries including US, UK, Australia, Canada, Germany, France, India, Singapore, Netherlands, and South Africa.

What it does

You send a keyword and a country code. It gives you back jobs.

GET /jobs/search?keyword=python+developer&country=us
Enter fullscreen mode Exit fullscreen mode

You get job title, company, location, salary, description, and apply link. Real data, not fake.

There is also a salary endpoint. You ask for a job title and country, it tells you the average salary, minimum, and maximum. I found this very useful when I was trying to understand if a salary offer was good or not.

GET /jobs/salary?keyword=data+scientist&country=gb
Enter fullscreen mode Exit fullscreen mode

And there is a trending endpoint. It shows how many job vacancies exist over time. You can see if hiring is going up or down in a country.

How I built it

I used FastAPI and Python. The data comes from Adzuna which has a free API key for developers. I hosted it on Render free tier.

Total cost: zero dollars.

I had no experience deploying APIs before this. I made mistakes. The first deploy failed because I forgot the start command. But it works now.

Problems I had

Render free tier sleeps after inactivity. So the first request is slow, maybe 30 seconds. After that it is fast. I fixed this with a free uptime monitor that pings the server every 14 minutes.

Reddit removed my posts two times because my account is new. So I am writing here instead.

Who might use this

If you are building a job board, a salary calculator, a career app, or just need job data for a project, this might help you. The free tier is 100 requests per month, no credit card needed.

Paid plans start at $9.99 per month.

Link: https://rapidapi.com/adhikariparzival/api/jobsphere-api

I am still learning. If something is broken or you need a different country or endpoint, tell me in the comments. I will try to add it.

Top comments (0)