Account API
Read your current plan, quota, credits used, balance, and next billing date. Useful for budget tracking in agents, dashboards, and scheduled jobs that need to back off before hitting the cap.
Authentication
Same ApiKey header as every other Ujeebu endpoint.
GET ApiKey: YOUR_API_KEY
Request
GET https://api.ujeebu.com/account
No query parameters. The endpoint returns data for the account that owns the API key.
WARNING — Rate Limit
Calls to this endpoint do not count against your per-second call quota, but they're capped at 10 calls per minute per key. Cache the response client-side if you're polling.
Response
{
"userid": "90834083",
"plan": "MEDIUM",
"quota": 1000000,
"used": 70,
"used_percent": 0.01,
"total_requests": 7,
"balance": 0,
"concurrent_requests": 50,
"next_billing_date": "2024-11-01 18:38:00",
"days_till_next_billing": 10
}
Field Reference
| Field | Type | Description |
|---|---|---|
userid |
string |
Your numeric user ID as a string. |
plan |
string |
Display name of your current plan (e.g. Starter, Growth, Pro, Business, TRIAL). |
quota |
integer |
Total credit allowance for the current billing period. |
used |
integer |
Credits consumed in the current period. |
used_percent |
float |
used / quota as a percentage, two decimal places. |
total_requests |
integer |
Number of API calls made in the period. Less than used when calls cost more than one credit (e.g. JS rendering, residential proxies, AI extraction). |
balance |
float |
Top-up balance in USD, if any. Used after the included quota is exhausted. |
concurrent_requests |
integer |
Max concurrent requests your plan allows. |
next_billing_date |
string|null |
ISO datetime of next renewal. null on trial. |
days_till_next_billing |
integer |
Convenience field; days until next_billing_date. 0 on trial. |
Code Examples
cURL
curl -X GET 'https://api.ujeebu.com/account' \
-H "ApiKey: YOUR_API_KEY"
Node.js
const res = await fetch('https://api.ujeebu.com/account', {
headers: { 'ApiKey': 'YOUR_API_KEY' }
});
const account = await res.json();
console.log(`${account.used} / ${account.quota} credits used (${account.used_percent}%)`);
Python
import requests
res = requests.get(
'https://api.ujeebu.com/account',
headers={'ApiKey': 'YOUR_API_KEY'},
)
account = res.json()
print(f"{account['used']} / {account['quota']} credits used ({account['used_percent']}%)")
When to use it
-
Budget-aware agents. Check
used_percentbefore kicking off a large batch; pause or alert when it crosses a threshold. - Dashboards. Render real-time usage without scraping the Ujeebu dashboard.
-
Scheduled jobs. Confirm
days_till_next_billingbefore running a billing-period-bound report. -
MCP / agent integrations. This endpoint is also exposed as the
accounttool by the Ujeebu MCP server.
Errors
| Status | Meaning |
|---|---|
401 |
Missing or invalid ApiKey header. |
429 |
You exceeded the 10-calls-per-minute cap for this endpoint. Back off and retry. |
400 |
Internal error fetching account state. Retry; contact support if persistent. |
Spin up an API key in 60 seconds
Free tier: 5,000 credits, no card, full access to every endpoint on this page.