{
  "openapi": "3.0.1",
  "info": {
    "title": "Mercado Libre Inmuebles Scraper: Argentina, Mexico, Chile",
    "description": "Export Mercado Libre Inmuebles listings in Argentina and Mexico and Portal Inmobiliario listings in Chile. Compare asking prices, square meters and photos for properties for sale or rent, including short-term rentals in Argentina and Chile. Schedule alerts for new listings and price changes.",
    "version": "0.6",
    "x-build-id": "NNIXbFF8wgQDXK3Qe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~ml-inmuebles-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-ml-inmuebles-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~ml-inmuebles-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-ml-inmuebles-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~ml-inmuebles-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-ml-inmuebles-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": "Search URLs (optional)",
            "type": "array",
            "description": "Paste one or more search pages from inmuebles.mercadolibre.com.ar, inmuebles.mercadolibre.com.mx or www.portalinmobiliario.com (Chile) with any filters you set in the browser: neighborhood, price range, rooms, surface, sort order. These searches then run instead of the Country, Property type, Operation and location fields; Maximum pages and Maximum results apply to each URL. Leave empty to use the fields below.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingUrls": {
            "title": "Listing links or IDs (optional)",
            "type": "array",
            "description": "Track specific properties: paste listing links (departamento.mercadolibre.com.ar/MLA-…, …com.mx/MLM-…, portalinmobiliario.com/MLC-…) or bare IDs such as MLA1234567890, up to 500. Each comes back as one row with its current price, rooms, surface, location, photos and listing_status (active, paused, closed), so a scheduled run shows what changed. Include listing details adds coordinates, seller and description from the same page. When set, only these listings are read: Search URLs and the search fields below are not used.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "ar",
              "mx",
              "cl"
            ],
            "type": "string",
            "description": "Which site to search: Argentina (inmuebles.mercadolibre.com.ar, ARS or USD prices), Mexico (inmuebles.mercadolibre.com.mx, MXN or USD) or Chile (www.portalinmobiliario.com, Mercado Libre's Chilean property site: CLP, or CLF for prices in UF). Prices are kept in the currency the listing shows.",
            "default": "ar"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "departamentos",
              "casas",
              "ph",
              "terrenos",
              "campos",
              "quintas",
              "oficinas",
              "locales",
              "galpones",
              "parcelas",
              "sitios",
              "bodegas",
              "industriales",
              "agricolas",
              "estacionamientos"
            ],
            "type": "string",
            "description": "Property type to search. 'ph', 'campos', 'quintas' and 'galpones' exist in Argentina and Mexico only ('ph' in Argentina only); 'parcelas', 'sitios', 'bodegas', 'industriales', 'agricolas' and 'estacionamientos' exist in Chile only. A type the selected country does not have stops the run at once with a clear message.",
            "default": "departamentos"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "venta",
              "alquiler",
              "alquiler-temporal"
            ],
            "type": "string",
            "description": "Sale (venta), rental (alquiler), or short-term rental (alquiler-temporal in Argentina and Chile).",
            "default": "venta"
          },
          "province": {
            "title": "Province / state",
            "type": "string",
            "description": "Optional province (Argentina), state (Mexico) or region (Chile), e.g. 'capital-federal', 'distrito-federal', 'nuevo-leon'. Leave empty to search the whole country. Plain names work too ('Capital Federal' becomes 'capital-federal'). Chile takes one of its 16 region slugs (metropolitana, valparaiso, biobio, bernardo-ohiggins...). If the site widens a misspelled location, that search is skipped and listed in OUTPUT.skippedSearches instead of returning listings you did not ask for.",
            "default": ""
          },
          "city": {
            "title": "City / neighborhood",
            "type": "string",
            "description": "Optional city or neighborhood, e.g. 'palermo', 'polanco', or a Chilean comuna such as 'las-condes'. Needs a Province / state. A location the site widens to a broader search is skipped and listed in OUTPUT.skippedSearches.",
            "default": ""
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Most listings delivered per search, 1 to 2,000. You pay only for delivered listings. With monitoring on, this caps new and changed listings across the whole run.",
            "default": 50
          },
          "maxTotalResults": {
            "title": "Maximum results across all searches",
            "minimum": 1,
            "type": "integer",
            "description": "Optional total listing limit for a search export. For example, set 100 to deliver at most 100 listings across all pasted search URLs. The Actor stops opening searches when this limit is reached. The per-search maximum still applies. Leave blank for listing links and monitoring."
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 1,
            "maximum": 42,
            "type": "integer",
            "description": "Result pages to read per search, 1 to 42 (about 48 listings per page). For a broad search the site shows about 2,016 results at most; split big markets by location or price band.",
            "default": 1
          },
          "sortBy": {
            "title": "Sort order (optional)",
            "enum": [
              "relevance",
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Leave unset to keep the site's order and any sort in your pasted URLs. Argentina and Mexico: relevance, lowest or highest price. Chile also supports newest first, the best choice for scheduled monitoring."
          },
          "listingKind": {
            "title": "Listing kind",
            "enum": [
              "all",
              "unit",
              "development"
            ],
            "type": "string",
            "description": "'Individual properties only' or 'New developments only' uses the site's own filter on form searches (Portal Inmobiliario: Propiedades usadas / Proyectos), and rows are labelled with that kind. For pasted URLs, pick the same filter on the site before copying the URL; otherwise cards are kept only when their own labels state the kind.",
            "default": "all"
          },
          "priceCurrency": {
            "title": "Price currency (optional)",
            "enum": [
              "ARS",
              "MXN",
              "CLP",
              "CLF",
              "USD"
            ],
            "type": "string",
            "description": "Needed with Minimum or Maximum price. Also works alone to keep only listings priced in this currency. No conversion; CLF is the Chilean UF."
          },
          "minPrice": {
            "title": "Minimum advertised price (optional)",
            "minimum": 0,
            "type": "number",
            "description": "Keep listings whose advertised price is within this bound. Needs Price currency. For developments this is the advertised starting price. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "maxPrice": {
            "title": "Maximum advertised price (optional)",
            "minimum": 0,
            "type": "number",
            "description": "Keep listings whose advertised price is within this bound. Needs Price currency. For developments this is the advertised starting price. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "minPriceDropPct": {
            "title": "Minimum advertised price drop (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Keep search cards where the site shows an earlier price in the same currency and the current price is at least this percent lower. Use 0 for any advertised drop. Works with monitoring and applies before the result cap. Turn on Include card extras to export the previous price."
          },
          "minCoveredArea": {
            "title": "Minimum covered / built surface (m²) (optional)",
            "minimum": 0,
            "type": "number",
            "description": "Keep listings whose published measurement fits this bound; for developments the whole advertised range must fit, and listings without the measurement are left out. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "maxCoveredArea": {
            "title": "Maximum covered / built surface (m²) (optional)",
            "minimum": 0,
            "type": "number",
            "description": "Keep listings whose published measurement fits this bound; for developments the whole advertised range must fit, and listings without the measurement are left out. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "minTotalArea": {
            "title": "Minimum total / lot surface (m²) (optional)",
            "minimum": 0,
            "type": "number",
            "description": "Keep listings whose published measurement fits this bound; for developments the whole advertised range must fit, and listings without the measurement are left out. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "maxTotalArea": {
            "title": "Maximum total / lot surface (m²) (optional)",
            "minimum": 0,
            "type": "number",
            "description": "Keep listings whose published measurement fits this bound; for developments the whole advertised range must fit, and listings without the measurement are left out. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "minRooms": {
            "title": "Minimum rooms (ambientes) (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings whose published measurement fits this bound; for developments the whole advertised range must fit, and listings without the measurement are left out. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "maxRooms": {
            "title": "Maximum rooms (ambientes) (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings whose published measurement fits this bound; for developments the whole advertised range must fit, and listings without the measurement are left out. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "minBedrooms": {
            "title": "Minimum bedrooms (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings whose published measurement fits this bound; for developments the whole advertised range must fit, and listings without the measurement are left out. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "maxBedrooms": {
            "title": "Maximum bedrooms (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings whose published measurement fits this bound; for developments the whole advertised range must fit, and listings without the measurement are left out. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "minBathrooms": {
            "title": "Minimum bathrooms (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings whose published measurement fits this bound; for developments the whole advertised range must fit, and listings without the measurement are left out. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "maxBathrooms": {
            "title": "Maximum bathrooms (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings whose published measurement fits this bound; for developments the whole advertised range must fit, and listings without the measurement are left out. Applied to the pages you request, before the result cap, so only matching listings are delivered and charged."
          },
          "includeCardExtras": {
            "title": "Add agency name and card highlights",
            "type": "boolean",
            "description": "Free with every listing, with no extra page requests and no extra charge: the agency or developer name on the card (seller_name, seller_is_official_store), the card headline such as \"Departamento en venta\" (card_headline), Mercado Libre's own category (site_category), units left and delivery status for new developments (available_units, possession) and a price drop shown on the card (price_before_drop, price_before_drop_currency). Fields stay empty when the card does not show them.",
            "default": false
          },
          "includePricePerM2": {
            "title": "Include price per m²",
            "type": "boolean",
            "description": "Add price_per_covered_m2 and price_per_total_m2 in each listing's own currency. Calculated only when the card shows one price and single measurements (unit_correspondence = matched); developments, 'from' prices, ranges and missing areas stay empty. No extra requests or charge.",
            "default": false
          },
          "convertPricesTo": {
            "title": "Also show prices in (optional)",
            "enum": [
              "USD",
              "ARS",
              "MXN",
              "CLP"
            ],
            "type": "string",
            "description": "Searches mix currencies (pesos and dollars, and UF in Chile). Pick one to add price_converted, price_converted_currency and fx_rate to every listing, using one daily reference rate per run; with Include price per m² also the converted price per m². The published price and currency stay unchanged. No extra charge."
          },
          "includeDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Open each delivered listing for map coordinates, seller name and type, monthly maintenance fee (expensas, mantenimiento, gastos comunes), full description, every published specification and the photo gallery. Missing data stays empty; allImagesComplete flags partial galleries. See the Pricing tab for the optional detail charge.",
            "default": false
          },
          "includeDetailExtras": {
            "title": "Add listing age, agency ID and area context to details",
            "type": "boolean",
            "description": "Needs Include listing details; no charge on top of listing details. From the same listing page: listing age (publishedAgo, listingAgeDays), the seller's account ID, store link, verified badge, reputation and the agency's own property code, the neighbourhood, city and state, photo count and video / virtual-tour flags, the area's average price per m² when shown, nearby transport, schools, shops and health places, and a development's unit models with prices. Missing data stays empty.",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Deliver only new listings",
            "type": "boolean",
            "description": "Turn a scheduled task into a new-listings feed. The first run delivers a labelled baseline; later runs deliver only listings you have not received before for this search. Needs a Monitor state key. Off by default: every run returns its full snapshot.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor state key",
            "type": "string",
            "description": "Your name for this monitoring job, up to 128 characters (for example 'palermo-rentals'). Reuse the same key on every scheduled run. Changing filters starts a separate history; changing Maximum results or Maximum pages does not. Run one job at a time per key."
          },
          "includePriceChanges": {
            "title": "Include price changes",
            "type": "boolean",
            "description": "With Deliver only new listings on, also deliver listings you already received when their asking price or currency changes (including a price switching to or from 'Consultar'). Each row shows the previous price and the % change in the same currency.",
            "default": false
          },
          "requestDelaySecs": {
            "title": "Delay between page requests",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Pause between page requests, 0.5 to 10 seconds. The default suits most runs.",
            "default": 1
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The default works for most runs; when Apify Proxy is used it picks the selected country automatically."
          },
          "apifyProxyGroups": {
            "title": "Apify proxy groups (advanced)",
            "type": "array",
            "description": "Optional Apify Proxy groups, for advanced users.",
            "items": {
              "type": "string"
            }
          },
          "apifyProxyCountry": {
            "title": "Apify proxy country (advanced)",
            "type": "string",
            "description": "Optional two-letter proxy country. Defaults to the selected country."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}