Daily Usage
curl --request GET \
--url https://api.hirebase.org/v2/billing/usage/dailyimport requests
url = "https://api.hirebase.org/v2/billing/usage/daily"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hirebase.org/v2/billing/usage/daily', 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.hirebase.org/v2/billing/usage/daily",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.hirebase.org/v2/billing/usage/daily"
req, _ := http.NewRequest("GET", url, nil)
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.hirebase.org/v2/billing/usage/daily")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hirebase.org/v2/billing/usage/daily")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"stripe_customer_id": "cus_XXXXXXXXXXXXX",
"from_date": "2026-08-23",
"to_date": "2026-08-25",
"days": [
{ "date": "2026-08-23", "total": 0, "meters": { "m_jobs_api_calls": 0 } },
{ "date": "2026-08-24", "total": 0, "meters": { "m_jobs_api_calls": 0 } },
{ "date": "2026-08-25", "total": 3, "meters": { "m_jobs_api_calls": 3 } }
]
}
Billing & Usage
Daily Usage
Daily per-meter usage timeseries, up to 90 days
GET
/
v2
/
billing
/
usage
/
daily
Daily Usage
curl --request GET \
--url https://api.hirebase.org/v2/billing/usage/dailyimport requests
url = "https://api.hirebase.org/v2/billing/usage/daily"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hirebase.org/v2/billing/usage/daily', 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.hirebase.org/v2/billing/usage/daily",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.hirebase.org/v2/billing/usage/daily"
req, _ := http.NewRequest("GET", url, nil)
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.hirebase.org/v2/billing/usage/daily")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hirebase.org/v2/billing/usage/daily")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"stripe_customer_id": "cus_XXXXXXXXXXXXX",
"from_date": "2026-08-23",
"to_date": "2026-08-25",
"days": [
{ "date": "2026-08-23", "total": 0, "meters": { "m_jobs_api_calls": 0 } },
{ "date": "2026-08-24", "total": 0, "meters": { "m_jobs_api_calls": 0 } },
{ "date": "2026-08-25", "total": 3, "meters": { "m_jobs_api_calls": 3 } }
]
}
Returns a day-by-day usage timeseries, optionally filtered to a single meter. Days with no usage are zero-filled. Calls to this endpoint are not metered.
Requires authentication (API key or JWT).
Endpoint
GET /v2/billing/usage/daily
Query Parameters
string
Range start,
YYYY-MM-DD (UTC, inclusive). Defaults to 6 days ago.string
Range end,
YYYY-MM-DD (UTC, inclusive). Defaults to today.string
Filter to one meter by
event_name (e.g. m_jobs_api_calls).- Supply both
fromandto— if only one is present, both are ignored and the default 7-day window is used. - Maximum range is 90 days (
422beyond that);tobeforefromalso returns422; malformed dates return422with"Invalid <param>: expected YYYY-MM-DD".
Response
string | null
Your Stripe customer ID
string
Resolved range start (
YYYY-MM-DD)string
Resolved range end (
YYYY-MM-DD)array
Example
curl 'https://api.hirebase.org/v2/billing/usage/daily?from=2026-08-23&to=2026-08-25&meter=m_jobs_api_calls' \
-H 'x-api-key: YOUR_API_KEY'
{
"stripe_customer_id": "cus_XXXXXXXXXXXXX",
"from_date": "2026-08-23",
"to_date": "2026-08-25",
"days": [
{ "date": "2026-08-23", "total": 0, "meters": { "m_jobs_api_calls": 0 } },
{ "date": "2026-08-24", "total": 0, "meters": { "m_jobs_api_calls": 0 } },
{ "date": "2026-08-25", "total": 3, "meters": { "m_jobs_api_calls": 3 } }
]
}