Get usage
curl --request GET \
--url https://api.meerapi.com/usage_stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.meerapi.com/usage_stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.meerapi.com/usage_stats', 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.meerapi.com/usage_stats",
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.meerapi.com/usage_stats"
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.meerapi.com/usage_stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meerapi.com/usage_stats")
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{
"customer_name": "acme_corp",
"total_requests": 4823,
"monthly": [
{
"year": 2026,
"month": 3,
"request_count": 1500
},
{
"year": 2026,
"month": 4,
"request_count": 2100
},
{
"year": 2026,
"month": 5,
"request_count": 1223
}
],
"by_country": [
{
"country": "US",
"request_count": 3200
},
{
"country": "ES",
"request_count": 1100
},
{
"country": "IE",
"request_count": 523
}
]
}{
"error": "Missing API key. Please provide it as: Authorization: Bearer <YOUR_KEY>"
}{
"error": "invalid API key"
}{
"error": "unable to process request"
}Get usage
Lifetime request counts for the account that owns the API key, by month and by country. Free.
GET
/
usage_stats
Get usage
curl --request GET \
--url https://api.meerapi.com/usage_stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.meerapi.com/usage_stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.meerapi.com/usage_stats', 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.meerapi.com/usage_stats",
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.meerapi.com/usage_stats"
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.meerapi.com/usage_stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meerapi.com/usage_stats")
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{
"customer_name": "acme_corp",
"total_requests": 4823,
"monthly": [
{
"year": 2026,
"month": 3,
"request_count": 1500
},
{
"year": 2026,
"month": 4,
"request_count": 2100
},
{
"year": 2026,
"month": 5,
"request_count": 1223
}
],
"by_country": [
{
"country": "US",
"request_count": 3200
},
{
"country": "ES",
"request_count": 1100
},
{
"country": "IE",
"request_count": 523
}
]
}{
"error": "Missing API key. Please provide it as: Authorization: Bearer <YOUR_KEY>"
}{
"error": "invalid API key"
}{
"error": "unable to process request"
}Authorizations
Authorization: Bearer <YOUR_API_KEY>. The Bearer prefix is optional.
Response
Usage for your account.
The account the API key belongs to.
Sum of monthly[].request_count.
Oldest month first. Months with no requests may be missing.
Show child attributes
Show child attributes
Most requests first, then by country code.
Show child attributes
Show child attributes
⌘I