API Reference
Usage
Monitor your API usage, check rate limits, and track request consumption. Get detailed usage breakdowns by endpoint, current month statistics, and recommendations for plan upgrades when approaching limits.
Get API usage statistics
https://roxyapi.com/api/v2/usageReturns the live quota position for the API key on the request: plan name, billable requests used in the current UTC calendar month, the monthly allowance, and how many requests remain. It also returns the subscription status, billing email and the date the current billing period ends, so a dashboard can show quota and renewal together. Poll it to drive usage meters, low balance warnings, and upgrade prompts before a 429 ever happens.
Call it
import { createRoxy } from '@roxyapi/sdk'
const roxy = createRoxy(process.env.ROXY_API_KEY!)
const { data } = await roxy.usage.getUsageStats()Install: npm install @roxyapi/sdk
from roxy_sdk import create_roxy
roxy = create_roxy("YOUR_API_KEY")
result = roxy.usage.get_usage_stats()Install: pip install roxy-sdk
use function RoxyAPI\Sdk\createRoxy;
$roxy = createRoxy(getenv('ROXY_API_KEY'));
$result = $roxy->usage->getUsageStats();Install: composer require roxyapi/sdk
using RoxyApi;
var roxy = new RoxyClient(Environment.GetEnvironmentVariable("ROXY_API_KEY")!);
var result = await roxy.Usage.GetAsync();Install: dotnet add package RoxyApi.Sdk
import roxyapi "github.com/RoxyAPI/sdk-go"
roxy, _ := roxyapi.NewRoxy(os.Getenv("ROXY_API_KEY"))
resp, _ := roxy.Usage.GetUsageStats(ctx, nil)Install: go get github.com/RoxyAPI/sdk-go
use roxyapi::Roxy;
async fn call(roxy: &Roxy) -> Result<(), roxyapi::Error> {
let result = roxy.usage().get_usage_stats().await?;
println!("{result:?}");
Ok(())
}Install: cargo add roxyapi
curl "https://roxyapi.com/api/v2/usage" \
-H "X-API-Key: YOUR_KEY"Typed SDKs in 6 languages.
Response fields
Example response
{
"plan": "Pro",
"usedThisMonth": 1523,
"requestsPerMonth": 10000,
"remainingThisMonth": 8477,
"email": "dev@example.com",
"status": "active",
"endDate": "2026-09-01T00:00:00.000Z"
}Hi, I am Rosie, your guide to the RoxyAPI insight tools.
Ask me to read your birth chart, pull a card, or map your numbers, and I will interpret what it means for you. Unlike most AIs, I never make the numbers up: every reading runs on real, verified calculations. Curious about the API, pricing, or docs instead? Ask me that too.
