SerpHubAPI

La documentación está escrita en inglés y chino. Aquí las páginas aparecen en inglés.

Account

GET /v1/account — check your credit balance and this month's usage programmatically.

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

Returns your current balance and usage for the current calendar month (UTC). Free to call. Useful for reconciliation and for alerting before you run out.

curl https://api.serphubapi.com/v1/account \
  -H "X-API-Key: shapi_xxxxxxxx"

Response

{
  "balance_credits": 15420,
  "gift_credits": 420,
  "gift_expires_at": "2026-11-12T09:30:00+00:00",
  "paid_credits": 15000,
  "month_usage": {
    "calls": 1284,
    "credits_charged": 11870
  }
}
FieldTypeDescription
balance_creditsintegerTotal credits available now (gift + paid).
gift_creditsintegerPart of the balance that is gift credits (these expire).
gift_expires_atstring | nullWhen the gift credits expire (ISO 8601). null if you have no valid gift credits.
paid_creditsintegerPart of the balance from top-ups. Never expires.
month_usage.callsintegerCalls this month that returned a result (successful or empty).
month_usage.credits_chargedintegerCredits spent this month.

Gift credits are always spent before paid credits. See Billing.

The balance is account-wide: all your API keys draw from it. Per-key daily limits are configured at /dashboard/keys. For per-day, per-key and per-engine breakdowns, see /dashboard/usage; to download the ledger as CSV, use /dashboard/wallet.

Errors

HTTPCodeWhen
401invalid_api_keyMissing, invalid or disabled key