Usage by tool
curl --request GET \
--url https://api.spidra.io/api/usage-stats/breakdown \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spidra.io/api/usage-stats/breakdown"
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/usage-stats/breakdown', 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/usage-stats/breakdown",
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/usage-stats/breakdown"
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/usage-stats/breakdown")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spidra.io/api/usage-stats/breakdown")
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",
"data": [
{
"label": "Oct 19",
"date": "2026-10-19",
"scrapeCredits": 74,
"crawlCredits": 0,
"searchCredits": 0,
"parseCredits": 0,
"mapCredits": 0
},
{
"label": "Oct 20",
"date": "2026-10-20",
"scrapeCredits": 3,
"crawlCredits": 0,
"searchCredits": 0,
"parseCredits": 0,
"mapCredits": 0
},
"..."
]
}Account
Usage by tool
Returns the credits you used each day, split by tool: scrape, crawl, search, parse and map. Rows are oldest first, and days with no activity are included with zeros. Batch scrapes count under scrapeCredits.
For totals with tokens and requests, use Usage stats.
GET
/
usage-stats
/
breakdown
Usage by tool
curl --request GET \
--url https://api.spidra.io/api/usage-stats/breakdown \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spidra.io/api/usage-stats/breakdown"
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/usage-stats/breakdown', 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/usage-stats/breakdown",
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/usage-stats/breakdown"
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/usage-stats/breakdown")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spidra.io/api/usage-stats/breakdown")
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",
"data": [
{
"label": "Oct 19",
"date": "2026-10-19",
"scrapeCredits": 74,
"crawlCredits": 0,
"searchCredits": 0,
"parseCredits": 0,
"mapCredits": 0
},
{
"label": "Oct 20",
"date": "2026-10-20",
"scrapeCredits": 3,
"crawlCredits": 0,
"searchCredits": 0,
"parseCredits": 0,
"mapCredits": 0
},
"..."
]
}Authorizations
BearerAuthApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
1d, 7d or 30d for that many days up to today, or custom with startDate and endDate.
Available options:
1d, 7d, 30d, custom With range=custom, the first day as YYYY-MM-DD. At most 90 days before endDate.
With range=custom, the last day as YYYY-MM-DD.
Was this page helpful?

