Account

Your plan, your credits, and how far back you can read

GET https://api.tickerdb.com/v1/account

Account tells you your plan, how many credits you have left, and the first date you can read. Check it before a big pull, or before asking for an old date. It's free.

curl
curl "https://api.tickerdb.com/v1/account" \ -H "Authorization: Bearer YOUR_API_KEY"
Response
{ "tier": "plus", "tier_full": "plus", "plan": "Plus", "email": "dev@example.com", "limits": { "monthly_requests": 200000, "overage_enabled": true, "search_results": 250, "history_start": "2023-11-11" }, "usage": { "monthly_requests_used": 142, "monthly_requests_remaining": 199858, "credit_balance": 0 }, "scheduled_tier": null, "scheduled_change_at": null }

Account answers even when you're out of credits. The burst limit still applies. Every response from the API also carries your usage in its headers (see Rate Limits).

Before a big pull

  • Enough credits? You can spend monthly_requests_remaining, and after that credit_balance if overage_enabled is true.
  • Far enough back? history_start is the first date you can read. An earlier date returns 403 tier_restricted.

What each plan includes is in Rate Limits.

Response fields

FieldTypeDescription
planstringYour plan's name: Free, Plus, Pro or Commercial
tierstringfree, plus or pro. Commercial shows pro
tier_fullstringLike tier, but Commercial shows business
emailstringThe account's email
scheduled_tier, scheduled_change_atstring | nullA plan change waiting for the end of your billing period, and when it happens. null when there's none

limits

FieldTypeDescription
monthly_requestsintegerCredits included each month
overage_enabledbooleanWhether requests go on after the monthly credits, paid from credit_balance
search_resultsintegerThe most rows one search returns
history_startstringThe first date you can read

usage

FieldTypeDescription
monthly_requests_usedintegerCredits used this month
monthly_requests_remainingintegerMonthly credits left. 0 once they're used up
credit_balanceintegerCredits you've bought or been given. They're spent after the monthly credits, and don't expire

Errors

Statuserror.typeCauseWhat to do
400invalid_parameterA query parameter. Account takes none.Send it without parameters.
503rate_limit_unavailableUsage can't be read right now.Try again in a few seconds.

Authentication and rate-limit errors are on Authentication and Errors & Caching.