{
  "openapi": "3.0.1",
  "info": {
    "title": "REMAJU Peru Judicial Auctions Scraper (Remates Judiciales)",
    "description": "Monitor REMAJU electronic judicial property auctions in Peru: prices, tasacion, oblaje, court/case, registral entry, liens and offer dates. Export to JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "swMIatjWFS0h9zb5P"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapers_lat~remaju-peru-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapers_lat-remaju-peru-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~remaju-peru-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapers_lat-remaju-peru-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~remaju-peru-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapers_lat-remaju-peru-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": {
          "departamento": {
            "title": "Department (Departamento)",
            "enum": [
              "TODOS",
              "AMAZONAS",
              "ANCASH",
              "APURIMAC",
              "AREQUIPA",
              "AYACUCHO",
              "CAJAMARCA",
              "CALLAO",
              "CUSCO",
              "HUANCAVELICA",
              "HUANUCO",
              "ICA",
              "JUNIN",
              "LA LIBERTAD",
              "LAMBAYEQUE",
              "LIMA",
              "LORETO",
              "MADRE DE DIOS",
              "MOQUEGUA",
              "PASCO",
              "PIURA",
              "PUNO",
              "SAN MARTIN",
              "TACNA",
              "TUMBES",
              "UCAYALI"
            ],
            "type": "string",
            "description": "Peru department to filter auctions by. Use TODOS for all 25 departments.",
            "default": "TODOS"
          },
          "tipoInmueble": {
            "title": "Property Type (Tipo de Inmueble)",
            "enum": [
              "TODOS",
              "CASA",
              "DEPARTAMENTO",
              "OFICINA",
              "TERRENOS",
              "LOCAL",
              "ESTACIONAMIENTO",
              "DEPOSITO",
              "CONCESIONES MINERAS",
              "AZOTEA",
              "STAND",
              "ALMACÉN",
              "TERRENO RURAL",
              "EMBARCACIONES PESQUERAS"
            ],
            "type": "string",
            "description": "Type of property/asset to filter by. Use TODOS for all types.",
            "default": "TODOS"
          },
          "fase": {
            "title": "Auction Phase (Fase)",
            "enum": [
              "TODAS LAS FASES",
              "PUBLICACION E INSCRIPCION",
              "VALIDACION DE INSCRIPCION",
              "PRESENTACION DE OFERTAS",
              "PAGO SALDO",
              "VALIDACION DEL SALDO",
              "FINALIZADO"
            ],
            "type": "string",
            "description": "Auction phase to filter by (e.g. only auctions currently open for offers).",
            "default": "TODAS LAS FASES"
          },
          "expediente": {
            "title": "Case File Number (N° Expediente)",
            "type": "string",
            "description": "Optional: filter by a specific judicial case file number (expediente)."
          },
          "remateNumero": {
            "title": "Auction Number (N° Remate)",
            "type": "string",
            "description": "Optional: look up one specific auction by its REMAJU number."
          },
          "includeDetail": {
            "title": "Include Full Detail (Ficha Completa)",
            "type": "boolean",
            "description": "Fetch the complete detail sheet for every auction (court, judge, tasacion, oblaje, arancel, registral entry, liens). Leave on for the richest data.",
            "default": true
          },
          "maxRemates": {
            "title": "Max Auctions To Scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of auctions to return in this run. Free Apify plans are capped at 10 per run.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}