{
  "openapi": "3.0.1",
  "info": {
    "title": "Encuentra24 Panama Scraper: Casas, Apartamentos & Lotes",
    "description": "Export Encuentra24 property listings for Panama (and Costa Rica, El Salvador, Guatemala, Honduras, Nicaragua): casas, apartamentos, lotes, venta or alquiler. Price, m², price per m², fees, year built, GPS, full description, all photos, seller. Up to 5,000 listings per run.",
    "version": "0.4",
    "x-build-id": "m7aIQ43sJ9kqKcxyl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~encuentra24-pa-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-encuentra24-pa-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~encuentra24-pa-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-encuentra24-pa-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~encuentra24-pa-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-encuentra24-pa-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 Encuentra24 search pages from your browser, e.g. https://www.encuentra24.com/panama-es/bienes-raices-venta-de-propiedades-casas/prov-panama-ciudad-de-panama?q=f_rooms.3-. The URL's own filters and sort are kept; the filters below are added only where the URL has none. Leave empty to build the search from the fields below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "PA",
              "CR",
              "SV",
              "GT",
              "HN",
              "NI"
            ],
            "type": "string",
            "description": "Encuentra24 country to search when no URLs are given.",
            "default": "PA"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "sale",
              "rent",
              "vacation",
              "newProjects"
            ],
            "type": "string",
            "description": "Sale (venta), long-term rent (alquiler), vacation rentals or new projects (proyectos nuevos).",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "houses",
              "apartments",
              "land",
              "offices",
              "commercial",
              "buildings",
              "farms",
              "beach",
              "furnishedApartments",
              "rooms",
              "any"
            ],
            "type": "string",
            "description": "Houses, apartments, land and more. Vacation rentals and new projects cover every type.",
            "default": "houses"
          },
          "location": {
            "title": "Locations",
            "type": "array",
            "description": "Optional areas, one per line, as they appear in the site's URL after you choose a location, e.g. prov-panama-ciudad-de-panama, prov-chiriqui-boquete or san-jose-provincia-san-jose-capital. Each location runs as its own search; a location the site does not recognise returns no listings instead of the whole country.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price (monthly rent for rentals)."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price (monthly rent for rentals)."
          },
          "priceCurrency": {
            "title": "Price currency",
            "type": "string",
            "description": "Optional 3-letter currency for the price filter, e.g. USD or CRC. Panama, El Salvador and most listings elsewhere are in USD."
          },
          "minBedrooms": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "At least this many bedrooms (recámaras)."
          },
          "maxBedrooms": {
            "title": "Maximum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "At most this many bedrooms."
          },
          "minBathrooms": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "At least this many bathrooms."
          },
          "minArea": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest built area in square metres."
          },
          "maxArea": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest built area in square metres."
          },
          "minParking": {
            "title": "Minimum parking spaces",
            "minimum": 0,
            "type": "integer",
            "description": "At least this many parking spaces (estacionamientos)."
          },
          "publishedWithinDays": {
            "title": "Published within days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only listings published or renewed in the last N days. Results then come newest first unless you pick a price sort."
          },
          "publisherType": {
            "title": "Publisher type",
            "enum": [
              "any",
              "owner",
              "agent",
              "developer"
            ],
            "type": "string",
            "description": "Only owners (propietario), agents or developers (constructora/promotora). Owners publish a small share of listings, so expect fewer rows per page read.",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order of results, as on the site.",
            "default": "relevance"
          },
          "filters": {
            "title": "Site filter expression (advanced)",
            "type": "string",
            "description": "Encuentra24's own q= filter text, e.g. f_rooms.2-|f_bath.2-. Added to every search that does not already set the same filter."
          },
          "maxResults": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many listings across all searches (up to 5,000 per run; listings are saved as each page is read). Empty: a run with no search or filter is a 20-listing sample, and a run with a search or filter stops at 50."
          },
          "maxPages": {
            "title": "Maximum pages per search",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Optional cap on result pages per search (20 listings per page). Empty reads as many pages as Maximum listings needs."
          },
          "requestDelaySecs": {
            "title": "Pause between pages (seconds)",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Pause between page requests.",
            "default": 1
          },
          "debugDump": {
            "title": "Save page on failure",
            "type": "boolean",
            "description": "When true, a page that could not be read is saved to the key-value store for diagnostics.",
            "default": false
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy settings. The default connects through Apify residential proxy in Panama."
          },
          "apifyProxyGroups": {
            "title": "Apify proxy groups (advanced)",
            "type": "array",
            "description": "Optional Apify proxy groups.",
            "items": {
              "type": "string"
            }
          },
          "apifyProxyCountry": {
            "title": "Apify proxy country (advanced)",
            "type": "string",
            "description": "Optional two-letter proxy country. Defaults to PA. The country inside the proxy configuration takes precedence."
          },
          "proxyUrl": {
            "title": "Custom proxy URL",
            "type": "string",
            "description": "Optional custom proxy URL, with embedded credentials or as host:port with the username and password below."
          },
          "proxyUsername": {
            "title": "Proxy username",
            "type": "string",
            "description": "Username for the custom proxy URL."
          },
          "proxyPassword": {
            "title": "Proxy password",
            "type": "string",
            "description": "Password for the custom proxy URL."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}