PACER Docket Search
POST /api/v1/pacer/dockets/search
Search US federal court filings from PACER records in the free RECAP archive by keyword, court, case name, docket number, party or filing date and get up to 20 of the newest matching documents with case names, courts, filing dates, text excerpts and docket links.
Overview
Search US federal court filings from PACER records in the free RECAP archive by keyword, court, case name, docket number, party or filing date and get up to 20 of the newest matching documents with case names, courts, filing dates, text excerpts and docket links.
POST /api/v1/pacer/dockets/search
Method: POST Path: /api/v1/pacer/dockets/search Category: Research & Public Records
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| case_name | string | Optional | Only cases whose name matches this text, e.g. "Apple". |
| court | string | Optional | Only these courts, as comma-separated court IDs, e.g. "nysd" or "cand,txwd". |
| docket_number | string | Optional | Only the case with this docket number, e.g. "1:16-cv-00745". |
| filed_after | string | Optional | Only documents filed on or after this date (YYYY-MM-DD). |
| filed_before | string | Optional | Only documents filed on or before this date (YYYY-MM-DD). |
| limit | integer | Optional | Maximum number of filings to return (1-20, newest first). For older filings, set filed_before. |
| nature_of_suit | string | Optional | Only cases of this nature of suit, e.g. "Patent" or "Civil Rights". |
| party_name | string | Optional | Only cases with a party of this name, e.g. "Amazon.com, Inc.". |
| query | string | Optional | Search keywords in the filed documents, e.g. "motion to dismiss". Supports quoted phrases and AND/OR. Optional when case_name, docket_number or party_name is set. |
Request Example
PACER Docket Search Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/pacer/dockets/search" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"case_name": "example", "court": "example", "docket_number": "example", "filed_after": "example", "filed_before": "example", "limit": "20", "nature_of_suit": "example", "party_name": "example", "query": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "query": "string", "filters": { "court": "string", "case_name": "string", "docket_number": "string", "party_name": "string", "nature_of_suit": "string", "filed_after": "string", "filed_before": "string" }, "sort": "newest", "source": "string", "returned_results": 0, "results": [ { "case_name": "string", "court": "string", "date_filed": "string", "docket_id": 0, "document_number": 0, "attachment_number": 0, "snippets": [ "string" ], "document_url": "https://example.com/...", "docket_url": "https://example.com/..." } ], "error": "string", "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "PACER Docket Search", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | Search keywords that were searched, or empty when only filters were used. |
| filters | object | Yes | Filters applied; unused filters are empty. |
| filters.court | string | No | Comma-separated court IDs, or empty. |
| filters.case_name | string | No | Case name filter, or empty. |
| filters.docket_number | string | No | Docket number filter, or empty. |
| filters.party_name | string | No | Party name filter, or empty. |
| filters.nature_of_suit | string | No | Nature of suit filter, or empty. |
| filters.filed_after | string | No | Earliest document filing date (YYYY-MM-DD), or empty. |
| filters.filed_before | string | No | Latest document filing date (YYYY-MM-DD), or empty. |
| sort | string | Yes | Result order: most recently filed first. |
| source | string | Yes | Attribution for the data. |
| returned_results | integer | Yes | Number of filings returned. |
| results | array<object> | Yes | |
| results[].case_name | string | Yes | Case name. |
| results[].court | string | Yes | Full name of the court. |
| results[].date_filed | string | Yes | Date the document was filed (YYYY-MM-DD), or empty when unknown. |
| results[].docket_id | integer | Yes | RECAP docket ID; pass it to PACER Docket Details. |
| results[].document_number | integer | Yes | Docket entry number of the document. |
| results[].attachment_number | integer | null | Yes | Attachment number, or null for the main document. |
| results[].snippets | array<string> | Yes | Short excerpts of the document text around the match. |
| results[].document_url | string | Yes | Page of the filed document in the RECAP archive. |
| results[].docket_url | string | Yes | Docket page URL in the RECAP archive. |
| error | string | No | Present only when the search failed. |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/pacer/dockets/search?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
case_name,court,docket_number,filed_after,filed_before,limit,nature_of_suit,party_name,query example,example,example,example,example,20,example,example,example
Pricing & Rate Limits
Endpoint Pricing
$0.0012 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |