Docs / Page

Rate Limits & Credits

Agentii uses a tiered credit model. Credits, not raw API calls, are the unit of consumption — reflecting the asymmetric cost of different data retrieval operations.

Credit Cost by Endpoint Category

Credit consumption is calculated per FR-001a. Categories reflect the computational cost of each operation.

CategoryEndpointsCredits
Lightweight metadatasearch_companies, get_company_profile, list_domains, health, list_coverage, get_ticker_coverage, list_sources, list_xbrl_concepts, get_xbrl_fact, get_sec_filing, get_earnings_calendar_event, list_upcoming_earnings1
Standard searchsearch_documents, search_sec_filings, search_xbrl_facts, search_earnings_calendar1
Page mapread_source_outline2
Keyword FTSsearch_keyword_in_source2
Deep labels surchargeread_source_outline, search_keyword_in_source (with include_deep_labels=true)+1
Page retrievalread_source_pages1 / page
Cross-period searchsearch_cross_period1 / period
Unified searchsearch_unified3
Batch searchbatch_searchΣ sub-queries
ErrorsHTTP 400, 401, 403, 404, 429, 5030

Plan Tiers

PlanPriceMonthly CreditsExtra Usage
Free Trial$02,000 (7 days)N/A
Starter$19.90/mo10,000$0.005 / credit
Pro$49/mo50,000$0.005 / credit
Enterprise$199/mo500,000Custom

Rate Limit Behavior

  • Per-minute burst limits enforced via Redis ZSET sliding window algorithm.
  • When exceeded, the API returns 429 Too Many Requests with a Retry-After header specifying the wait time in seconds.
  • Rate limit status is returned in every response via X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers.
  • Credit consumption is returned in X-Credits-Consumed and X-Credits-Remaining headers on every authenticated response.

Credit Estimation

Estimate costs before executing expensive calls:

  • Page retrieval: Call read_source_outline first to get total_pages. Multiply by 1 credit/page for the read_source_pages call.
  • Cross-period: Each successful fiscal period costs 1 credit. Failed or unavailable periods cost 0.
  • Deep labels: Adding include_deep_labels=true adds +1 credit to the base cost.

See also: Getting Started · Error Codes · Authentication