Pay-Per-Query: API Pricing for Court Data

Resources  ·  Payments

The default model for court data APIs is a monthly subscription: fixed fee, volume tiers, pay whether you query or not. That works for large teams running steady, predictable volumes. For everyone else — a compliance team whose counterparty events are bursty, an AI agent that queries on demand, a developer evaluating whether the data fits their use case — a subscription means paying for capacity you didn't use.

Pay-per-query is the alternative. You pay for the request, at the moment you make it, for exactly the data you retrieve. DocketLayer is built on this model, using x402 for frictionless per-request billing.

The Subscription Model

Subscription pricing makes sense when usage is high and predictable. A legal analytics firm running 50,000 queries per day against federal district courts can forecast its monthly cost, negotiate a volume rate, and amortize the per-query cost well below what individual pricing would deliver. One monthly invoice, one line item, no per-transaction reconciliation.

The cracks show at the edges. A startup that doesn't know its query volume yet pays for headroom it may not need. A researcher who needs two intensive weeks followed by months of dormancy pays for the dormancy. A compliance team monitoring counterparties that are mostly inactive most of the time pays the same flat rate regardless. Subscriptions price for average usage; actual usage is rarely average.

The Pay-Per-Query Model

Pay-per-query charges only for requests made. At DocketLayer's rate of $0.99 per query, a researcher running 100 queries for a specific investigation pays $99 and stops. No minimum, no commitment, no invoice for capacity sitting unused.

x402 removes all provisioning overhead. No account, no API key, no billing relationship to establish. Any caller with a funded Solana wallet can make requests immediately. This matters for AI agents that cannot provision accounts, for scripts that run once and are discarded, and for teams evaluating the data before committing to a recurring cost.

The tradeoff is unit economics at volume. At $0.99 per query, 5,000 queries a month is $4,950. Pay-per-query is not designed for sustained high-volume workloads where subscription rates from other providers would be materially cheaper.

Cost Modeling

A simple frame: if your query volume is high, steady, and predictable month over month, a subscription from a traditional court data provider may offer better unit economics. Pay-per-query tracks cost to value when usage is variable — bursty investigations, on-demand agent queries, or workloads where you pay only during active periods.

For burst workloads — litigation monitoring that generates heavy queries when a case is active and near-zero between filings — pay-per-query tracks cost to value delivered. For steady-state workloads at high volume, model the total monthly cost against available alternatives before committing.

Agent Workloads

AI agents add a dimension that purely human-facing APIs don't encounter. An agent can make many small queries rapidly — pulling a docket when an event triggers, checking related cases, verifying a party — or sit idle for days. Subscription pricing creates an incentive to build batching and polling logic to maximize the monthly allocation. Pay-per-query lets the agent query precisely when needed, without cost optimization overhead baked into the agent design.

x402 also enables per-agent cost attribution at a granularity subscriptions can't match. Each agent has its own wallet; every query has an on-chain transaction; cost per agent, per case, or per workflow is directly observable. For operators running multi-agent systems with cost controls, that granularity is operationally useful regardless of the per-query economics.

DocketLayer Pricing

DocketLayer charges $0.99 per successful query — no account required, payment in USDC on Solana via x402. We never charge for a failed request: a court returning a 422, a portal outage triggering a 503, or a payment that didn't verify all result in no charge.

The x402 path is the fastest way to start. No signup, no credit card, no waiting. Fund a Solana wallet with USDC and your first query is one request away. See the pricing page for full details.