{
  "openapi": "3.0.1",
  "info": {
    "title": "Federal Court Records Scraper - PACER RECAP & Opinions",
    "description": "US federal court records scraper & API: search PACER / RECAP dockets, filings, documents, parties, attorneys, judges and opinions by query, court or date. Legal research, litigation monitoring and docket data — fast, no PACER account and no per-page fees.",
    "version": "0.1",
    "x-build-id": "qhw0F35yG0pmFX3Vl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~federal-court-records-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-federal-court-records-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/haketa~federal-court-records-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-federal-court-records-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/haketa~federal-court-records-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-federal-court-records-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchType": {
            "title": "What to collect",
            "enum": [
              "r",
              "d",
              "o",
              "rd",
              "p",
              "oa"
            ],
            "type": "string",
            "description": "Pick the kind of federal court record you want. 'Cases with documents' is the richest option — full dockets with parties, attorneys and downloadable filings.",
            "default": "r"
          },
          "query": {
            "title": "Search keywords",
            "type": "string",
            "description": "Type a party or company name, case name, attorney, citation or any keyword. Leave empty to browse the newest records across all courts."
          },
          "court": {
            "title": "Court",
            "enum": [
              "",
              "scotus",
              "ca1",
              "ca2",
              "ca3",
              "ca4",
              "ca5",
              "ca6",
              "ca7",
              "ca8",
              "ca9",
              "ca10",
              "ca11",
              "cadc",
              "cafc",
              "cand",
              "cacd",
              "casd",
              "caed",
              "nysd",
              "nyed",
              "txsd",
              "txnd",
              "txwd",
              "txed",
              "ilnd",
              "flsd",
              "flmd",
              "flnd",
              "cacb",
              "nyeb",
              "txsb",
              "deb",
              "njb",
              "dcd",
              "njd",
              "mad",
              "paed",
              "gand",
              "ohnd",
              "vaed",
              "wawd",
              "azd",
              "cod",
              "gasd",
              "mied",
              "mnd",
              "moed",
              "ncwd",
              "ncmd",
              "nvd",
              "wied",
              "wiwd"
            ],
            "type": "string",
            "description": "Choose a court to focus on, or keep 'All courts' to search nationwide. Includes the Supreme Court, all federal Courts of Appeals and the busiest District and Bankruptcy courts.",
            "default": ""
          },
          "dateFiledAfter": {
            "title": "Filed on or after",
            "type": "string",
            "description": "Only show records filed on or after this date. Format: YYYY-MM-DD (e.g. 2024-01-01). Leave empty for no lower bound."
          },
          "dateFiledBefore": {
            "title": "Filed on or before",
            "type": "string",
            "description": "Only show records filed on or before this date. Format: YYYY-MM-DD (e.g. 2024-12-31). Leave empty for no upper bound."
          },
          "order": {
            "title": "Sort results by",
            "enum": [
              "dateFiled desc",
              "dateFiled asc",
              "score desc",
              "dateArgued desc"
            ],
            "type": "string",
            "description": "How to order the records you get back.",
            "default": "dateFiled desc"
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after collecting this many records. Use 0 for unlimited (larger runs are faster and more reliable with an API token added below).",
            "default": 0
          },
          "courtListenerToken": {
            "title": "API token (optional)",
            "type": "string",
            "description": "Optional free CourtListener API token from your courtlistener.com profile. Recommended for large runs — it raises rate limits so big collections finish smoothly."
          },
          "startUrls": {
            "title": "Start URLs (advanced)",
            "type": "array",
            "description": "Power users only. Paste one or more CourtListener search URLs (courtlistener.com/?q=...) to run those exact searches. When provided, the fields above are ignored.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies help spread requests so large collections run smoothly. The default works well for most runs.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Request concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many requests to run in parallel. Keep this low (1-2) for the smoothest, most reliable runs.",
            "default": 1
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}