Skip to main content
GET
/
api
/
v1
/
usage
Get Usage
curl --request GET \
  --url https://data-api.sovfixer.com/api/v1/usage \
  --header 'Authorization: <api-key>'
import requests

url = "https://data-api.sovfixer.com/api/v1/usage"

headers = {"Authorization": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: '<api-key>'}};

fetch('https://data-api.sovfixer.com/api/v1/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://data-api.sovfixer.com/api/v1/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 => [
"Authorization: <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://data-api.sovfixer.com/api/v1/usage"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "<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://data-api.sovfixer.com/api/v1/usage")
.header("Authorization", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://data-api.sovfixer.com/api/v1/usage")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "granularity": "1h",
  "start": "2025-05-08T10:00:00Z",
  "end": "2025-05-15T10:00:00Z",
  "buckets": [
    {
      "bucket": "2025-05-08T10:00:00Z",
      "counts": {
        "TD": 12,
        "total": 12
      }
    }
  ],
  "totals": {
    "TD": 100,
    "total": 100
  }
}
{
"message": "<string>"
}
{
"message": "<string>"
}
{
"message": "<string>"
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Query Parameters

end
string

End of the time range. Accepts a relative offset or ISO 8601 UTC timestamp. Defaults to now.

org_short_name
string

Filter by organization short name (e.g. 'AMWNS'). Staff only. Mutually exclusive with username.

start
string

Start of the time range. Accepts a relative offset (-5m, -1h, -30d) or an ISO 8601 UTC timestamp. Defaults to -30d.

username
string

Filter by this username. Defaults to the requesting user. Staff only when querying another user.

Response

buckets
object[]
required

Time-series rows ordered by bucket start time.

end
string<date-time>
required

Resolved end of the range (UTC).

granularity
enum<string>
required

Bucket granularity selected based on the time range.

Available options:
5m,
1h,
1d
start
string<date-time>
required

Resolved start of the range (UTC).

totals
object
required

Summed count per source key over the entire range. Key 'total' is the cross-source aggregate.