curl --request GET \
--url https://api.mentionlab.io/api/v1/source-topics/runs/{runId} \
--header 'x-project-id: <x-project-id>'import requests
url = "https://api.mentionlab.io/api/v1/source-topics/runs/{runId}"
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/v1/source-topics/runs/{runId}', 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/v1/source-topics/runs/{runId}",
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/v1/source-topics/runs/{runId}"
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/v1/source-topics/runs/{runId}")
.header("x-project-id", "<x-project-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mentionlab.io/api/v1/source-topics/runs/{runId}")
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{
"id": "019dd32e-b19e-7956-88f6-4b9a877f3697",
"status": "running",
"totalSources": 100,
"processed": 64,
"vectorized": 41,
"skippedNoMeta": 18,
"skippedPreMeta": 4,
"failed": 1,
"params": {
"startDate": "2026-06-01",
"countries": [
"US"
]
},
"createdAt": "2026-06-25T13:35:29.000Z",
"updatedAt": "2026-06-25T13:38:02.000Z",
"completedAt": "2026-06-25T13:40:11.000Z",
"topicsStatus": "ready",
"topicsCompletedAt": "2026-06-25T13:41:02.000Z"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}Get a single topic-extraction run
Returns the status and progress counters of one topic-extraction run. Use processed / totalSources for a progress bar.
curl --request GET \
--url https://api.mentionlab.io/api/v1/source-topics/runs/{runId} \
--header 'x-project-id: <x-project-id>'import requests
url = "https://api.mentionlab.io/api/v1/source-topics/runs/{runId}"
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/v1/source-topics/runs/{runId}', 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/v1/source-topics/runs/{runId}",
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/v1/source-topics/runs/{runId}"
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/v1/source-topics/runs/{runId}")
.header("x-project-id", "<x-project-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mentionlab.io/api/v1/source-topics/runs/{runId}")
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{
"id": "019dd32e-b19e-7956-88f6-4b9a877f3697",
"status": "running",
"totalSources": 100,
"processed": 64,
"vectorized": 41,
"skippedNoMeta": 18,
"skippedPreMeta": 4,
"failed": 1,
"params": {
"startDate": "2026-06-01",
"countries": [
"US"
]
},
"createdAt": "2026-06-25T13:35:29.000Z",
"updatedAt": "2026-06-25T13:38:02.000Z",
"completedAt": "2026-06-25T13:40:11.000Z",
"topicsStatus": "ready",
"topicsCompletedAt": "2026-06-25T13:41:02.000Z"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}Headers
Project ID to specify the project context
Path Parameters
UUID of the run to retrieve.
Response
Run UUID.
"019dd32e-b19e-7956-88f6-4b9a877f3697"
Lifecycle status of the run.
pending, running, completed, failed "running"
Total sources (jobs) enqueued for this run.
100
Sources processed so far (vectorized + skippedNoMeta + skippedPreMeta + failed). Use processed / totalSources for a progress bar.
64
Sources whose metadata was embedded + stored.
41
Sources skipped because no metadata sidecar was cached.
18
Sources skipped because the snapshot predates metadata caching.
4
Sources whose job failed terminally (retries exhausted).
1
Snapshot of the filters that produced this run.
{
"startDate": "2026-06-01",
"countries": ["US"]
}
When the run was created.
"2026-06-25T13:35:29.000Z"
When the run last changed.
"2026-06-25T13:38:02.000Z"
When the run finished (null while still running).
"2026-06-25T13:40:11.000Z"
Topic-clustering lifecycle, independent of embedding status. pending while embedding; clustering once the topic job runs; ready when topics are available; failed on clustering error. Poll until ready, then GET /source-topics/runs/{runId}/topics.
pending, clustering, ready, failed "ready"
When topic clustering finished (null until ready/failed).
"2026-06-25T13:41:02.000Z"