{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Marketplace Rentals & Property Scraper",
    "description": "[ 1k/1.49$ ] Facebook Marketplace Rentals & Property Scraper extracts property-for-rent and for-sale listings: bedrooms, bathrooms, area, property type, price and rent period, address, coordinates, amenities, walk and transit scores, photos and seller. Search by location.",
    "version": "0.1",
    "x-build-id": "18cYxJfPIsKmlseIe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alpha-scraper~facebook-marketplace-rentals-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alpha-scraper-facebook-marketplace-rentals-property-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/alpha-scraper~facebook-marketplace-rentals-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alpha-scraper-facebook-marketplace-rentals-property-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/alpha-scraper~facebook-marketplace-rentals-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alpha-scraper-facebook-marketplace-rentals-property-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": {
          "listingType": {
            "title": "Listing type",
            "enum": [
              "rent",
              "sale",
              "both"
            ],
            "type": "string",
            "description": "Which listings to collect. 'Both' runs one rent search and one sale search; 'Max items' then applies to each type and location.",
            "default": "rent"
          },
          "locations": {
            "title": "Locations",
            "uniqueItems": true,
            "type": "array",
            "description": "Facebook Marketplace city slugs (for example nyc, london, austin), city names or numeric city-page ids. City names Facebook does not know are geocoded with OpenStreetMap Nominatim. Ignored when both 'Latitude' and 'Longitude' are set.",
            "default": [
              "nyc"
            ],
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Optional explicit latitude. Only used together with 'Longitude'; when both are set they override 'Locations'."
          },
          "longitude": {
            "title": "Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Optional explicit longitude. Only used together with 'Latitude'; when both are set they override 'Locations'."
          },
          "radiusKm": {
            "title": "Search radius",
            "minimum": 1,
            "type": "integer",
            "description": "Search radius around the location in kilometres. Leave empty to use Facebook's default radius (65 km according to the script notes)."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Optional free-text search, for example 'pet friendly' or '2 bedroom'. Without keywords, rentals browse the property-rentals category and sales search for 'for sale'. With keywords the search is limited to the property category; in that mode, and for sales, bedrooms, bathrooms and property type are checked locally on the listing data instead of being sent to Facebook, and 'Pets' has no effect."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Minimum listing price (number, no currency symbol)."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Maximum listing price (number, no currency symbol)."
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "type": "number",
            "description": "Minimum number of bedrooms (0 matches studios)."
          },
          "maxBedrooms": {
            "title": "Max bedrooms",
            "minimum": 0,
            "type": "number",
            "description": "Maximum number of bedrooms (0 matches studios)."
          },
          "minBathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "type": "number",
            "description": "Minimum number of bathrooms. Checked locally on the listing data, not by Facebook."
          },
          "maxBathrooms": {
            "title": "Max bathrooms",
            "minimum": 0,
            "type": "number",
            "description": "Maximum number of bathrooms. Checked locally on the listing data, not by Facebook."
          },
          "minArea": {
            "title": "Min area",
            "minimum": 0,
            "type": "number",
            "description": "Minimum living area in the listing's own unit (sq ft or m2). Only applied when 'Include details' is on, because the area comes from the listing details."
          },
          "maxArea": {
            "title": "Max area",
            "minimum": 0,
            "type": "number",
            "description": "Maximum living area in the listing's own unit (sq ft or m2). Only applied when 'Include details' is on, because the area comes from the listing details."
          },
          "propertyType": {
            "title": "Property types",
            "type": "array",
            "description": "Keep only these property types. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house",
                "townhouse",
                "room"
              ],
              "enumTitles": [
                "Apartment",
                "House",
                "Townhouse",
                "Room"
              ]
            }
          },
          "petsType": {
            "title": "Pets",
            "enum": [
              "dogs",
              "cats"
            ],
            "type": "string",
            "description": "Pet-friendly rentals filter. Only sent to Facebook when browsing rentals without 'Keywords'; ignored for keyword searches and sales."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "suggested",
              "newest",
              "price_low",
              "price_high",
              "distance"
            ],
            "type": "string",
            "description": "Order in which Facebook returns the listings. Leave empty for Facebook's default."
          },
          "daysSinceListed": {
            "title": "Listed within",
            "enum": [
              "1",
              "7",
              "30"
            ],
            "type": "string",
            "description": "Only listings posted within this many days. Leave empty for no time limit."
          },
          "minValidPrice": {
            "title": "Min valid price",
            "minimum": 0,
            "type": "number",
            "description": "Ignore listings priced below this amount (placeholder prices such as 0 or 1). Set 0 to keep everything.",
            "default": 5
          },
          "strictFilters": {
            "title": "Strict filters",
            "type": "boolean",
            "description": "When on, listings whose value for an active filter (price, bedrooms, bathrooms, area, property type) is unknown are dropped. When off, they are kept.",
            "default": true
          },
          "requiredKeywords": {
            "title": "Required title words",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only listings whose title contains all of these words (case-insensitive, whole words; simple plurals match).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Excluded title words",
            "uniqueItems": true,
            "type": "array",
            "description": "Drop listings whose title contains any of these words (case-insensitive, whole words; simple plurals match).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Open every listing for the description, all photos, address, area, amenities, walk / transit / bike scores, nearby transit and seller block (one extra request per listing). When off, only the data of the feed card is returned and the area filter cannot be applied.",
            "default": true
          },
          "maxScan": {
            "title": "Max scanned listings",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap on the number of listings examined per listing type and location. When empty, the larger of 300 and 15 x 'Max items' is used, and a scan that needs an area filter also stops after about 3.5 minutes. Enter a value to scan deeper without that time limit."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of listings per listing type and location (for example 'Both' with 2 locations returns up to 4 x this value).",
            "default": 15
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}