{
  "openapi": "3.0.1",
  "info": {
    "title": "TOCTOC Scraper | Property Listings and UF Prices",
    "description": "TOCTOC scraper for toctoc.com, Chile's property portal: export apartments, houses, offices, land and new projects for sale or rent by commune, region, link or id, with UF and CLP prices, UF per square meter, areas, rooms, parking, GPS, photos and seller. 100 listings in 12 seconds, 42 fields each.",
    "version": "1.0",
    "x-build-id": "ZpqtE70zZFvJl0duY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~toctoc-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-toctoc-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/silentflow~toctoc-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-toctoc-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/silentflow~toctoc-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-toctoc-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": {
          "locations": {
            "title": "📍 Communes, regions or neighborhoods",
            "type": "array",
            "description": "Where to search, as you would type it in the TOCTOC search box: a commune (<code>Ñuñoa</code>, <code>Las Condes</code>, <code>Viña del Mar</code>), a region (<code>Metropolitana</code>, <code>Valparaíso</code>), or a neighborhood or street with its commune (<code>Irarrazaval, Ñuñoa</code>). A TOCTOC results link such as <code>https://www.toctoc.com/arriendo/departamento/metropolitana/providencia</code> works too. A busy commune holds 2,000 listings or more; a region tens of thousands.",
            "items": {
              "type": "string"
            }
          },
          "listingIds": {
            "title": "🔗 Listing links or ids",
            "type": "array",
            "description": "Listings to read one by one, in any shape: a listing link (<code>https://www.toctoc.com/venta/departamento/metropolitana/nunoa/b_1384cc...</code>), its numeric id (<code>4096129</code>) or its TOCTOC code (<code>TT-1390823</code>). Every listing gives its row whatever the <b>Max listings</b> value: paste your whole stock to follow prices, updates and withdrawals every day.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max listings",
            "minimum": 1,
            "type": "integer",
            "description": "The most listings the searches save, shared evenly between the places. It never cuts the listings pasted by link or id. A commune gives up to a few thousand listings.",
            "default": 100
          },
          "operation": {
            "title": "🏷️ Sale or rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Listings for sale (venta, prices in UF) or for rent (arriendo, monthly rent in pesos or UF).",
            "default": "sale"
          },
          "propertyTypes": {
            "title": "🏢 Property types",
            "type": "array",
            "description": "One or more property types. Apartments and houses hold most listings; offices, land and commercial spaces are listed too.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house",
                "office",
                "commercial",
                "land",
                "plot",
                "warehouse",
                "parking",
                "farm",
                "industrial-land",
                "vacation-home"
              ],
              "enumTitles": [
                "Apartment (departamento)",
                "House (casa)",
                "Office (oficina)",
                "Commercial space (local comercial)",
                "Land (terreno)",
                "Plot (parcela)",
                "Storage unit (bodega)",
                "Parking space (estacionamiento)",
                "Farm (campo agrícola)",
                "Industrial land (terreno industrial)",
                "Vacation home (lugar vacacional)"
              ]
            },
            "default": [
              "apartment"
            ]
          },
          "condition": {
            "title": "🆕 New or used",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Sale only: new projects from developers (proyectos nuevos, with delivery date and price range), used properties from brokers and owners, or both.",
            "default": "any"
          },
          "bedrooms": {
            "title": "🛏️ Bedrooms",
            "enum": [
              "any",
              "1",
              "2",
              "3",
              "4"
            ],
            "type": "string",
            "description": "Keep listings with this number of bedrooms. A new project matches when one of its unit types has it.",
            "default": "any"
          },
          "maxPriceUF": {
            "title": "💰 Max price (UF)",
            "minimum": 1,
            "type": "integer",
            "description": "Keep listings priced at most this amount in UF, the unit of Chilean property prices (1 UF is about 41,400 CLP in November 2026). For rentals, the monthly rent in UF: <code>25</code> keeps rents up to about 1,035,000 CLP."
          },
          "includeRemoved": {
            "title": "🗑️ Report withdrawn listings",
            "type": "boolean",
            "description": "For listings pasted by link or id: when TOCTOC no longer shows one, add a row with <code>isAvailable: false</code> instead of skipping it, so a daily run tells you which listings were sold, rented or taken down.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}