Get job status
curl --request GET \
--url http://localhost:4000/v2/discovery/{marketId}/jobs \
--header 'x-api-key: <api-key>'import requests
url = "http://localhost:4000/v2/discovery/{marketId}/jobs"
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('http://localhost:4000/v2/discovery/{marketId}/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/v2/discovery/{marketId}/jobs",
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 := "http://localhost:4000/v2/discovery/{marketId}/jobs"
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("http://localhost:4000/v2/discovery/{marketId}/jobs")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v2/discovery/{marketId}/jobs")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"metadata": {
"marketId": 12345
},
"data": [
{
"jobId": "discovery-platform::python-first-pass::2026-01-07T11:26:50.406Z::04cda5",
"status": "running",
"workflowName": "python-first-pass",
"progress": 65,
"startTime": "2024-01-15T10:30:00Z",
"endTime": null
},
{
"jobId": "discovery-platform::python-second-pass::2026-01-07T11:26:50.406Z::b12a9f",
"status": "running",
"workflowName": "python-second-pass",
"progress": 0,
"startTime": "2024-01-15T10:30:00Z",
"endTime": null
}
]
}Discovery Process
Get job status
Retrieve the status and progress of discovery jobs for a given market, optionally filtered by job IDs and/or status.
GET
/
v2
/
discovery
/
{marketId}
/
jobs
Get job status
curl --request GET \
--url http://localhost:4000/v2/discovery/{marketId}/jobs \
--header 'x-api-key: <api-key>'import requests
url = "http://localhost:4000/v2/discovery/{marketId}/jobs"
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('http://localhost:4000/v2/discovery/{marketId}/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/v2/discovery/{marketId}/jobs",
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 := "http://localhost:4000/v2/discovery/{marketId}/jobs"
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("http://localhost:4000/v2/discovery/{marketId}/jobs")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v2/discovery/{marketId}/jobs")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"metadata": {
"marketId": 12345
},
"data": [
{
"jobId": "discovery-platform::python-first-pass::2026-01-07T11:26:50.406Z::04cda5",
"status": "running",
"workflowName": "python-first-pass",
"progress": 65,
"startTime": "2024-01-15T10:30:00Z",
"endTime": null
},
{
"jobId": "discovery-platform::python-second-pass::2026-01-07T11:26:50.406Z::b12a9f",
"status": "running",
"workflowName": "python-second-pass",
"progress": 0,
"startTime": "2024-01-15T10:30:00Z",
"endTime": null
}
]
}Overview
This endpoint allows you to monitor the progress of asynchronous jobs (including both discovery and publish jobs) for a specific market. Use it to check which steps have completed and the current progress of each job.Workflow Step: This endpoint is used throughout the Market Research
Workflow, including both discovery and publish phases.
Usage
Call this endpoint with themarketId to get a list of all jobs and their statuses.
Best Practices
Polling Strategy: Check the status every 30-60 seconds
Authorizations
apiKeyAuthbearerAuthsessionIdQuery
Pass a static API key for every request, provided by your customer support.
Path Parameters
Unique identifier for the market study.
Required range:
x > 0Query Parameters
Unique identifier for the team.
Filter by specific job IDs. Can be repeated for multiple values.
Filter by job status. Can be repeated for multiple values.
Available options:
queued, running, stuck, completed, failed