{
  "openapi": "3.0.1",
  "info": {
    "title": "Fotocasa Listings Scraper · Radius search · $1/1K",
    "description": "Search Spanish property listings on Fotocasa for real estate research, investment and rent monitoring: prices, area, rooms, location, description, photos and agency details, by place or coordinate radius. $1/1K listings.",
    "version": "0.1",
    "x-build-id": "fiBG7BLdDD1nbeaXB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mlg14~fotocasa-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mlg14-fotocasa-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/mlg14~fotocasa-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mlg14-fotocasa-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/mlg14~fotocasa-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mlg14-fotocasa-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": 0,
            "type": "integer",
            "description": "Stop after this many unique properties. Example: 50 for a quick test. Set 0 to collect everything the search exposes; keep it small for first runs.",
            "default": 50
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, province, district or other public place name in Spain. Example: Madrid or Barcelona. Use for place searches; coordinates take precedence when set.",
            "default": "Madrid"
          },
          "locationType": {
            "title": "Location type",
            "enum": [
              "",
              "country",
              "autonomous_community",
              "province",
              "area",
              "region",
              "municipality",
              "locality",
              "district",
              "neighborhood",
              "urbanization",
              "coast",
              "geographical_area",
              "street",
              "zip_code"
            ],
            "type": "string",
            "description": "Place level when a name is ambiguous. Allowed values: country, autonomous_community, province, area, region, municipality, locality, district, neighborhood, urbanization, coast, geographical_area, street, zip_code, or empty. Example: municipality. Leave empty for the closest match.",
            "default": ""
          },
          "latitude": {
            "title": "Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Center latitude for a radius search, e.g. 40.4168. Use together with longitude and distanceKm; overrides location. Leave empty for place searches."
          },
          "longitude": {
            "title": "Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Center longitude for a radius search, e.g. -3.7038. Use together with latitude and distanceKm. Leave empty for place searches."
          },
          "distanceKm": {
            "title": "Radius in kilometers",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum distance in km from the coordinate center. Example: 5 for a small radius. Used only with latitude and longitude; leave at 20 otherwise.",
            "default": 20
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "buy",
              "rent",
              "share",
              "rentBuyOption",
              "transfer"
            ],
            "type": "string",
            "description": "Listing transaction. Allowed values: buy, rent, share, rentBuyOption, transfer. Example: rent. Use buy for sales, share for room shares.",
            "default": "buy"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "home",
              "newHome",
              "premises",
              "garages",
              "office",
              "boxRoom",
              "land",
              "building"
            ],
            "type": "string",
            "description": "Real estate category. Allowed values: home, newHome, premises, garages, office, boxRoom, land, building. Example: newHome. Use home for normal flats and houses.",
            "default": "home"
          },
          "rentalTypes": {
            "title": "Rental duration",
            "type": "array",
            "description": "For rental searches, rental duration. Allowed values: longTerm, temporary. Example: [\"longTerm\"] for long-term rentals. Leave empty to include all durations.",
            "items": {
              "type": "string",
              "enum": [
                "longTerm",
                "temporary"
              ],
              "enumTitles": [
                "Long term",
                "Temporary"
              ]
            },
            "default": []
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum listing price in euros. Example: 200000. Set 0 for no minimum; use with maxPrice for a budget range.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listing price in euros. Example: 400000. Set 0 for no maximum; use with minPrice for a budget range.",
            "default": 0
          },
          "minSize": {
            "title": "Minimum size",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum floor area in square meters. Example: 60. Set 0 for no minimum; use to skip very small properties.",
            "default": 0
          },
          "maxSize": {
            "title": "Maximum size",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum floor area in square meters. Example: 150. Set 0 for no maximum; use to skip very large properties.",
            "default": 0
          },
          "publicationDate": {
            "title": "Publication date",
            "enum": [
              "",
              "last48h",
              "lastWeek",
              "lastMonth"
            ],
            "type": "string",
            "description": "Only listings published within this period. Allowed values: last48h, lastWeek, lastMonth, or empty for any time. Example: lastWeek. Use last48h for monitoring runs.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "rating",
              "latest",
              "cheapest",
              "mostExpensive",
              "biggest",
              "smallest",
              "cheapestPerM2"
            ],
            "type": "string",
            "description": "Result order. Allowed values: rating, latest, cheapest, mostExpensive, biggest, smallest, cheapestPerM2. Example: latest. Use latest for fresh listings, cheapest for bargains.",
            "default": "rating"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings for requests to the site. Keep the default (e.g. useApifyProxy true) Apify datacenter proxy; the actor escalates automatically if access is blocked.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}