Account
docs/API Reference/Account

Account

View your account and usage.

Endpoints

The account endpoint returns information about your current plan, API key, and usage statistics for the current billing period. Use it to monitor consumption, display usage dashboards, or check remaining quota before making API calls.

Get Account

GET/v1/accountx-api-key

Retrieve your account information including plan details, usage statistics, and rate limits.

Response

emailstring

The email address associated with this API key.

planstring

Your current plan. One of: usage, starter, pro.

apiKeystring

Your API key (partially masked for security). Format: sk_ks_...last4.

usageobject

Usage statistics for the current billing period. Contains counts for each operation type.

usage.extractsnumber

Number of extract operations performed this billing period.

usage.scrapesnumber

Number of scrape operations performed this billing period.

usage.screenshotsnumber

Number of screenshot operations performed this billing period.

usage.classifiesnumber

Number of classify operations performed this billing period.

usage.sitemapsnumber

Number of sitemap operations performed this billing period.

usage.searchesnumber

Number of search operations performed this billing period.

usage.tokensnumber

Total tokens consumed across all AI operations this billing period.

limitsobject

Plan limits for the current billing period. Contains the maximum allowed count for each operation type.

limits.extractsnumber

Maximum extract operations allowed per billing period.

limits.scrapesnumber

Maximum scrape operations allowed per billing period.

limits.screenshotsnumber

Maximum screenshot operations allowed per billing period.

limits.searchesnumber

Maximum search operations allowed per billing period.

limits.tokensnumber

Maximum tokens allowed per billing period.

Example

Example Response

json snippet{}json
{
  "email": "developer@example.com",
  "plan": "starter",
  "apiKey": "sk_ks_...a1b2",
  "usage": {
    "extracts": 42,
    "scrapes": 156,
    "screenshots": 18,
    "classifies": 42,
    "sitemaps": 42,
    "searches": 1847,
    "tokens": 284500
  },
  "limits": {
    "extracts": 100,
    "scrapes": 500,
    "screenshots": 200,
    "searches": 5000,
    "tokens": 1000000
  }
}

Monitoring Usage Programmatically

typescript snippetTStypescript
const account = await ks.account.get();

const extractsRemaining = account.limits.extracts - account.usage.extracts;

if (extractsRemaining <= 0) {
  console.log("Extract limit reached. Upgrade your plan or wait for the next billing period.");
} else {
  console.log(`${extractsRemaining} extracts remaining this period.`);
  const result = await ks.extract({ url: "https://example.com" });
}

Plan Comparison

FeatureUsage (Pay-as-you-go)Starter ($29/mo)Pro ($99/mo)
ExtractsPay per use100/mo500/mo
ScrapesPay per use500/mo2,500/mo
ScreenshotsPay per use200/mo1,000/mo
SearchesPay per use5,000/mo25,000/mo
TokensPay per use1M/mo5M/mo
Rate limit10 req/min30 req/min60 req/min

Usage resets at the start of each billing period. If you need higher limits, upgrade your plan at knowledgesdk.com/pricing.

The usage data is cached for up to 5 minutes. If you need real-time usage tracking immediately after an operation, wait a few seconds before querying the account endpoint.