Stream search results as JSONL
curl --request GET \
--url https://api.withsplendor.com/v1/searches/{search_id}/results.jsonl \
--header 'Authorization: Bearer <token>' \
--header 'x-splendor-tenant-id: <x-splendor-tenant-id>'import requests
url = "https://api.withsplendor.com/v1/searches/{search_id}/results.jsonl"
headers = {
"x-splendor-tenant-id": "<x-splendor-tenant-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-splendor-tenant-id': '<x-splendor-tenant-id>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.withsplendor.com/v1/searches/{search_id}/results.jsonl', 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.withsplendor.com/v1/searches/{search_id}/results.jsonl",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"x-splendor-tenant-id: <x-splendor-tenant-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.withsplendor.com/v1/searches/{search_id}/results.jsonl"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-splendor-tenant-id", "<x-splendor-tenant-id>")
req.Header.Add("Authorization", "Bearer <token>")
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.withsplendor.com/v1/searches/{search_id}/results.jsonl")
.header("x-splendor-tenant-id", "<x-splendor-tenant-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withsplendor.com/v1/searches/{search_id}/results.jsonl")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-splendor-tenant-id"] = '<x-splendor-tenant-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body"{\"id\":\"rec_01H8Z3K9QK\",\"title\":null,\"body\":\"connection timeout after 30s\",\"snippets\":[\"connection <em>timeout</em> after 30s\"],\"created_at\":\"2026-01-15T09:30:00Z\",\"metadata\":{\"service\":\"checkout\"},\"score\":12.4,\"score_kind\":\"bm25\",\"provenance\":{\"tenant_id\":\"acme\",\"dataset_id\":\"app-logs\",\"source_bucket\":\"acme-logs\",\"source_key\":\"2026/01/15/app-0001.jsonl.gz\",\"source_etag\":\"\\\"9b2cf5e1\\\"\",\"line\":4821,\"transform_version\":\"v3\"}}\n{\"id\":\"rec_01H8Z3K9QL\",\"title\":null,\"body\":\"upstream request timed out\",\"snippets\":[\"upstream request <em>timed out</em>\"],\"created_at\":\"2026-01-15T09:31:00Z\",\"metadata\":{\"service\":\"checkout\"},\"score\":11.1,\"score_kind\":\"bm25\",\"provenance\":{\"tenant_id\":\"acme\",\"dataset_id\":\"app-logs\",\"source_bucket\":\"acme-logs\",\"source_key\":\"2026/01/15/app-0001.jsonl.gz\",\"source_etag\":\"\\\"9b2cf5e1\\\"\",\"line\":4822,\"transform_version\":\"v3\"}}"{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Search & query
Stream search results as JSONL
Streams every result for a search handle as newline-delimited JSON, one normalized result per line. Use this to pull a search’s results into a script or notebook without paging by cursor.
GET
/
v1
/
searches
/
{search_id}
/
results.jsonl
Stream search results as JSONL
curl --request GET \
--url https://api.withsplendor.com/v1/searches/{search_id}/results.jsonl \
--header 'Authorization: Bearer <token>' \
--header 'x-splendor-tenant-id: <x-splendor-tenant-id>'import requests
url = "https://api.withsplendor.com/v1/searches/{search_id}/results.jsonl"
headers = {
"x-splendor-tenant-id": "<x-splendor-tenant-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-splendor-tenant-id': '<x-splendor-tenant-id>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.withsplendor.com/v1/searches/{search_id}/results.jsonl', 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.withsplendor.com/v1/searches/{search_id}/results.jsonl",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"x-splendor-tenant-id: <x-splendor-tenant-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.withsplendor.com/v1/searches/{search_id}/results.jsonl"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-splendor-tenant-id", "<x-splendor-tenant-id>")
req.Header.Add("Authorization", "Bearer <token>")
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.withsplendor.com/v1/searches/{search_id}/results.jsonl")
.header("x-splendor-tenant-id", "<x-splendor-tenant-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withsplendor.com/v1/searches/{search_id}/results.jsonl")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-splendor-tenant-id"] = '<x-splendor-tenant-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body"{\"id\":\"rec_01H8Z3K9QK\",\"title\":null,\"body\":\"connection timeout after 30s\",\"snippets\":[\"connection <em>timeout</em> after 30s\"],\"created_at\":\"2026-01-15T09:30:00Z\",\"metadata\":{\"service\":\"checkout\"},\"score\":12.4,\"score_kind\":\"bm25\",\"provenance\":{\"tenant_id\":\"acme\",\"dataset_id\":\"app-logs\",\"source_bucket\":\"acme-logs\",\"source_key\":\"2026/01/15/app-0001.jsonl.gz\",\"source_etag\":\"\\\"9b2cf5e1\\\"\",\"line\":4821,\"transform_version\":\"v3\"}}\n{\"id\":\"rec_01H8Z3K9QL\",\"title\":null,\"body\":\"upstream request timed out\",\"snippets\":[\"upstream request <em>timed out</em>\"],\"created_at\":\"2026-01-15T09:31:00Z\",\"metadata\":{\"service\":\"checkout\"},\"score\":11.1,\"score_kind\":\"bm25\",\"provenance\":{\"tenant_id\":\"acme\",\"dataset_id\":\"app-logs\",\"source_bucket\":\"acme-logs\",\"source_key\":\"2026/01/15/app-0001.jsonl.gz\",\"source_etag\":\"\\\"9b2cf5e1\\\"\",\"line\":4822,\"transform_version\":\"v3\"}}"{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
API token issued from the Splendor console.
Headers
Selects the tenant (workspace) the request acts within.
Path Parameters
Response
A stream of newline-delimited JSON, one normalized result per line.
The response is of type string<jsonl>.
⌘I