Usage statistics
You can find your usage statistics by sending a request to scrape.smartproxy.com/v1/user/stats
curl -u username:password scrape.smartproxy.com/v1/user/stats
<?php
$username = "username";
$password = "password";
$target = curl_init('http://scrape.smartproxy.com/v1/user/stats');
curl_setopt($target, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($target, CURLOPT_USERPWD, sprintf('%s:%s', $username, $password));
curl_setopt($target, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
$result = curl_exec($target);
curl_close($target);
if ($result)
echo $result;
?>
import requests
username = 'username'
password = 'password'
user_pass = (username, password)
response = requests.get('http://scrape.smartproxy.com/v1/user/stats', auth=user_pass)
print(response.text)
Required parameters:
target
Available parameters:
Parameter | Description | Valid values |
---|---|---|
date_from | The lower date boundary. Best used together with date_to | Any date in Y-m-d format. |
date_to | The upper date boundary. Best used together with date_from | Any date in Y-m-d format. |
group_by | Enables showing daily, monthly or yearly usage stats (instead of showing total stats) | day, month, year |
target | Lets you get usage statistics of a single target of your choice. | Any valid target value. |
Updated 4 months ago