List template runs
curl --request GET \
--url https://api.spidra.io/api/template-runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spidra.io/api/template-runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.spidra.io/api/template-runs', 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.spidra.io/api/template-runs",
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>"
],
]);
$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.spidra.io/api/template-runs"
req, _ := http.NewRequest("GET", url, nil)
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.spidra.io/api/template-runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spidra.io/api/template-runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"total": 3,
"page": 1,
"runs": [
{
"runId": "b85c4c7e-0f68-4546-8cae-302a65c1fbf1",
"template": "google-maps-leads",
"title": "Google Maps leads",
"site": {
"key": "google-maps",
"name": "Google Maps",
"domain": "google.com"
},
"presetId": "15415447-7680-4dc5-90a0-f7a900c7f418",
"tool": "batch",
"status": "completed",
"inputs": {
"query": "dentist",
"areas": [
"Lekki, Lagos",
"Ikeja, Lagos"
],
"pages": 1,
"findContacts": false,
"language": "en"
},
"creditsUsed": 2,
"rowCount": 40,
"urlCount": 2,
"createdAt": "2026-10-24T18:49:01.000Z",
"finishedAt": "2026-10-24T18:50:51.000Z"
},
{
"runId": "dfefa844-ad1f-4400-b127-dc17a186d9c2",
"template": "google-maps-leads",
"title": "Google Maps leads",
"site": {
"key": "google-maps",
"name": "Google Maps",
"domain": "google.com"
},
"presetId": null,
"tool": "batch",
"status": "completed",
"inputs": {
"query": "dentist",
"areas": [
"Lekki, Lagos"
],
"pages": 1,
"findContacts": false,
"language": "en"
},
"creditsUsed": 1,
"rowCount": 20,
"urlCount": 1,
"createdAt": "2026-10-24T18:46:01.000Z",
"finishedAt": "2026-10-24T18:46:05.000Z"
}
]
}Templates
List template runs
Lists your template runs, newest first, with their status and cost but without their rows. Get a run’s rows with Get a template run.
Filter by template with template, and page through with page and limit. Runs still marked running are brought up to date before they’re listed.
GET
/
template-runs
List template runs
curl --request GET \
--url https://api.spidra.io/api/template-runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spidra.io/api/template-runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.spidra.io/api/template-runs', 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.spidra.io/api/template-runs",
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>"
],
]);
$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.spidra.io/api/template-runs"
req, _ := http.NewRequest("GET", url, nil)
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.spidra.io/api/template-runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spidra.io/api/template-runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"total": 3,
"page": 1,
"runs": [
{
"runId": "b85c4c7e-0f68-4546-8cae-302a65c1fbf1",
"template": "google-maps-leads",
"title": "Google Maps leads",
"site": {
"key": "google-maps",
"name": "Google Maps",
"domain": "google.com"
},
"presetId": "15415447-7680-4dc5-90a0-f7a900c7f418",
"tool": "batch",
"status": "completed",
"inputs": {
"query": "dentist",
"areas": [
"Lekki, Lagos",
"Ikeja, Lagos"
],
"pages": 1,
"findContacts": false,
"language": "en"
},
"creditsUsed": 2,
"rowCount": 40,
"urlCount": 2,
"createdAt": "2026-10-24T18:49:01.000Z",
"finishedAt": "2026-10-24T18:50:51.000Z"
},
{
"runId": "dfefa844-ad1f-4400-b127-dc17a186d9c2",
"template": "google-maps-leads",
"title": "Google Maps leads",
"site": {
"key": "google-maps",
"name": "Google Maps",
"domain": "google.com"
},
"presetId": null,
"tool": "batch",
"status": "completed",
"inputs": {
"query": "dentist",
"areas": [
"Lekki, Lagos"
],
"pages": 1,
"findContacts": false,
"language": "en"
},
"creditsUsed": 1,
"rowCount": 20,
"urlCount": 1,
"createdAt": "2026-10-24T18:46:01.000Z",
"finishedAt": "2026-10-24T18:46:05.000Z"
}
]
}Authorizations
BearerAuthApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Only runs of this template, by slug.
The page of results, starting at 1.
Required range:
x >= 1Runs per page, from 1 to 100.
Required range:
1 <= x <= 100Was this page helpful?

