curl --request POST \
--url https://api.spidra.io/api/templates/{slug}/runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inputs": {
"query": "dentist",
"areas": [
"Lekki, Lagos"
]
}
}
'{
"status": "success",
"run": {
"runId": "e0c2890b-0f60-4443-959c-1a60045cad60",
"template": "google-maps-leads",
"templateVersion": 4,
"presetId": null,
"tool": "batch",
"status": "completed",
"inputs": {
"query": "dentist",
"areas": [
"Lekki, Lagos"
],
"pages": 1,
"findContacts": false,
"language": "en"
},
"createdAt": "2026-10-25T08:24:39.000Z",
"finishedAt": "2026-10-25T08:24:39.000Z",
"creditsUsed": 1,
"urlCount": 1,
"rowCount": 20,
"job": {
"tool": "batch",
"id": "9b6f586b-8b59-4829-a25a-a360a0bcc94d"
},
"progress": {
"completed": 1,
"failed": 0,
"total": 1
},
"failures": [],
"rows": [
{
"position": 1,
"title": "Hilton Dental Clinic Lekki",
"placeId": "ChIJ89e4lQv1OxARxaJDaIA0VIE",
"googleMapsUrl": "https://www.google.com/maps?cid=9319131255046120133",
"category": "Dentist",
"address": "13 Whitesands St, Ikate bustop, Lagos 105102, Lagos, Nigeria",
"location": {
"lat": 6.4293659,
"lng": 3.4787779
},
"phone": "+234 701 007 5124",
"phoneE164": "+2347010075124",
"website": "http://www.hiltondental.com.ng/",
"rating": 4.9,
"reviewsCount": 844,
"businessStatus": "OPERATIONAL",
"hoursByDay": {
"monday": "8 AM–6 PM",
"saturday": "9 AM–3 PM",
"sunday": "Closed"
}
},
"..."
]
}
}Run a template
Runs a template with your inputs and returns the run. The run reads the pages it needs and returns one row per result. Find a template’s slug and inputs with List templates and Get a template.
The response is usually 202 with status: "running". Poll Get a template run every few seconds until status isn’t running. inputs comes back with the defaults filled in.
Send wait: true to get a quick run back finished, with 200. Templates that read up to 10 pages wait up to 45 seconds, and search-based templates up to 20 seconds. A run that takes longer answers 202 as usual. Templates that run several searches (such as rank trackers), and runs with a second step switched on, ignore wait and always answer 202.
Credits: what the same job costs with the tool behind it, usually 1 credit per page read. Most templates use no AI. Pages that fail aren’t charged, and a failed run costs nothing. Estimate a template run gives the number first, for free.
Rate limits: 20 runs a minute. The tool behind the run applies its own limits too, such as 10 unfinished scrapes at a time for batch-based templates.
curl --request POST \
--url https://api.spidra.io/api/templates/{slug}/runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inputs": {
"query": "dentist",
"areas": [
"Lekki, Lagos"
]
}
}
'{
"status": "success",
"run": {
"runId": "e0c2890b-0f60-4443-959c-1a60045cad60",
"template": "google-maps-leads",
"templateVersion": 4,
"presetId": null,
"tool": "batch",
"status": "completed",
"inputs": {
"query": "dentist",
"areas": [
"Lekki, Lagos"
],
"pages": 1,
"findContacts": false,
"language": "en"
},
"createdAt": "2026-10-25T08:24:39.000Z",
"finishedAt": "2026-10-25T08:24:39.000Z",
"creditsUsed": 1,
"urlCount": 1,
"rowCount": 20,
"job": {
"tool": "batch",
"id": "9b6f586b-8b59-4829-a25a-a360a0bcc94d"
},
"progress": {
"completed": 1,
"failed": 0,
"total": 1
},
"failures": [],
"rows": [
{
"position": 1,
"title": "Hilton Dental Clinic Lekki",
"placeId": "ChIJ89e4lQv1OxARxaJDaIA0VIE",
"googleMapsUrl": "https://www.google.com/maps?cid=9319131255046120133",
"category": "Dentist",
"address": "13 Whitesands St, Ikate bustop, Lagos 105102, Lagos, Nigeria",
"location": {
"lat": 6.4293659,
"lng": 3.4787779
},
"phone": "+234 701 007 5124",
"phoneE164": "+2347010075124",
"website": "http://www.hiltondental.com.ng/",
"rating": 4.9,
"reviewsCount": 844,
"businessStatus": "OPERATIONAL",
"hoursByDay": {
"monday": "8 AM–6 PM",
"saturday": "9 AM–3 PM",
"sunday": "Closed"
}
},
"..."
]
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The template's slug.
Body
The template's inputs by key, as listed by GET /templates/{slug}. Inputs with a default can be left out. You can also send the inputs at the top level of the body instead.
Waits for a quick run to finish and returns it with 200. Up to 45 seconds for templates that read up to 10 pages, 20 seconds for search-based ones. Ignored by templates that run several searches and by runs with a second step.
Was this page helpful?

