Skip to main content

GET /v1/limits

Returns your current plan details, credit usage, rate limits, and feature flags.

Minimum tier: Free | Credits: 0 (free — safe to poll)

GET https://kwery-api.com/v1/limits?api-key=YOUR_KEY

Parameters

ParameterTypeRequiredDefaultDescription
api-keystringYesYour API key. Passed as a query parameter.

Response fields

The response is returned directly (not wrapped in data / meta).

FieldTypeDescription
planstringCurrent plan name: free, pro, business, or enterprise.
creditsobjectCredit usage for the current billing cycle.
credits.usedintegerCredits consumed so far.
credits.limitintegerTotal credits available per cycle.
credits.remainingintegerCredits remaining (limit - used).
rate_limitsobjectRequest quotas.
rate_limits.requests_per_minuteintegerMaximum requests allowed per minute.
rate_limits.requests_per_hourintegerMaximum requests allowed per hour.
rate_limits.current_minuteintegerRequests made in the current minute window.
rate_limits.current_hourintegerRequests made in the current hour window.
featuresobjectBoolean flags for gated features.
features.orderbook_snapshotsbooleanAccess to Polymarket order book depth.
features.binance_1s_tickerbooleanAccess to Binance 1-second ticker data.
features.kalshi_orderbookbooleanAccess to Kalshi order book depth.
features.trade_ticksbooleanAccess to raw trade tick data.
features.snapshots_500msbooleanAccess to 500ms snapshot intervals.
features.include_diffsbooleanAccess to incremental order book diffs.
features.min_usd_liquidationsbooleanAccess to filtered USD liquidation feeds.
max_rows_per_requestintegerMaximum rows a single request can return.
max_history_daysintegerMaximum number of days of historical data available.

Response headers

HeaderDescription
X-Credits-ChargedAlways 0 for this endpoint.
X-RateLimit-RemainingRequests remaining in the current rate-limit window.
X-RateLimit-ResetISO 8601 timestamp when the rate-limit window resets.

Example request

cURL

curl "https://kwery-api.com/v1/limits?api-key=YOUR_KEY"

Python

import requests

resp = requests.get("https://kwery-api.com/v1/limits", params={
    "api-key": "YOUR_KEY",
})
data = resp.json()
print(f"Credits remaining: {data['credits']['remaining']}")

TypeScript

const res = await fetch(
  `https://kwery-api.com/v1/limits?api-key=YOUR_KEY`
);
const data = await res.json();
console.log(`Credits remaining: ${data.credits.remaining}`);

Example response

{
  "plan": "pro",
  "credits": {
    "used": 142350,
    "limit": 1000000,
    "remaining": 857650
  },
  "rate_limits": {
    "requests_per_minute": 50,
    "requests_per_hour": 3000,
    "current_minute": 12,
    "current_hour": 487
  },
  "features": {
    "orderbook_snapshots": true,
    "binance_1s_ticker": true,
    "kalshi_orderbook": true,
    "trade_ticks": false,
    "snapshots_500ms": false,
    "include_diffs": false,
    "min_usd_liquidations": false
  },
  "max_rows_per_request": 1000,
  "max_history_days": 365
}

Source-specific behavior

This endpoint is source-agnostic. Feature flags apply globally across all sources — for example, orderbook_snapshots: true unlocks order book data on both Polymarket and Kalshi endpoints.

Errors

StatusCodeDescription
401unauthorizedMissing or invalid api-key.
429rate_limit_exceededYou have exceeded your per-minute or per-hour request quota.