{
  "openapi": "3.0.1",
  "info": {
    "title": "ZonaProp Scraper: Argentina Inmuebles & Real Estate API",
    "description": "Argentina apartment listings from ZonaProp: departamentos, casas y PH en venta y alquiler — ARS/USD price, expensas, m², ambientes, price per m², GPS, photos and agency or dueño directo. Pick a barrio or paste a search URL.",
    "version": "0.12",
    "x-build-id": "FYuixXhqxYRYQWVs6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~zonaprop-ar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-zonaprop-ar-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/automatic~zonaprop-ar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-zonaprop-ar-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/automatic~zonaprop-ar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-zonaprop-ar-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": {
          "portal": {
            "title": "Portal (fixed for this record)",
            "enum": [
              "zonaprop"
            ],
            "type": "string",
            "description": "This record searches only ZonaProp (zonaprop.com.ar, Argentina). Omit this input or use zonaprop; a different portal is rejected.",
            "default": "zonaprop"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "sale",
              "rental"
            ],
            "type": "string",
            "description": "Listing operation to search: sale or rental. With startUrls, leave this at sale; each URL supplies its own operation.",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "departamentos",
              "casas",
              "terrenos",
              "ph",
              "oficinas",
              "locales-comerciales"
            ],
            "type": "string",
            "description": "Property type to search on ZonaProp in Argentina. Choose one of this record's supported property types.",
            "default": "departamentos"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Optional Argentina location slug, for example \"palermo\" or \"capital-federal\". Spaces become hyphens and accents are folded. Empty searches the whole country. A location the site does not recognize ends the run with no listings and a message, never with unrelated listings.",
            "default": ""
          },
          "priceMin": {
            "title": "Minimum source-search price",
            "minimum": 0,
            "type": "number",
            "description": "Optional positive search price bound for ZonaProp, in currency. Must not exceed priceMax. Returned prices retain their source currencies."
          },
          "priceMax": {
            "title": "Maximum source-search price",
            "minimum": 0,
            "type": "number",
            "description": "Optional positive search price bound for ZonaProp, in currency. Must be at least priceMin. Returned prices retain their source currencies."
          },
          "currency": {
            "title": "Price-filter currency",
            "type": "string",
            "description": "Optional currency for search price bounds: ARS or USD (ARS when bounds are set without it). This does not convert the returned source prices."
          },
          "startUrls": {
            "title": "ZonaProp search URLs (optional alternative)",
            "maxItems": 10,
            "type": "array",
            "description": "Up to 10 HTTPS ZonaProp listing-search URLs copied from your browser, as a URL string or {\"url\": \"...\"} object, for example https://www.zonaprop.com.ar/departamentos-alquiler-palermo-2-ambientes.html. Every filter in the address (area, rooms, amenities, price, sort order) is kept. Empty uses ordinary inputs. Leave operation=sale and propertyType=departamentos (the form defaults); other nondefault search fields that conflict with a URL are rejected. A later page number in the URL restarts at page 1. A URL that is not a ZonaProp search, or a search the site does not recognize, is skipped (listed in SUMMARY skippedSearches) and the others still run; with no usable URL the run fails. maxResults is shared fairly between the searches, so every search gets its turn; duplicates are returned once.",
            "default": []
          },
          "bedroomsMin": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum bedrooms, zero or greater. Applied after reading listings, before results are saved. Missing or ranged bedroom values are excluded. Must not exceed bedroomsMax."
          },
          "bedroomsMax": {
            "title": "Maximum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum bedrooms, zero or greater. Applied after reading listings, before results are saved. Missing or ranged bedroom values are excluded. Must be at least bedroomsMin."
          },
          "bathroomsMin": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum bathrooms, zero or greater. Applied after reading listings, before results are saved. Missing or ambiguous bathroom values are excluded. Must not exceed bathroomsMax."
          },
          "bathroomsMax": {
            "title": "Maximum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum bathrooms, zero or greater. Applied after reading listings, before results are saved. Missing or ambiguous bathroom values are excluded. Must be at least bathroomsMin."
          },
          "areaMinM2": {
            "title": "Minimum measured area (m2)",
            "minimum": 5e-324,
            "type": "number",
            "description": "Optional finite positive minimum area in square metres (strictly greater than zero). Uses areaBasis. Applied after reading listings; missing, ambiguous or ranged measurements are excluded. Must not exceed areaMaxM2."
          },
          "areaMaxM2": {
            "title": "Maximum measured area (m2)",
            "minimum": 5e-324,
            "type": "number",
            "description": "Optional finite positive maximum area in square metres (strictly greater than zero). Uses areaBasis. Applied after reading listings; missing, ambiguous or ranged measurements are excluded. Must be at least areaMinM2."
          },
          "areaBasis": {
            "title": "Area measurement for filters",
            "enum": [
              "total",
              "built",
              "covered"
            ],
            "type": "string",
            "description": "Select total, built or covered source-labelled area for areaMinM2/areaMaxM2. Measurements are not substituted for one another. This does not select the pricePerM2 calculation basis; read that output's companions.",
            "default": "total"
          },
          "includeDevelopments": {
            "title": "Include development listings",
            "type": "boolean",
            "description": "Include development/project postings by default. Set false to exclude developments after reading listings, before results are saved. Projects are not individual-unit availability; their prices may be starting prices and their measurements may be ranges.",
            "default": true
          },
          "maxPages": {
            "title": "Maximum pages (global)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Global search-page budget, 1 to 90, shared across all search URLs. Empty: 3 pages for one search; with several search URLs, as many pages as maxResults needs. ZonaProp shows about 30 listings per page and at most 9 pages per search, so for one big search set roughly maxResults / 30 plus a few pages for duplicates. A page does not guarantee a fixed number of usable matches."
          },
          "maxResults": {
            "title": "Maximum results (global)",
            "minimum": 1,
            "maximum": 2700,
            "type": "integer",
            "description": "Global cap on unique matching listings, 1 to 2,700 (default 50). Listings are saved as they are found, page by page, so a run that stops early keeps everything collected so far. ZonaProp lists at most about 270 listings per search; for more, add search URLs that split it (for example one per barrio, price range or rooms). Big runs need a longer run timeout: the default 360 seconds fits about 900 listings; allow about 6 minutes per 1,000 listings (Run options > Timeout), and raise maxPages to match. A target, not a guaranteed count; availability, page budget and post-read filters can reduce the result count.",
            "default": 50
          },
          "requestDelaySecs": {
            "title": "Delay between page requests",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Delay between search-page requests, from 0.5 to 10 seconds (default 1).",
            "default": 1
          },
          "publishedWithinDays": {
            "title": "Published within days",
            "minimum": 1,
            "maximum": 45,
            "type": "integer",
            "description": "Keep listings published today or up to this many calendar days ago in Buenos Aires. Use 1 for today and yesterday. Listings without a publication date are left out."
          },
          "publisherType": {
            "title": "Advertiser type",
            "enum": [
              "",
              "agency",
              "owner"
            ],
            "type": "string",
            "description": "Agencies only (inmobiliarias) or private owners only (dueño directo). Empty includes every advertiser. The publisherType output field reports the type when known.",
            "default": ""
          },
          "roomsMin": {
            "title": "Minimum rooms (ambientes)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Optional minimum total rooms (ambientes), distinct from bedrooms. Missing or ranged values are excluded. Must not exceed roomsMax."
          },
          "roomsMax": {
            "title": "Maximum rooms (ambientes)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Optional maximum total rooms (ambientes). Missing or ranged values are excluded. Must be at least roomsMin."
          },
          "parkingsMin": {
            "title": "Minimum parking spaces (cocheras)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Optional minimum parking spaces (cocheras). Listings without a published count, or with a range, are left out."
          },
          "useNativeFilters": {
            "title": "Narrow measurements before collecting",
            "type": "boolean",
            "description": "Set true to apply the bedroom, bathroom and area bounds as ZonaProp's own search filters before collecting, so a page budget fills with more matches; every row is still checked exactly. Recency, advertiser, rooms and parking filters always use the site's own filters.",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Deliver only new listings",
            "type": "boolean",
            "description": "Save an initial baseline and receive new listings on later runs. The baseline can span up to three scans. Set a monitor name for the schedule. Maximum pages bounds the scan and Maximum results bounds the alerts you receive.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "maxLength": 128,
            "type": "string",
            "description": "Use the same name on every scheduled run, for example palermo-daily. Each search and set of filters has its own history under that name.",
            "default": ""
          },
          "includePriceChanges": {
            "title": "Include asking-price changes",
            "type": "boolean",
            "description": "Also deliver a listing when its main asking amount or currency changes between known prices. Requires Deliver only new listings.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}