{
  "openapi": "3.0.1",
  "info": {
    "title": "Leilo Brazil Property Auctions & Lots Scraper",
    "description": "Scrape Leilo.com.br property auctions in Brazil: lots, starting bids, addresses, areas, matricula and edital documents, closed results. Export CSV, Excel, JSON, XML.",
    "version": "0.1",
    "x-build-id": "6QZVfXrrP9o8ynb4U"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~leilo-br-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-leilo-br-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/recordsdata~leilo-br-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-leilo-br-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/recordsdata~leilo-br-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-leilo-br-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": {
          "recordTypes": {
            "title": "What to return",
            "type": "array",
            "description": "Lots = one row per property (default). Auctions = one row per auction event. Sellers = one row per seller with lot counts and totals. Every row counts toward the max.",
            "items": {
              "type": "string",
              "enum": [
                "lots",
                "auctions",
                "sellers"
              ],
              "enumTitles": [
                "Lots (properties)",
                "Auctions (events)",
                "Sellers (comitentes)"
              ]
            },
            "default": [
              "lots"
            ]
          },
          "lotScope": {
            "title": "Open or closed lots",
            "enum": [
              "upcoming",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Upcoming and live lots (open for bids, default), closed lots (past results back to 2023, billed as their own event), or both.",
            "default": "upcoming"
          },
          "maxItems": {
            "title": "Max results (rows)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops after this many rows. Example: 50. Free plans are capped at 10 per run; paid plans up to 1,000,000."
          },
          "states": {
            "title": "State",
            "type": "array",
            "description": "Brazilian states to keep. Example: GO, SP. Empty means all states.",
            "items": {
              "type": "string",
              "enum": [
                "AC",
                "AL",
                "AP",
                "AM",
                "BA",
                "CE",
                "DF",
                "ES",
                "GO",
                "MA",
                "MT",
                "MS",
                "MG",
                "PA",
                "PB",
                "PR",
                "PE",
                "PI",
                "RJ",
                "RN",
                "RS",
                "RO",
                "RR",
                "SC",
                "SP",
                "SE",
                "TO"
              ],
              "enumTitles": [
                "Acre (AC)",
                "Alagoas (AL)",
                "Amapá (AP)",
                "Amazonas (AM)",
                "Bahia (BA)",
                "Ceará (CE)",
                "Distrito Federal (DF)",
                "Espírito Santo (ES)",
                "Goiás (GO)",
                "Maranhão (MA)",
                "Mato Grosso (MT)",
                "Mato Grosso do Sul (MS)",
                "Minas Gerais (MG)",
                "Pará (PA)",
                "Paraíba (PB)",
                "Paraná (PR)",
                "Pernambuco (PE)",
                "Piauí (PI)",
                "Rio de Janeiro (RJ)",
                "Rio Grande do Norte (RN)",
                "Rio Grande do Sul (RS)",
                "Rondônia (RO)",
                "Roraima (RR)",
                "Santa Catarina (SC)",
                "São Paulo (SP)",
                "Sergipe (SE)",
                "Tocantins (TO)"
              ]
            },
            "default": []
          },
          "cities": {
            "title": "City",
            "type": "array",
            "description": "Example: Goiania, Rio de Janeiro or Campinas/SP. Accents and capitals do not matter; add /UF to tell same-name cities apart.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property type",
            "type": "array",
            "description": "Example: Apartment, House. Empty means all types.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house",
                "land",
                "farm",
                "commercial",
                "warehouse",
                "building",
                "other"
              ],
              "enumTitles": [
                "Apartment",
                "House",
                "Land / lot",
                "Farm / rural",
                "Commercial unit",
                "Warehouse / industrial",
                "Building",
                "Other"
              ]
            },
            "default": []
          },
          "searchText": {
            "title": "Search text",
            "type": "string",
            "description": "Keeps lots whose title, description, city or seller contains this text. Example: apartamento, rural.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort lots by",
            "enum": [
              "auctionDate",
              "auctionDateDesc",
              "priceAsc",
              "priceDesc",
              "recentlyUpdated"
            ],
            "type": "string",
            "description": "Auction date, soonest first, is the default.",
            "default": "auctionDate"
          },
          "minPrice": {
            "title": "Min starting bid (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Brazilian reais. Example: 100000. 0 means no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "Max starting bid (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Brazilian reais. Example: 500000. 0 means no maximum.",
            "default": 0
          },
          "minArea": {
            "title": "Min area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Land or built area in square meters. Example: 50. 0 means no minimum.",
            "default": 0
          },
          "maxArea": {
            "title": "Max area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Square meters. Example: 200. 0 means no maximum.",
            "default": 0
          },
          "occupancy": {
            "title": "Vacant or occupied",
            "enum": [
              "any",
              "vacant",
              "occupied"
            ],
            "type": "string",
            "description": "Read from the lot description. Occupied lots may need an eviction after the sale. This filter opens every lot for detail, so it costs more. Default: any.",
            "default": "any"
          },
          "lotStatuses": {
            "title": "Lot status",
            "type": "array",
            "description": "Example: Open for bids, Sold. Empty means all statuses of the chosen scope.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "live",
                "sold",
                "awaiting-payment",
                "conditional",
                "unsold",
                "cancelled"
              ],
              "enumTitles": [
                "Open for bids",
                "Live now",
                "Sold (paid)",
                "Sold, awaiting payment",
                "Conditional (seller to approve)",
                "Unsold",
                "Cancelled"
              ]
            },
            "default": []
          },
          "auctionDateFrom": {
            "title": "Bidding ends on or after (YYYY-MM-DD)",
            "type": "string",
            "description": "Brasilia time. Example: 2026-11-30. Empty means no start date.",
            "default": ""
          },
          "auctionDateTo": {
            "title": "Bidding ends on or before (YYYY-MM-DD)",
            "type": "string",
            "description": "Brasilia time. Example: 2026-12-31. Empty means no end date.",
            "default": ""
          },
          "sellers": {
            "title": "Seller name contains (comitente)",
            "type": "array",
            "description": "Part of the seller name, without accents or capitals. Example: Banco, Caixa, Prefeitura, Tribunal.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Lot, auction or listing pages",
            "type": "array",
            "description": "Example: leilo.com.br/lote/<id>/, leilo.com.br/leilao/evento/<slug>/ or leilo.com.br/leilao/goias/imoveis/. Empty searches the whole catalog with the filters above.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "lotIds": {
            "title": "Lot IDs",
            "type": "array",
            "description": "The UUID in a lot address. Example: a7ce5921-b76b-11f1-97f6-02420a000006. Fetched directly whatever their status. A missing id returns one free error row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "fetchDetails": {
            "title": "Open every lot for full detail",
            "type": "boolean",
            "description": "Adds full description, photo gallery, edital and matricula documents, bid increment, commission, registry office and amenities. Billed as the lot-detail event. Off gives a cheaper list-only pass. Default: on.",
            "default": true
          },
          "includeContactDetails": {
            "title": "Include auction house contact",
            "type": "boolean",
            "description": "Adds the auction house public business phone, WhatsApp, e-mail and address to lot, auction and seller rows. Business data only, no private personal data. Default: off.",
            "default": false
          },
          "maxEditions": {
            "title": "Past auction editions to read",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "For closed lots: how many of the newest past editions to read. About 80 exist back to 2023, a few dozen lots each. Default: 12.",
            "default": 12
          },
          "maxRunSeconds": {
            "title": "Max run time (seconds)",
            "minimum": 30,
            "maximum": 7200,
            "type": "integer",
            "description": "Stops collecting after this long and returns what was gathered, so a big closed-lot history never runs unbounded. Default: 600.",
            "default": 600
          },
          "onlyNew": {
            "title": "Only new rows since last run",
            "type": "boolean",
            "description": "Skips every lot, auction or seller this search already returned, so scheduled runs return and charge only new rows. Max results then means N new rows. Default: off.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "One name per saved search. Example: goias-apartments. Empty derives a name from your filters.",
            "default": ""
          },
          "resetSeen": {
            "title": "Start monitoring from scratch",
            "type": "boolean",
            "description": "Clears the saved list for this monitor before the run, so everything counts as new. Default: off.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}