{
  "openapi": "3.0.1",
  "info": {
    "title": "India Court Case Search",
    "description": "Search Indian court cases by party name. Give a list of people or companies and get each case where the name appears as a party: CNR, case number, court, year, which side, and the other side.",
    "version": "0.1",
    "x-build-id": "tQpDC9zviAmHdqjr5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cloudastra-technologies~india-court-case-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cloudastra-technologies-india-court-case-search",
        "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/cloudastra-technologies~india-court-case-search/runs": {
      "post": {
        "operationId": "runs-sync-cloudastra-technologies-india-court-case-search",
        "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/cloudastra-technologies~india-court-case-search/run-sync": {
      "post": {
        "operationId": "run-sync-cloudastra-technologies-india-court-case-search",
        "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",
        "required": [
          "names"
        ],
        "properties": {
          "names": {
            "title": "Names to search",
            "type": "array",
            "description": "People or companies, one per entry. Up to 1,000 per run. Repeated names are searched once.",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Match mode",
            "enum": [
              "exact",
              "strict"
            ],
            "type": "string",
            "description": "exact: the case party has the same words as your name, after titles, suffixes like Ltd, and 'through' or 'S/O' parts are removed. strict: every word of your name appears in the party name, so 'Rajesh Kumar' also finds 'Rajesh Kumar Singh'. strict returns more, and more wrong matches: 'Union of India' also finds 'Union Bank of India'.",
            "default": "exact"
          },
          "courtLevels": {
            "title": "Court levels",
            "type": "array",
            "description": "Leave empty for all three. District courts cover 6 states, the High Court is Patna only, and Supreme Court rows are reported judgments only.",
            "items": {
              "type": "string",
              "enum": [
                "district",
                "highcourt",
                "supremecourt"
              ],
              "enumTitles": [
                "District courts",
                "High Court (Patna)",
                "Supreme Court (reported judgments)"
              ]
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Leave empty for all. Choosing any state leaves Supreme Court cases out, because they belong to no state.",
            "items": {
              "type": "string",
              "enum": [
                "MP",
                "BR",
                "UP",
                "RJ",
                "PB",
                "GA"
              ],
              "enumTitles": [
                "Madhya Pradesh",
                "Bihar",
                "Uttar Pradesh",
                "Rajasthan",
                "Punjab",
                "Goa"
              ]
            }
          },
          "yearFrom": {
            "title": "From year",
            "minimum": 2010,
            "type": "integer",
            "description": "Earliest case year, 2010 or later. Leave empty to search every year, including older High Court and Supreme Court cases."
          },
          "yearTo": {
            "title": "To year",
            "minimum": 2010,
            "type": "integer",
            "description": "Latest case year. Leave empty for no upper limit."
          },
          "maxCasesPerName": {
            "title": "Maximum cases per name",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "A common name can match thousands of cases. Every case row is charged, so this caps the cost per name. The total count is still reported on each row.",
            "default": 50
          },
          "includeGovernment": {
            "title": "Include government parties",
            "type": "boolean",
            "description": "Cases where your name is matched to a government party such as 'State of UP'. A name that is itself a government body, like 'Union of India', is always searched.",
            "default": false
          },
          "includeNoMatches": {
            "title": "Add a row for names with no case",
            "type": "boolean",
            "description": "Writes one free row per name that was not found, saying what was searched. Not finding a name is not proof the name has no court cases.",
            "default": true
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}