{
  "openapi": "3.0.1",
  "info": {
    "title": "ClasificadosOnline Scraper - Puerto Rico Real Estate",
    "description": "Track Puerto Rico home prices, spot new listings and build realtor lead lists from ClasificadosOnline: houses, apartments, land and commercial for sale or rent, with price, bedrooms, town, GPS and agency. Add Details for seller phones, full description and photos. Filter town, type, beds, price.",
    "version": "1.0",
    "x-build-id": "oIa3FJQRLjv2T9rtE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/normdata~clasificadosonline-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-normdata-clasificadosonline-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/normdata~clasificadosonline-scraper/runs": {
      "post": {
        "operationId": "runs-sync-normdata-clasificadosonline-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/normdata~clasificadosonline-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-normdata-clasificadosonline-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": {
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many ads in total. Leave empty for no limit. The Apify Free plan is always capped at 10."
          },
          "dealType": {
            "title": "Sale or rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Properties for sale or for rent (rent is per month)."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Empty = all. For sale: apartment, walk-up, house, commercial, farm, multi-family, land. For rent: apartment, walk-up, house, land or farm, lodging (rooms).",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "walkup",
                "house",
                "commercial",
                "farm",
                "multifamily",
                "land",
                "lodging"
              ],
              "enumTitles": [
                "Apartment",
                "Walk-up apartment",
                "House",
                "Commercial",
                "Farm",
                "Multi-family",
                "Land (rent: land or farm)",
                "Lodging (rooms)"
              ]
            }
          },
          "towns": {
            "title": "Towns",
            "type": "array",
            "description": "Towns of Puerto Rico (78 municipalities, plus San Juan, Carolina, Humacao and Toa Baja areas) or a whole region: Metro, Central, Norte, Sur, Este, Oeste. Empty = all of Puerto Rico.",
            "items": {
              "type": "string",
              "enum": [
                "Metro",
                "Central",
                "Norte",
                "Sur",
                "Este",
                "Oeste",
                "Adjuntas",
                "Aguada",
                "Aguadilla",
                "Aguas Buenas",
                "Aibonito",
                "Añasco",
                "Arecibo",
                "Arroyo",
                "Barceloneta",
                "Barranquitas",
                "Bayamón",
                "Cabo Rojo",
                "Caguas",
                "Camuy",
                "Canóvanas",
                "Carolina",
                "Carolina - Isla Verde",
                "Cataño",
                "Cayey",
                "Ceiba",
                "Ciales",
                "Cidra",
                "Coamo",
                "Comerío",
                "Corozal",
                "Culebra",
                "Dorado",
                "Fajardo",
                "Florida",
                "Guánica",
                "Guayama",
                "Guayanilla",
                "Guaynabo",
                "Gurabo",
                "Hatillo",
                "Hormigueros",
                "Humacao",
                "Humacao - Palmas",
                "Isabela",
                "Jayuya",
                "Juana Díaz",
                "Juncos",
                "Lajas",
                "Lares",
                "Las Marías",
                "Las Piedras",
                "Loíza",
                "Luquillo",
                "Manatí",
                "Maricao",
                "Maunabo",
                "Mayagüez",
                "Moca",
                "Morovis",
                "Naguabo",
                "Naranjito",
                "Orocovis",
                "Patillas",
                "Peñuelas",
                "Ponce",
                "Quebradillas",
                "Rincón",
                "Río Grande",
                "Sabana Grande",
                "Salinas",
                "San Germán",
                "San Juan - Condado-Miramar",
                "San Juan - Hato Rey",
                "San Juan - Río Piedras",
                "San Juan - Santurce",
                "San Juan - Viejo SJ",
                "San Lorenzo",
                "San Sebastián",
                "Santa Isabel",
                "Toa Alta",
                "Toa Baja",
                "Toa Baja - Levittown",
                "Trujillo Alto",
                "Utuado",
                "Vega Alta",
                "Vega Baja",
                "Vieques",
                "Villalba",
                "Yabucoa",
                "Yauco"
              ],
              "enumTitles": [
                "Metro",
                "Central",
                "Norte",
                "Sur",
                "Este",
                "Oeste",
                "Adjuntas",
                "Aguada",
                "Aguadilla",
                "Aguas Buenas",
                "Aibonito",
                "Añasco",
                "Arecibo",
                "Arroyo",
                "Barceloneta",
                "Barranquitas",
                "Bayamón",
                "Cabo Rojo",
                "Caguas",
                "Camuy",
                "Canóvanas",
                "Carolina",
                "Carolina - Isla Verde",
                "Cataño",
                "Cayey",
                "Ceiba",
                "Ciales",
                "Cidra",
                "Coamo",
                "Comerío",
                "Corozal",
                "Culebra",
                "Dorado",
                "Fajardo",
                "Florida",
                "Guánica",
                "Guayama",
                "Guayanilla",
                "Guaynabo",
                "Gurabo",
                "Hatillo",
                "Hormigueros",
                "Humacao",
                "Humacao - Palmas",
                "Isabela",
                "Jayuya",
                "Juana Díaz",
                "Juncos",
                "Lajas",
                "Lares",
                "Las Marías",
                "Las Piedras",
                "Loíza",
                "Luquillo",
                "Manatí",
                "Maricao",
                "Maunabo",
                "Mayagüez",
                "Moca",
                "Morovis",
                "Naguabo",
                "Naranjito",
                "Orocovis",
                "Patillas",
                "Peñuelas",
                "Ponce",
                "Quebradillas",
                "Rincón",
                "Río Grande",
                "Sabana Grande",
                "Salinas",
                "San Germán",
                "San Juan - Condado-Miramar",
                "San Juan - Hato Rey",
                "San Juan - Río Piedras",
                "San Juan - Santurce",
                "San Juan - Viejo SJ",
                "San Lorenzo",
                "San Sebastián",
                "Santa Isabel",
                "Toa Alta",
                "Toa Baja",
                "Toa Baja - Levittown",
                "Trujillo Alto",
                "Utuado",
                "Vega Alta",
                "Vega Baja",
                "Vieques",
                "Villalba",
                "Yabucoa",
                "Yauco"
              ]
            }
          },
          "bedrooms": {
            "title": "Bedrooms",
            "type": "array",
            "description": "Bedroom counts to include. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "studio",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6+"
              ],
              "enumTitles": [
                "Studio (efficiency)",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6 or more"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads from this price, in US dollars (rent: per month)."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads up to this price, in US dollars."
          },
          "petsAllowed": {
            "title": "Pets allowed (rent)",
            "type": "boolean",
            "description": "Only rentals that accept pets."
          },
          "parking": {
            "title": "Parking (rent)",
            "type": "boolean",
            "description": "Only rentals with parking."
          },
          "section8": {
            "title": "Section 8 (rent)",
            "type": "boolean",
            "description": "Only rentals that accept Section 8 (Plan 8) housing vouchers."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "default",
              "priceAsc",
              "priceDesc",
              "town",
              "photos"
            ],
            "type": "string",
            "description": "Order of the results (the site's own sorting)."
          },
          "includeDetails": {
            "title": "Details",
            "type": "boolean",
            "description": "Opens each ad's own page for the seller's phone numbers, the contact person (with license number), the full description and all photos in full size."
          },
          "onlyNew": {
            "title": "Only new ads",
            "type": "boolean",
            "description": "Skip ads saved by earlier runs with the same monitor name."
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Runs with the same name share their history. Use a different name for each schedule."
          },
          "startUrls": {
            "title": "Links",
            "type": "array",
            "description": "ClasificadosOnline real estate results pages (clasificadosonline.com/UDREListing.asp?RESPueblos=Guaynabo&Category=Casa...) or ad pages (clasificadosonline.com/UDRealEstateDetail.asp?ID=4818606, UDRentalsDetail.asp?ReForRentAdID=1812953). Filters are ignored with links.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}