Skip to content

New Official SDKs for TypeScript, Python and Go

SerpKite
Get API key
Docs menu / Account

Account

Balance, rate limit, plan and this month's usage for the account behind the calling key.

GET https://api.serpkite.com/v1/account Credits: Free
View as Markdown

A free call to check the balance before a large job, or to show usage in your own UI. It also returns the calling key's monthly limit and usage when the key has one.

Example request

Authenticate with Authorization: Bearer $SERPKITE_API_KEY (GET requests may pass ?api_key= instead). The official SDKs read SERPKITE_API_KEY for you. See Authentication.

curl "https://api.serpkite.com/v1/account" \
  -H "Authorization: Bearer $SERPKITE_API_KEY"

Response fields

FieldTypeDescription
balancenumberRemaining credits (decimal).
rate_limit_rpsintegerRequests per second allowed per key.
planstringfree or paid.
keyobjectid, name, credit_limit (number or null), credits_used_month.
monthly_spend_capnumber | nullAccount-wide monthly cap, if set.
monthobjectcredits and requests in the current UTC calendar month.

Example response

200 OK · illustrative
{
  "balance": 61499.5,
  "rate_limit_rps": 50,
  "plan": "paid",
  "key": {
    "id": "0192f7a4-0000-7000-8000-000000000001",
    "name": "production",
    "credit_limit": 20000,
    "credits_used_month": 3120.5
  },
  "monthly_spend_cap": 50000,
  "month": {
    "credits": 4210.5,
    "requests": 4388
  }
}

Errors

Errors use one shape: {"error":{"code","message","request_id"}}. Errors are never billed. Full list in Errors.

StatusCodeMeaning
400invalid_requestA parameter is missing or invalid.
401unauthorizedThe API key is missing, invalid or revoked.
402insufficient_creditsYour balance is too low. Buy a pack or wait for the monthly free grant.
429rate_limitedToo many requests per second for your plan. Retry after the Retry-After header.
503upstream_errorGoogle could not be fetched or parsed. Not billed; retry after Retry-After.

Notes

  • Not billed. Works with any active key of the account.