Get Job Status
curl --request GET \
--url https://api.example.com/api/enrich/{jobId}import requests
url = "https://api.example.com/api/enrich/{jobId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/enrich/{jobId}', 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.example.com/api/enrich/{jobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/enrich/{jobId}"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api/enrich/{jobId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/enrich/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"jobId": "<string>",
"status": "<string>",
"totalLeads": 123,
"leadsUrl": "<string>"
}Endpoints
Get Job Status
Check the status of a running or completed enrich job
GET
/
api
/
enrich
/
{jobId}
Get Job Status
curl --request GET \
--url https://api.example.com/api/enrich/{jobId}import requests
url = "https://api.example.com/api/enrich/{jobId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/enrich/{jobId}', 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.example.com/api/enrich/{jobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/enrich/{jobId}"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api/enrich/{jobId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/enrich/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"jobId": "<string>",
"status": "<string>",
"totalLeads": 123,
"leadsUrl": "<string>"
}Path Parameters
string
required
The job ID returned from
POST /api/enrich. Starts with run_Request
curl https://api.cheetah-sales.dev/api/enrich/run_cm5x8k9j0000108l4g2h5h3k2 \
-H "Authorization: Bearer YOUR_API_KEY"
const jobId = 'run_cm5x8k9j0000108l4g2h5h3k2';
const response = await fetch(`https://api.cheetah-sales.dev/api/enrich/${jobId}`, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
const data = await response.json();
console.log(data.status); // EXECUTING, COMPLETED, or FAILED
import requests
job_id = 'run_cm5x8k9j0000108l4g2h5h3k2'
response = requests.get(
f'https://api.cheetah-sales.dev/api/enrich/{job_id}',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
print(response.json()['status'])
Response
boolean
Whether the request was successful
string
The job ID
string
Job status:
QUEUED, EXECUTING, COMPLETED, or FAILEDnumber
Number of leads (when completed)
string
URL to fetch leads (when completed)
- Executing
- Completed
- Failed
{
"success": true,
"jobId": "run_cm5x8k9j0000108l4g2h5h3k2",
"status": "EXECUTING",
"createdAt": "2024-01-15T10:30:00.000Z",
"startedAt": "2024-01-15T10:30:05.000Z"
}
{
"success": true,
"jobId": "run_cm5x8k9j0000108l4g2h5h3k2",
"status": "COMPLETED",
"totalLeads": 25,
"leadsUrl": "/api/enrich/run_cm5x8k9j0000108l4g2h5h3k2/leads",
"finishedAt": "2024-01-15T10:35:00.000Z"
}
{
"success": true,
"jobId": "run_cm5x8k9j0000108l4g2h5h3k2",
"status": "FAILED",
"error": {
"message": "Invalid Sales Navigator URL"
}
}
