Usage metrics
curl --request GET \
--url https://scraping-api.55-tech.com/usage \
--header 'X-API-Key: <api-key>'import requests
url = "https://scraping-api.55-tech.com/usage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://scraping-api.55-tech.com/usage', 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://scraping-api.55-tech.com/usage",
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-API-Key: <api-key>"
],
]);
$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://scraping-api.55-tech.com/usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scraping-api.55-tech.com/usage")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scraping-api.55-tech.com/usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"api_key": "<string>",
"total": 123,
"success": 123,
"fail": 123,
"success_rate": 123,
"bytes_transferred": 123,
"rate_limit": {
"rps": 123,
"burst": 123,
"remaining": 123
},
"by_protocol": {
"fetch": 123,
"ws": 123,
"amqp": 123
},
"top_domains": [
{
"domain": "<string>",
"requests": 123
}
]
}Usage
Usage metrics
Per-key usage metrics: request counts, success/fail rates, bytes transferred, protocol breakdown, and top domains.
GET
/
usage
Usage metrics
curl --request GET \
--url https://scraping-api.55-tech.com/usage \
--header 'X-API-Key: <api-key>'import requests
url = "https://scraping-api.55-tech.com/usage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://scraping-api.55-tech.com/usage', 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://scraping-api.55-tech.com/usage",
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-API-Key: <api-key>"
],
]);
$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://scraping-api.55-tech.com/usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scraping-api.55-tech.com/usage")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scraping-api.55-tech.com/usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"api_key": "<string>",
"total": 123,
"success": 123,
"fail": 123,
"success_rate": 123,
"bytes_transferred": 123,
"rate_limit": {
"rps": 123,
"burst": 123,
"remaining": 123
},
"by_protocol": {
"fetch": 123,
"ws": 123,
"amqp": 123
},
"top_domains": [
{
"domain": "<string>",
"requests": 123
}
]
}Authorizations
API key passed in the X-API-Key header.
Response
Usage metrics for the authenticated API key.
Total requests across all protocols.
Successful requests.
Failed requests.
Success percentage (0-100).
Total response bytes (HTTP fetch only).
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Top 20 domains by request count.
Show child attributes
Show child attributes
⌘I