Today's usage
curl --request GET \
--url https://api.getmetacognition.com/usage/todayimport requests
url = "https://api.getmetacognition.com/usage/today"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.getmetacognition.com/usage/today', 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.getmetacognition.com/usage/today",
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.getmetacognition.com/usage/today"
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.getmetacognition.com/usage/today")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getmetacognition.com/usage/today")
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{
"tokens_in_used": 123,
"tokens_out_used": 123,
"tokens_in_limit": 123,
"tokens_out_limit": 123,
"period": "<string>",
"period_start": "<string>",
"period_end": "<string>"
}Usage
Today's usage
Read today’s token totals, limits, and reset time.
GET
/
usage
/
today
Today's usage
curl --request GET \
--url https://api.getmetacognition.com/usage/todayimport requests
url = "https://api.getmetacognition.com/usage/today"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.getmetacognition.com/usage/today', 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.getmetacognition.com/usage/today",
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.getmetacognition.com/usage/today"
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.getmetacognition.com/usage/today")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getmetacognition.com/usage/today")
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{
"tokens_in_used": 123,
"tokens_out_used": 123,
"tokens_in_limit": 123,
"tokens_out_limit": 123,
"period": "<string>",
"period_start": "<string>",
"period_end": "<string>"
}Returns today’s
Response —
tokens_in and tokens_out, plus the limits that trigger 429. This request does not count against your quota, so you can poll it from dashboards or monitors.
Headers
Authorization: Bearer <access_token>
Response — 200
integer
Input tokens billed today.
integer
Output tokens billed today.
integer
Daily ingress cap.
integer
Daily egress cap.
string
Always
"day_utc".string
ISO 8601 timestamp at 00:00 UTC today.
string
ISO 8601 timestamp at 00:00 UTC tomorrow (when limits reset).
Example
curl -H "Authorization: Bearer $JWT" \
https://api.getmetacognition.com/usage/today
import httpx
resp = httpx.get(
"https://api.getmetacognition.com/usage/today",
headers={"Authorization": f"Bearer {jwt}"},
)
data = resp.json()
print(f"in: {data['tokens_in_used']:,} / {data['tokens_in_limit']:,}")
print(f"out: {data['tokens_out_used']:,} / {data['tokens_out_limit']:,}")
Response
{
"tokens_in_used": 12,
"tokens_out_used": 27,
"tokens_in_limit": 1000000,
"tokens_out_limit": 5000000,
"period": "day_utc",
"period_start": "2026-05-08T00:00:00+00:00",
"period_end": "2026-05-09T00:00:00+00:00"
}

