Skip to main content

Overview

GET /v2/case is the primary DocketLayer endpoint. Submit a case ID and court code, pay $0.99 in USDC via x402, and receive structured case data. Supply last_checked to get a delta block containing every new filing since your last query. Base URL: https://api.docketlayer.ai Price: $0.99 USDC per successful query Sandbox: Add ?test=1 or X-DocketLayer-Test: 1 — returns fixture data, no charge

Request

Parameters

FieldTypeRequiredDescription
case_idstringYesCase identifier — e.g. 1:24-cv-01234
court_codestringYesCourt identifier — e.g. nysd, deb, cand
last_checkedstringNoISO-8601 timestamp with timezone offset. When supplied, response includes a delta block.
contextstringNobasic (default) or full. full adds full party list with attorneys, cross-references, and complete docket history.
languagestringNoen or fr. For bilingual jurisdictions, requests the preferred response language.
filing_typesstringNoComma-separated list of filing types to filter the delta — e.g. order,judgment. Does not filter the case context.
callback_urlstringNoWebhook URL for async result delivery. Response is immediate; payload is pushed when ready.

Example request

curl "https://api.docketlayer.ai/v2/case?case_id=1:24-cv-01234&court_code=nysd&last_checked=2026-01-01T00:00:00Z"
Python
result = client.get(
    "https://api.docketlayer.ai/v2/case",
    params={
        "case_id": "1:24-cv-01234",
        "court_code": "nysd",
        "last_checked": "2026-01-01T00:00:00Z",
        "context": "basic"
    }
).json()

Response

Meta block

All responses include a meta block:
FieldTypeDescription
request_idstringUnique identifier for this request
queried_atstringISO-8601 timestamp — use as last_checked in your next call
query_cost_usdnumberAlways 0.99 for live queries; 0 in sandbox
coverage_statusstringfull or partial for this court
cache_age_secondsnumberSeconds since DocketLayer last refreshed this case from the source court
context_deliveredstringbasic or full
language_deliveredstringen, fr, or bilingual
truncatedbooleanWhether the response was truncated
sandboxbooleanWhether sandbox mode was active
tagstring | nullValue of X-DocketLayer-Tag header if supplied

Context: basic (default)

{
  "meta": {
    "request_id": "req_01jt7y4kx0",
    "queried_at": "2026-04-29T12:00:00Z",
    "query_cost_usd": 0.99,
    "coverage_status": "full",
    "cache_age_seconds": 87,
    "context_delivered": "basic",
    "language_delivered": "en",
    "truncated": false,
    "sandbox": false,
    "tag": null
  },
  "case_id": "1:24-cv-01234",
  "court_code": "nysd",
  "case": {
    "case_number": "1:24-cv-01234",
    "case_name": "Smith v. Jones",
    "case_name_secondary": null,
    "case_name_secondary_language": null,
    "case_type": "civil",
    "court_code": "nysd",
    "court_name": "Southern District of New York",
    "jurisdiction_country": "US",
    "language": "en",
    "date_filed": "2024-05-10T00:00:00-04:00",
    "date_terminated": null,
    "status": "open",
    "assigned_judge": "Hon. Sarah Johnson",
    "nature_of_proceeding": "Contract: Other",
    "cause": "28 USC 1332",
    "jury_demand": "both",
    "primary_parties": [
      { "name": "John Smith", "type": "plaintiff" },
      { "name": "Acme Corp.", "type": "defendant" }
    ],
    "appellate": null
  },
  "delta": {
    "changed": true,
    "since": "2026-01-01T00:00:00Z",
    "change_count": 1,
    "new_filings": [
      {
        "entry_number": 42,
        "filed_at": "2026-04-11T14:23:00Z",
        "filing_type": "order",
        "filed_by": "Hon. Sarah Johnson",
        "description": "Order granting motion to dismiss",
        "document_identifier": "0042",
        "document_identifier_type": "pacer_doc_id",
        "external_url": "https://ecf.nysd.uscourts.gov/doc1/..."
      }
    ]
  }
}
The delta block is only present when last_checked is supplied.

Context: full

When context=full, the case object expands to include full parties with attorneys, cross-references to related cases, and the complete docket history.
{
  "case": {
    "...all basic fields...",
    "parties": [
      {
        "name": "John Smith",
        "type": "plaintiff",
        "role_in_case": "lead plaintiff",
        "date_joined": "2024-05-10T00:00:00Z",
        "date_terminated": null,
        "attorneys": [
          {
            "name": "Jane Doe",
            "firm": "Doe & Associates LLP",
            "role": "lead counsel",
            "date_action": "2024-05-10T00:00:00Z"
          }
        ]
      }
    ],
    "cross_references": [
      {
        "relationship": "consolidated",
        "case_id": "1:24-cv-01235",
        "court_code": "nysd",
        "relationship_note": null
      }
    ],
    "docket_history": [
      {
        "entry_number": 1,
        "filed_at": "2024-05-10T09:00:00Z",
        "filing_type": "complaint",
        "filed_by": "John Smith",
        "description": "Complaint filed",
        "document_identifier": "0001",
        "document_identifier_type": "pacer_doc_id",
        "external_url": "https://ecf.nysd.uscourts.gov/doc1/..."
      }
    ]
  }
}

Case fields

FieldTypeDescription
case_numberstringThe case identifier
case_namestringPrimary case name
case_name_secondarystring | nullSecondary name (bilingual jurisdictions)
case_name_secondary_languagestring | nullLanguage of secondary name
case_typestringcivil, criminal, bankruptcy, appellate, etc.
court_codestringCourt identifier
court_namestringFull court name
jurisdiction_countrystringUS or CA
languagestring | nullen, fr, or bilingual
date_filedstring | nullISO-8601 case filing date
date_terminatedstring | nullISO-8601 termination date if closed
statusstringopen or closed
assigned_judgestring | nullAssigned judge name
nature_of_proceedingstring | nullNature of suit or proceeding
causestring | nullStatutory cause of action (US federal courts)
jury_demandstring | nullplaintiff, defendant, both, or none
primary_partiesarrayPrimary plaintiff and defendant (basic context)
appellateobject | nullAppellate-specific fields if applicable

Delta fields

FieldTypeDescription
changedbooleanWhether any new filings were found since last_checked
sincestringThe last_checked value you supplied
change_countnumberNumber of new filings
new_filingsarrayDocket entry objects — empty if changed is false

Docket entry fields

FieldTypeDescription
entry_numbernumber | nullEntry number from the source court system
filed_atstringISO-8601 filing timestamp
filing_typestring | nullNormalized filing type — order, motion, judgment, notice, etc.
filed_bystring | nullFiling party or judge name
descriptionstringDocket entry text
document_identifierstring | nullDocument identifier in the source system
document_identifier_typestringIdentifier scheme for the source system — e.g. pacer_doc_id for PACER courts. See the field reference for the full enum.
external_urlstring | nullDirect link to the document at the source court portal

Notes

last_checked management — Store meta.queried_at from each response and use it as last_checked in your next call. This ensures you never miss a filing between queries. Document access — Document URLs link to the source court portal. For PACER federal courts, retrieving the document requires valid PACER credentials. For state and Canadian courts, access requirements vary by portal. DocketLayer provides the link — document access is the caller’s responsibility. Appellate context — For appellate cases, the appellate field contains panel composition, appeal type, originating court, and oral argument date where available.