Get the LinkedIn job details
curl --request GET \
--url https://api.harvestapi.io/linkedin/job \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/job"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.harvestapi.io/linkedin/job', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.harvestapi.io/linkedin/job",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.harvestapi.io/linkedin/job"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.harvestapi.io/linkedin/job")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/job")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"element": {
"id": "<string>",
"title": "<string>",
"linkedinUrl": "<string>",
"jobState": "<string>",
"postedDate": "2023-11-07T05:31:56Z",
"descriptionText": "<string>",
"descriptionHtml": "<string>",
"location": {
"linkedinText": "<string>",
"postalAddress": "<string>",
"parsed": {
"text": "<string>",
"countryCode": "<string>",
"regionCode": "<string>",
"country": "<string>",
"countryFull": "<string>",
"state": "<string>",
"city": "<string>"
}
},
"employmentType": "<string>",
"workplaceType": "<string>",
"workRemoteAllowed": true,
"easyApplyUrl": "<string>",
"applicants": 123,
"companyName": "<string>",
"companyLogo": "<string>",
"companyLink": "<string>",
"companyUniversalName": "<string>",
"salary": {
"min": "<string>",
"max": "<string>",
"currency": "<string>",
"text": "<string>"
},
"views": 123,
"expireAt": "2023-11-07T05:31:56Z",
"new": true,
"jobApplicationLimitReached": true,
"applicantTrackingSystem": "<string>"
},
"status": "<string>",
"error": "<string>",
"query": {
"jobId": "<string>",
"url": "<string>"
}
}{
"error": 123,
"message": "<string>"
}LinkedIn Job
Get Job
Get the LinkedIn job details by job ID or URL.
GET
/
linkedin
/
job
Get the LinkedIn job details
curl --request GET \
--url https://api.harvestapi.io/linkedin/job \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/job"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.harvestapi.io/linkedin/job', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.harvestapi.io/linkedin/job",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.harvestapi.io/linkedin/job"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.harvestapi.io/linkedin/job")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/job")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"element": {
"id": "<string>",
"title": "<string>",
"linkedinUrl": "<string>",
"jobState": "<string>",
"postedDate": "2023-11-07T05:31:56Z",
"descriptionText": "<string>",
"descriptionHtml": "<string>",
"location": {
"linkedinText": "<string>",
"postalAddress": "<string>",
"parsed": {
"text": "<string>",
"countryCode": "<string>",
"regionCode": "<string>",
"country": "<string>",
"countryFull": "<string>",
"state": "<string>",
"city": "<string>"
}
},
"employmentType": "<string>",
"workplaceType": "<string>",
"workRemoteAllowed": true,
"easyApplyUrl": "<string>",
"applicants": 123,
"companyName": "<string>",
"companyLogo": "<string>",
"companyLink": "<string>",
"companyUniversalName": "<string>",
"salary": {
"min": "<string>",
"max": "<string>",
"currency": "<string>",
"text": "<string>"
},
"views": 123,
"expireAt": "2023-11-07T05:31:56Z",
"new": true,
"jobApplicationLimitReached": true,
"applicantTrackingSystem": "<string>"
},
"status": "<string>",
"error": "<string>",
"query": {
"jobId": "<string>",
"url": "<string>"
}
}{
"error": 123,
"message": "<string>"
}const params = new URLSearchParams({
url: 'https://www.linkedin.com/jobs/view/4153069088/', // by URL
// jobId: '4153069088', // by jobId alternatively
});
fetch(`https://api.harvestapi.io/linkedin/job?${params.toString()}`, {
headers: { 'X-API-Key': '<api-key>' },
})
.then((response) => response.json())
.then((data) => console.log(data));
curl --request GET \
--url https://api.harvestapi.io/linkedin/job?jobId=4153069088 \
--header 'X-API-Key: <api-key>'
import requests
url = "https://api.harvestapi.io/linkedin/job?jobId=4153069088"
headers = {"X-API-Key": "<api-key>"}
response = requests.request("GET", url, headers=headers)
print(response.text)
⌘I

