{
  "openapi": "3.0.1",
  "info": {
    "title": "Zonaprop Argentina Property Scraper",
    "description": "Scrape Zonaprop.com.ar real estate listings by URL or search filters: price, surface, rooms, features, location, coordinates, publisher, photos, and WhatsApp contact. Export to JSON, CSV, or Excel.",
    "version": "1.0",
    "x-build-id": "3YBiE4Pjkp2yyIHd1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~zonaprop-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-zonaprop-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/parsebird~zonaprop-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-zonaprop-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/parsebird~zonaprop-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-zonaprop-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Zonaprop search-result URLs (e.g. https://www.zonaprop.com.ar/departamentos-venta-palermo.html) or direct listing URLs (https://www.zonaprop.com.ar/propiedades/clasificado/...html). Optional when Search filters below are used instead.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listing rows to save across all Start URLs and filter searches combined. This is the number of billed 'listing-scraped' events.",
            "default": 100
          },
          "fetchDetailPage": {
            "title": "Fetch each listing's detail page",
            "type": "boolean",
            "description": "When enabled, also opens each listing's own page (one extra request per listing) to pull its meta title/description. Most fields (price, address, features, photos, publisher, WhatsApp) are already included from the search results without this. Off by default to keep runs fast and cheap.",
            "default": false
          },
          "chargeForContactInfo": {
            "title": "Charge extra for listings with contact info",
            "type": "boolean",
            "description": "When enabled, listings that include a WhatsApp number also trigger the optional 'contact-info-scraped' event (priced separately in Monetization). Off by default.",
            "default": false
          },
          "filterOperation": {
            "title": "Operation",
            "enum": [
              "",
              "venta",
              "alquiler",
              "alquiler-temporal"
            ],
            "type": "string",
            "description": "Required to activate filter-based search. Only 'Venta' has a verified numeric filter code for price/room/etc. refinement — 'Alquiler' and 'Alquiler temporal' still build a valid Zonaprop search URL, but the extra filters below may return unfiltered results for those operations.",
            "default": ""
          },
          "filterPropertyType": {
            "title": "Property type",
            "enum": [
              "departamentos",
              "casas",
              "ph",
              "terrenos",
              "locales-comerciales"
            ],
            "type": "string",
            "description": "Only 'Departamentos' has a verified numeric filter code. Other types build a valid Zonaprop URL but the price/room/etc. filters below may not narrow the results for them.",
            "default": "departamentos"
          },
          "filterLocation": {
            "title": "Location (city / barrio)",
            "type": "string",
            "description": "Free-text location, e.g. 'Palermo' or 'Córdoba'. Not sent to Zonaprop as a filter (no verified location-id codes) — matched client-side against each result's location name after fetching, so a broad search may need a higher 'Max pages' to find enough matches. For exact results, paste a Zonaprop URL for that neighborhood into Start URLs instead."
          },
          "filterPriceMin": {
            "title": "Price min",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price, in the currency set below."
          },
          "filterPriceMax": {
            "title": "Price max",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price, in the currency set below."
          },
          "filterPriceCurrency": {
            "title": "Price currency",
            "enum": [
              "",
              "USD",
              "ARS"
            ],
            "type": "string",
            "description": "USD or ARS. Leave empty to let Zonaprop use its default (USD for sale, ARS for rent).",
            "default": ""
          },
          "filterBedroomsMin": {
            "title": "Bedrooms min",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of bedrooms (Zonaprop's 'habitaciones')."
          },
          "filterBathroomsMin": {
            "title": "Bathrooms min",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Minimum number of bathrooms."
          },
          "filterGaragesMin": {
            "title": "Garages min",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "Minimum number of garages/parking spaces. Use 0 for 'no garage required'."
          },
          "filterCoveredAreaMin": {
            "title": "Covered area min (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum covered area, in square meters."
          },
          "filterCoveredAreaMax": {
            "title": "Covered area max (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum covered area, in square meters."
          },
          "filterAgenciesOnly": {
            "title": "Agencies only",
            "type": "boolean",
            "description": "When true, only listings published by real-estate agencies (inmobiliarias) rather than private owners.",
            "default": false
          },
          "filterPublishedWithin": {
            "title": "Published within",
            "enum": [
              "",
              "today",
              "yesterday",
              "week",
              "15days",
              "30days",
              "45days"
            ],
            "type": "string",
            "description": "How recently the listing was published.",
            "default": ""
          },
          "zonapropRawFilters": {
            "title": "Raw filter overrides (advanced)",
            "type": "object",
            "description": "Advanced. A JSON object merged directly into the Zonaprop rplis-api/postings request body, for filter fields not exposed above (e.g. {\"comodidades\": \"1000079\"} for 'Pileta'). Overrides any field set by the inputs above."
          },
          "maxPages": {
            "title": "Max pages per search",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of result pages to fetch per search (30 listings per page on Zonaprop).",
            "default": 50
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Delay between requests, in milliseconds.",
            "default": 800
          },
          "maxRequestRetries": {
            "title": "Max retries",
            "minimum": 0,
            "type": "integer",
            "description": "Retries per request when Zonaprop blocks or errors. Each retry rotates to a new proxy IP.",
            "default": 6
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Zonaprop is protected by Cloudflare. Residential proxies with country Argentina are strongly recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "AR"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}