pacer_stats
Retrieve statistics about PACER federal court records, including total cases indexed, courts covered, date range, and last updated timestamp.
Instructions
Get statistics about the PACER court records dataset: total cases indexed, courts covered, date range, and last updated timestamp. Free endpoint.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/pacer.ts:169-177 (registration)Registration of the pacer_stats tool.
server.registerTool( "pacer_stats", { title: "PACER Dataset Statistics", description: "Get statistics about the PACER court records dataset: total cases indexed, " + "courts covered, date range, and last updated timestamp. Free endpoint.", inputSchema: {}, }, - src/tools/pacer.ts:178-209 (handler)Handler implementation for the pacer_stats tool.
async () => { const res = await apiGet<PacerStatsResponse>("/api/v1/pacer/stats"); if (!res.ok) { if (res.status === 404) { return { content: [ { type: "text" as const, text: "PACER dataset is not yet available. This data source is coming soon.", }, ], }; } return { content: [ { type: "text" as const, text: `API error (${res.status}): ${JSON.stringify(res.data)}`, }, ], isError: true, }; } return { content: [ { type: "text" as const, text: JSON.stringify(res.data, null, 2) }, ], }; }, ); - src/tools/pacer.ts:22-27 (schema)Schema definition for pacer_stats response.
interface PacerStatsResponse { dataset: string; source: string; update_frequency: string; stats: Record<string, unknown>; }