After Indeed.com discontinued its job search API what are some alternative APIs for getting job listings

Home My Blog Other Blog Posts → After Indeed.com discontinued its job search API what are some alternative APIs for getting job listings
after indeed.com discontinued its job search api what are some alternative apis for getting job listings


Recently Indeed.com - one of the leading job search platforms, has decided to discontinue its Job Search API and this decision has left many websites that relied on Indeed's API to display job listings facing the challenge of finding alternative solutions.

In this post I would like to show some alternative job search APIs that offer similar functionality and a vast database of job listings like for example SimplyHired, Careerjet and other potential alternatives.

1. CareerJet

Careerjet offers an excellent API that allows developers to integrate job search functionality into their websites. The steps below provide some general guide on how you might integrate the Careerjet API into a PHP site.

The first step is to register on https://www.careerjet.com/partners/signup.html and obtain your API key.

You may find below a basic example of calling the CareerJet API using curl and displaying the job search results on the screen.

qq
$apiKey = 'your_api_key';

$apiUrl = 'http://www.careerjet.com/partners/api/search';

$params = [
'keywords' => 'php developer',
'location' => 'new york',
'affid' => $apiKey, ];

$apiUrl .= '?' . http_build_query($params);

$ch = curl_init($apiUrl);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

curl_close($ch);

$result = json_decode($response, true);

if ($result && isset($result['jobs'])) {
foreach ($result['jobs'] as $job) {
echo '

Title: ' . $job['title'] . '
';
echo 'Company: ' . $job['company'] . '
';
echo 'Location: ' . $job['locations'] . '
';
echo 'URL: ' . $job['url'] . '

';
echo '------------------------------------------
';
}
} else {
echo 'No job listings found.';
}
?>
qqq


2. LinkedIn

To use the LinkedIn Jobs Search API, you need to create a developer account on the LinkedIn Developer Portal at https://developer.linkedin.com/ and create a new application and obtain the required API credentials, including the Client ID and Client Secret.

LinkedIn APIs typically use OAuth 2.0 for authentication. You'll need to obtain an access token to make requests to the Jobs Search API on behalf of a user.

You may find below an example of calling the LinkedIn job search API by using curl

qq
$clientId = 'your_client_id';
$clientSecret = 'your_client_secret';
$accessToken = 'user_access_token';
$apiUrl = 'https://api.linkedin.com/v2/jobSearch';

$params = [
'keywords' => 'web developer',
'location' => 'San Francisco',
];

$apiUrl .= '?' . http_build_query($params);

$ch = curl_init($apiUrl);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer ' . $accessToken,
'Content-Type: application/json',
'x-li-format: json',
]);

$response = curl_exec($ch);

curl_close($ch);

$result = json_decode($response, true);

if ($result && isset($result['data'])) {
foreach ($result['data'] as $job) {
echo '

Title: ' . $job['title'] . '
';
echo 'Company: ' . $job['hiringOrganization']['name'] . '
';
echo 'Location: ' . $job['location']['name'] . '
';
echo 'URL: ' . $job['link']['url'] . '

';
echo '------------------------------------------
';
}
} else {
echo 'No job listings found.';
}
?>

qqq


3. Glassdoor

To use the Glassdoor API, you need to create a developer account on the Glassdoor Developer Portal at https://www.glassdoor.com/developer/index.htm.
After registration, create a new application to obtain the necessary API credentials, including the Partner ID and Key.

qq
$partnerId = 'your_partner_id';
$apiKey = 'your_api_key';

$apiUrl = 'http://api.glassdoor.com/api/api.htm';

$params = [
'v' => '1', 'format' => 'json',
't.p' => $partnerId,
't.k' => $apiKey,
'action' => 'jobs',
'userip' => $_SERVER['REMOTE_ADDR'], 'useragent' => $_SERVER['HTTP_USER_AGENT'], 'q' => 'web developer',
'l' => 'San Francisco',
];

$apiUrl .= '?' . http_build_query($params);

$ch = curl_init($apiUrl);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

curl_close($ch);

$result = json_decode($response, true);

if ($result && isset($result['response']['jobList'])) {
foreach ($result['response']['jobList'] as $job) {
echo '

Title: ' . $job['jobTitle'] . '
';
echo 'Company: ' . $job['employerName'] . '
';
echo 'Location: ' . $job['location'] . '
';
echo 'URL: ' . $job['detailUrl'] . '

';
echo '------------------------------------------
';
}
} else {
echo 'No job listings found.';
}
?>
qqq

4. CareerBuilder Job Widget

CareerBuilder does not publicly provide a free, open API for job search. Therefore, integrating CareerBuilder job listings into a PHP site might not be straightforward, as direct API access may not be available. However, CareerBuilder does offer a solution called "CareerBuilder Widget" or "Job Widget," which allows you to embed job listings on your website. This widget is essentially an iframe that you can customize and include on your site. Users can search for jobs within the widget, and the results are displayed within the iframe.

Visit the CareerBuilder Employer site and create an account if you don't have one.
Log in to your CareerBuilder Employer account.
Access the Job Widget:

Once logged in, navigate to the section where you can post jobs or manage your job listings.
Look for options related to the Job Widget or Widget Integrations.
Generate Widget Code:

Follow the instructions to customize your widget. You may be able to choose the color, size, and other parameters.
Generate the widget code or iframe code.

qq

qqq


5. SimplyHired

Sign up for a developer account on the SimplyHired Developer Portal to obtain the required API credentials.

qq
$apiKey = 'your_api_key';

$apiUrl = 'http://api.simplyhired.com/a/jobs-api';

$params = [
'api-key' => $apiKey,
'q' => 'php developer',
'l' => 'San Francisco',
];

$apiUrl .= '?' . http_build_query($params);

$ch = curl_init($apiUrl);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

curl_close($ch);

$result = json_decode($response, true);

if ($result && isset($result['jobs'])) {
foreach ($result['jobs'] as $job) {
echo '

Title: ' . $job['title'] . '
';
echo 'Company: ' . $job['company'] . '
';
echo 'Location: ' . $job['location'] . '
';
echo 'URL: ' . $job['url'] . '

';
echo '------------------------------------------
';
}
} else {
echo 'No job listings found.';
}
?>
qqq


6. Monster

Sign up for a developer account on the Monster Developer Network to obtain the required API credentials. Obtain an API key or any other required credentials from Monster. This key is typically used to authenticate your requests to the API.

qq
$apiKey = 'your_api_key';

$apiUrl = 'https://api.monster.com/v3/job-search';

$params = [
'apikey' => $apiKey,
'q' => 'php developer',
'where' => 'San Francisco',
];

$apiUrl .= '?' . http_build_query($params);

$ch = curl_init($apiUrl);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

curl_close($ch);

$result = json_decode($response, true);

if ($result && isset($result['jobSearchResults'])) {
foreach ($result['jobSearchResults'] as $job) {
echo '

Title: ' . $job['jobTitle'] . '
';
echo 'Company: ' . $job['company']['name'] . '
';
echo 'Location: ' . $job['locations'][0]['name'] . '
';
echo 'URL: ' . $job['jobDetailsLink'] . '

';
echo '------------------------------------------
';
}
} else {
echo 'No job listings found.';
}
?>
qqq


7. Jooble

Sign up for a developer account on the Jooble Developer Portal to obtain the required API credentials. Obtain an API key or any other required credentials from Jooble.

qq
$apiKey = 'your_api_key';

$apiUrl = 'https://jooble.org/api/';

$params = [
'keywords' => 'php developer',
'location' => 'San Francisco',
'apikey' => $apiKey,
];

$apiUrl .= '?' . http_build_query($params);

$ch = curl_init($apiUrl);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

curl_close($ch);

$result = json_decode($response, true);

if ($result && isset($result['jobs'])) {
foreach ($result['jobs'] as $job) {
echo '

Title: ' . $job['title'] . '
';
echo 'Company: ' . $job['company'] . '
';
echo 'Location: ' . $job['location'] . '
';
echo 'URL: ' . $job['link'] . '

';
echo '------------------------------------------
';
}
} else {
echo 'No job listings found.';
}
?>
qqq


8. ZipRecruiter

Sign up for a partner account on the ZipRecruiter Partner Portal to obtain the required API credentials. Obtain an API key or any other required credentials from ZipRecruiter.

qq
$apiKey = 'your_api_key';

$apiUrl = 'https://api.ziprecruiter.com/jobs/v1/search';

$params = [
'search' => 'php developer',
'location' => 'San Francisco',
'api_key' => $apiKey,
];

$apiUrl .= '?' . http_build_query($params);

$ch = curl_init($apiUrl);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

curl_close($ch);

$result = json_decode($response, true);

if ($result && isset($result['jobs'])) {
foreach ($result['jobs'] as $job) {
echo '

Title: ' . $job['name'] . '
';
echo 'Company: ' . $job['hiring_company']['name'] . '
';
echo 'Location: ' . $job['location']['name'] . '
';
echo 'URL: ' . $job['url'] . '

';
echo '------------------------------------------
';
}
} else {
echo 'No job listings found.';
}
?>
qqq






See More Blog PostsHire Me For A Project or Consultation






 
Connect with meLinkedIn ProfileFacebook Profile


2024 © SofiaCoder.com
×

My BlogProgramming Web Design SEO Other Home PageSofia Coder LinkedIn ProfileSofia Coder Facebook Profile