List a job's executions
curl --request GET \
--url https://api.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions \
--header 'x-project-id: <x-project-id>'import requests
url = "https://api.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions"
headers = {"x-project-id": "<x-project-id>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-project-id': '<x-project-id>'}};
fetch('https://api.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions', 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.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions",
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-project-id: <x-project-id>"
],
]);
$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.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-project-id", "<x-project-id>")
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.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions")
.header("x-project-id", "<x-project-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-project-id"] = '<x-project-id>'
response = http.request(request)
puts response.read_body{
"page": {
"totalRecords": 123,
"limit": 123,
"currentPage": 123,
"totalPages": 123,
"nextPage": 123,
"prevPage": 123
},
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"answerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queryText": "<string>",
"model": "<string>",
"executionNumber": 123,
"status": "pending",
"states": {
"answer": "sent",
"shopping": "sent",
"shoppingEnrichment": "sent"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"answer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"executionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"initiatedAt": "2026-10-19T06:00:00.000Z",
"query": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"type": "<string>",
"tags": [
{
"id": 12,
"name": "Branded",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupName": "Intent"
}
]
},
"responseTags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Pricing",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupName": "Topic"
}
],
"model": "scp-ml-chatgpt",
"country": "<string>",
"language": "<string>",
"hasSources": true,
"hasShopping": true,
"hasAds": true,
"noAnswerReason": "<string>",
"analysed": {
"isMentioned": true,
"position": 123,
"sentiment": 123,
"stance": "chosen"
},
"isThemeAnalysed": true,
"text": "<string>",
"entities": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"isPrimary": true,
"isOwned": true,
"isCompetitor": true,
"position": 123,
"sentiment": 123,
"stance": "chosen",
"mentionCount": 123
}
],
"citations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"domain": "<string>",
"title": "<string>",
"position": 123
}
],
"listings": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityName": "<string>",
"name": "<string>",
"rawName": "<string>",
"externalId": "<string>",
"position": 123,
"imageUrl": "<string>",
"price": 123,
"priceCurrency": "<string>",
"starRating": 123,
"reviewCount": 123,
"offers": [
{
"merchantName": "<string>",
"rawMerchantName": "<string>",
"merchantDomain": "<string>",
"url": "<string>",
"price": 123,
"priceCurrency": "<string>",
"position": 123,
"isAboveFold": true,
"shippingPrice": 123,
"isInStock": true,
"details": "<string>"
}
]
}
],
"ads": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"format": "<string>",
"advertiser": "<string>",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityName": "<string>",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"url": "<string>",
"price": 123,
"priceCurrency": "<string>",
"strikethroughPrice": 123,
"strikethroughPriceCurrency": "<string>",
"starRating": 123
}
],
"fanOuts": [
{
"id": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"phrase": "<string>"
}
],
"themeMentions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityName": "<string>",
"phrase": "soft cushioning",
"quote": "<string>",
"tone": "positive",
"sentiment": 123,
"role": "central",
"position": 123
}
]
}
}
]
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}Jobs
List a job's executions
include adds each execution’s answer. Read it once the job is over.
GET
/
api
/
v2
/
projects
/
{projectId}
/
jobs
/
{jobId}
/
executions
List a job's executions
curl --request GET \
--url https://api.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions \
--header 'x-project-id: <x-project-id>'import requests
url = "https://api.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions"
headers = {"x-project-id": "<x-project-id>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-project-id': '<x-project-id>'}};
fetch('https://api.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions', 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.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions",
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-project-id: <x-project-id>"
],
]);
$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.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-project-id", "<x-project-id>")
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.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions")
.header("x-project-id", "<x-project-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mentionlab.io/api/v2/projects/{projectId}/jobs/{jobId}/executions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-project-id"] = '<x-project-id>'
response = http.request(request)
puts response.read_body{
"page": {
"totalRecords": 123,
"limit": 123,
"currentPage": 123,
"totalPages": 123,
"nextPage": 123,
"prevPage": 123
},
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"answerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queryText": "<string>",
"model": "<string>",
"executionNumber": 123,
"status": "pending",
"states": {
"answer": "sent",
"shopping": "sent",
"shoppingEnrichment": "sent"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"answer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"executionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"initiatedAt": "2026-10-19T06:00:00.000Z",
"query": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"type": "<string>",
"tags": [
{
"id": 12,
"name": "Branded",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupName": "Intent"
}
]
},
"responseTags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Pricing",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupName": "Topic"
}
],
"model": "scp-ml-chatgpt",
"country": "<string>",
"language": "<string>",
"hasSources": true,
"hasShopping": true,
"hasAds": true,
"noAnswerReason": "<string>",
"analysed": {
"isMentioned": true,
"position": 123,
"sentiment": 123,
"stance": "chosen"
},
"isThemeAnalysed": true,
"text": "<string>",
"entities": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"isPrimary": true,
"isOwned": true,
"isCompetitor": true,
"position": 123,
"sentiment": 123,
"stance": "chosen",
"mentionCount": 123
}
],
"citations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"domain": "<string>",
"title": "<string>",
"position": 123
}
],
"listings": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityName": "<string>",
"name": "<string>",
"rawName": "<string>",
"externalId": "<string>",
"position": 123,
"imageUrl": "<string>",
"price": 123,
"priceCurrency": "<string>",
"starRating": 123,
"reviewCount": 123,
"offers": [
{
"merchantName": "<string>",
"rawMerchantName": "<string>",
"merchantDomain": "<string>",
"url": "<string>",
"price": 123,
"priceCurrency": "<string>",
"position": 123,
"isAboveFold": true,
"shippingPrice": 123,
"isInStock": true,
"details": "<string>"
}
]
}
],
"ads": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"format": "<string>",
"advertiser": "<string>",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityName": "<string>",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"url": "<string>",
"price": 123,
"priceCurrency": "<string>",
"strikethroughPrice": 123,
"strikethroughPriceCurrency": "<string>",
"starRating": 123
}
],
"fanOuts": [
{
"id": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"phrase": "<string>"
}
],
"themeMentions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityName": "<string>",
"phrase": "soft cushioning",
"quote": "<string>",
"tone": "positive",
"sentiment": 123,
"role": "central",
"position": 123
}
]
}
}
]
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}