Back to Blog
Coding March 20, 2020 5 min read

Python Wrapper for Indeed Job Search API

If you are searching for jobs, or building a jobs database, Indeed is your first stop.

Python Indeed API wrapper

If you are searching for jobs, or building a jobs database, Indeed is your first stop. One of the largest job aggregator out there, Indeed has loads of active jobs in every industry and it also offers an API to search for job listings based on various parameters.

Recently, I was looking for a Python wrapper to work with Indeed API. Unable to find one that fulfills my requirements, I wrote a quick and simple Python script that consumes Indeed job search API and stores the search results in a CSV.

Why Use the Indeed API?

Python wrapper for Indeed Job Search API.

In order to run the script and fetch jobs from Indeed job search API, you must have:

Usage:

The code for Python wrapper for Indeed Job Search API is available at GitHub. Download it from here.

Open indeedapiwrapper.py, add following parameters to fetch job listings through Indeed Job Search API:

params = {
    'publisher': "",    # publisher ID (Required)
    'q': "",            # Job search query
    'l': "",            # location (city / state)
    'co': "",           # Two letter Country Code
    'sort': "",         # Sort order, date or relevance
    'days': ""          # number of days to fetch jobs, maximum is 7 days
}   

Note:

For example, following search parameters will search for all Python jobs in Karachi, Pakistan.

params = {
    'publisher': "0000000000000000",    # Use valid Id to get results 
    'q': "python",  
    'l': "karachi",  
    'co': "pk",  
    'sort': "date",                # Sort by date
    'days': "3"                    # get jobs for 3 days, including today
}   

Output:

The list of jobs will be saved in a CSV file “indeedjobs.csv” in the same directory where the script resides.

Resources:

python indeed-api api jobs