Credit Usage
You can see your overall usage, the total credits used in the current monthly cycle as well as your current concurrency usage in the ‘Monitoring & Stats’ part of your Dashboard. For more detailed information, you can download a domain report by clicking the small download button in the top right corner of the ‘Monitoring & Stats’ window.
The domain report includes which domains were scraped on which date, the parameters used and the credit consumption per domain per date. It also includes the number of canceled and failed requests on each scraping date.
If you would like to monitor your account usage and limits programmatically (how many concurrent requests you’re using, how many requests you’ve made, etc.) you can make a call to the /account endpoint, which will return usage data in JSON format.
curl "http://api.scraperapi.com/account?api_key=API_KEY"import requests
payload = {'api_key': 'APIKEY'}
r = requests.get('http://api.scraperapi.com/account', params=payload)
print(r.text)import fetch from 'node-fetch';
fetch('http://api.scraperapi.com/account?api_key=API_KEY')
.then(res => res.text())
.then(body => {
console.log(body);
})
.catch(err => {
console.error(err);
});<?php
// Replace the value for api_key with your actual API Key
$url = "https://api.scraperapi.com/account?api_key=API_KEY";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Curl error: ' . curl_error($ch);
} else {
print_r($response);
}
curl_close($ch);Note: the requestCount and failedRequestCount numbers only refresh once every 15 seconds, while the concurrentRequests number is available in real-time.
Last updated

