With this API you can scrape jobs for any given area and field. You can even sort them on the basis of their posting dates.
You have to send a GET request to http://api.scrapingdog.com/jobs with the below-given parameters.
Parameters
Parameter
Description
api_key
required
Your personal API key. Available on your dashboard
Type: String
field
required
You can use this parameter to pass either a job title or the name of the company.
Example - Product Manager
OR
Example -Amazon
Type: String
geoid
This is the unique location ID.
Default: 9200000092000000 searches for jobs globally.
Type: String
location
This is the location of the place you want the job listings from.
Type: String
page
This is the page number of the jobs page. It should be greater than 0.
Default: 1
Type: String
sort_by
This is an optional parameter through which you can sort jobs on the basis of their posting dates.
Possible Values - day, week or monthday will provide jobs that were posted in the last 24 hours. week will provide for the last 7 days and month will provide for the last 30 days.
Type: String
job_type
This parameter will help you extract all the jobs according to the type of job offered by the company.
Possible Values - temporary, contract, volunteer, full_time & part_time.
Type: String
exp_level
This parameter will help you filter out the jobs based on the experience required to apply for the job.
Possible Values - internship, entry_level, associate, mid_senior_level & director.
Type: String
work_type
This parameter will help you filter out the jobs based on their working model.
Possible Values - at_work, remote, & hybrid.
Type: String
filter_by_company
This parameter requires company ID and will help you get jobs for that particular company.
Type: String
import requests# Define the URL and parametersurl ="https://api.scrapingdog.com/jobs/"params ={"api_key":"5eaa61a6e562fc52fe763tr516e4653","field":"python","geoid":"100293800","page":"1"}# Send a GET request with the parametersresponse = requests.get(url, params=params)# Check if the request was successful (status code 200)if response.status_code ==200:# Access the response content data = response.json()print(data)else:print("Request failed with status code:", response.status_code)
const axios = require('axios');
// Define the URL and parameters
const url = "https://api.scrapingdog.com/jobs/";
const params = {
api_key: "5eaa61a6e562fc52fe763tr516e4653",
field: "python",
geoid: "100293800",
page: 1
};
// Send a GET request with the parameters
axios.get(url, { params })
.then(response => {
// Check if the request was successful (status code 200)
if (response.status === 200) {
// Access the response data
const data = response.data;
console.log(data);
} else {
console.log("Request failed with status code:", response.status);
}
})
.catch(error => {
console.error("An error occurred:", error);
});
<?php
// Define the URL and parameters
$url = "https://api.scrapingdog.com/jobs/";
$params = [
'api_key' => '5eaa61a6e562fc52fe763tr516e4653',
'field' => 'python',
'geoid' => '100293800',
'page' => 1
];
// Initialize cURL session
$ch = curl_init($url);
// Set cURL options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));
// Execute cURL session
$response = curl_exec($ch);
// Check if the request was successful
if ($response !== false) {
// Access the response data
echo $response;
} else {
echo 'Request failed: ' . curl_error($ch);
}
// Close cURL session
curl_close($ch);
?>
require 'net/http'
require 'uri'
# Define the URL and parameters
url = URI.parse("https://api.scrapingdog.com/jobs/?api_key=5eaa61a6e562fc52fe763tr516e4653&field=python&geoid=100293800&page=1")
# Send a GET request
response = Net::HTTP.get(url)
# Check if the request was successful (status code 200)
if response.code == '200'
puts response.body
else
puts "Request failed with status code: #{response.code}"
end
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
OkHttpClient client = new OkHttpClient();
String url = "https://api.scrapingdog.com/jobs/?api_key=5eaa61a6e562fc52fe763tr516e4653&field=python&geoid=100293800&page=1";
Request request = new Request.Builder()
.url(url)
.get()
.build();
try {
Response response = client.newCall(request).execute();
if (response.isSuccessful()) {
System.out.println(response.body().string());
} else {
System.out.println("Request failed with status code: " + response.code());
}
} catch (IOException e) {
e.printStackTrace();
}
}
}