Job Board – Retrieving listings using the Reed API

Job boards are a great way for people to find work online, with the arrival of LinkedIn they are still valid contenders for employees on the prowl. The creating of a job board would curate several listings from various sources and present them to the user. Whilst you could reach out to employers directly to have their jobs listed on your site, I don’t think it would be wise to do this so soon.

Reed is an employment agency within the UK that have a vast amount of job listings available and offer an API for developers. Using the Reed API as a start we will receive the relevant data and present it on the job board. If you are wanting to make use of the API, request and generate an API key by clicking here.

Using Python in this example we can then form our request for jobs, our job board will be niche and focus on IT jobs within the London area.

https://www.reed.co.uk/api/1.0/search?keywords=IT Support &location=London&distanceFromLocation=10&resultsToTake=100

So we are requesting IT Support jobs that are within a 10 mile radius from London with a request of 100 listings. 100 is the maximum amount of listings that a request can be made for, being said there is also a results to skip parameter which enables us to further results. And so if we want the next set of 100 our request would change to.

https://www.reed.co.uk/api/1.0/search?keywords=IT Support &location=London&distanceFromLocation=10&resultsToTake=100&resultsToSkip=100

Source code on retrieving listing data from Reed can be found below:

import requests
import json

r = requests.get('https://www.reed.co.uk/api/1.0/search?keywords=IT Support Officer&location=London&distanceFromLocation=10&resultsToTake=10', auth=('YOUR_API_KEY', 'LEAVE_BLANK'))
data = r.json()
results = (data.get('results'))
for Job in results:
    print(Job)

Leave a Reply