{
  "openapi": "3.0.1",
  "info": {
    "title": "Colombia Rama Judicial Court Records Scraper (Procesos)",
    "description": "Scrape Colombia Rama Judicial court records (consulta de procesos) by company, person name (nombre) or 23-digit radicado. Get court, judge, parties, filing and last-action dates and the full actuaciones timeline. Filter by role, department, date. For due diligence and KYB. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "oWDVCAgqkpvA9i28B"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapers_lat~colombia-rama-judicial-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapers_lat-colombia-rama-judicial-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/scrapers_lat~colombia-rama-judicial-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapers_lat-colombia-rama-judicial-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/scrapers_lat~colombia-rama-judicial-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapers_lat-colombia-rama-judicial-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": {
          "searchNames": {
            "title": "Names / Razón Social",
            "type": "array",
            "description": "Company names (razón social) or person names to search for as a party in Colombian court processes (Rama Judicial / consulta de procesos). The lookup matches names that contain the text you enter. Provide one or many; each name runs its own nationwide search. A very common name can return more than 1000 matches; in that case the source rejects the query and asks for a more specific name, optionally combined with the court code filter below.",
            "items": {
              "type": "string"
            }
          },
          "radicados": {
            "title": "Radicado Numbers",
            "type": "array",
            "description": "Exact 23-digit radicado (numero de radicación / case number) to look up directly, for example 11001310300320170056402. One or more; each returns its matching process. Combine with the name search or use on its own.",
            "items": {
              "type": "string"
            }
          },
          "tipoPersona": {
            "title": "Party Type",
            "enum": [
              "jur",
              "nat"
            ],
            "type": "string",
            "description": "Whether a searched name is a legal entity (company / razón social) or a natural person. Applies to name searches only.",
            "default": "jur"
          },
          "despacho": {
            "title": "Court Code (Codificación Despacho)",
            "type": "string",
            "description": "Optional court/city code prefix to narrow a name search at the source (for example 11001 for Bogotá, 05001 for Medellín, 76001 for Cali, 08001 for Barranquilla). Leave empty to search nationwide."
          },
          "onlyActive": {
            "title": "Only Active Processes",
            "type": "boolean",
            "description": "When enabled, only processes flagged as currently active by the source are returned.",
            "default": false
          },
          "role": {
            "title": "Party Role Filter",
            "enum": [
              "any",
              "demandante",
              "demandado"
            ],
            "type": "string",
            "description": "Keep only cases where the searched name appears in this role. 'Any' returns every case; 'Plaintiff (demandante)' or 'Defendant (demandado)' filter the results by the role the name plays. Applied to the returned records.",
            "default": "any"
          },
          "departments": {
            "title": "Departments / Cities Filter",
            "type": "array",
            "description": "Keep only cases whose department (departamento) matches one of these values, for example BOGOTÁ, ANTIOQUIA, VALLE DEL CAUCA. Case-insensitive contains match. Leave empty to keep all departments.",
            "items": {
              "type": "string"
            }
          },
          "filedFrom": {
            "title": "Filed From (YYYY-MM-DD)",
            "type": "string",
            "description": "Keep only cases with a filing date (fecha de radicación) on or after this date. Format YYYY-MM-DD. Leave empty for no lower bound."
          },
          "filedTo": {
            "title": "Filed To (YYYY-MM-DD)",
            "type": "string",
            "description": "Keep only cases with a filing date on or before this date. Format YYYY-MM-DD. Leave empty for no upper bound."
          },
          "lastActionFrom": {
            "title": "Last Action Since (YYYY-MM-DD)",
            "type": "string",
            "description": "Keep only cases whose most recent action (última actuación) occurred on or after this date. Useful to find cases with recent movement. Format YYYY-MM-DD."
          },
          "withDetails": {
            "title": "Include Process Details",
            "type": "boolean",
            "description": "When enabled, the scraper also fetches the detail page for each process (process type, class, subclass, presiding judge / ponente, full court code and file location). Adds the paid 'details' event per process. Disable for a faster, listing-only run.",
            "default": true
          },
          "withActuaciones": {
            "title": "Include Case Movements (Actuaciones)",
            "type": "boolean",
            "description": "When enabled (and details are on), the full list of actuaciones (case events, with date, action, annotation and start/end dates) is fetched for each process. Disable to skip movement pagination for a much faster run when you only need case metadata.",
            "default": true
          },
          "maxRecords": {
            "title": "Max Records",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of court process records to collect across all searches. Optional."
          },
          "withSummary": {
            "title": "AI case summary (paid add-on)",
            "type": "boolean",
            "description": "Optional paid AI add-on, off by default. Adds a plain-language Spanish summary of each case (parties, subject, current status). Billed only when a summary is produced. Requires a paid Apify plan.",
            "default": false
          },
          "withTranslate": {
            "title": "AI English translation (paid add-on)",
            "type": "boolean",
            "description": "Optional paid AI add-on, off by default. Adds a clear English summary/translation of each Spanish case. Billed only when produced. Requires a paid Apify plan.",
            "default": false
          },
          "withExtract": {
            "title": "AI structured extract (paid add-on)",
            "type": "boolean",
            "description": "Optional paid AI add-on, off by default. Extracts structured case data: claim type, court, procedural stage, key dates, amounts and parties. Billed only when produced. Requires a paid Apify plan.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}