{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Marketplace Scraper & Monitor ($0.30/1K)",
    "description": "$0.30 per 1,000 listings, no login. Search by keyword and city, keep only your city, or get everything new by category. Car filters and specs, rental beds and baths, deal ratings, down-payment ads dropped. Monitor returns only new listings and price drops, with Discord, Slack or Telegram alerts.",
    "version": "0.7",
    "x-build-id": "cDmOhXMp8BJv4lwkW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hydedata~facebook-marketplace-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hydedata-facebook-marketplace-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/hydedata~facebook-marketplace-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hydedata-facebook-marketplace-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/hydedata~facebook-marketplace-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hydedata-facebook-marketplace-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "What to search for. Each keyword is a separate search in the location below. Leave empty to get the location's newest listings in every category instead.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, neighborhood or ZIP code, e.g. \"Orlando, FL\" or \"78704\". Facebook searches roughly 40 miles around it. Required with search keywords. Without keywords, the run gets the newest listings around it, category by category."
          },
          "extraLocations": {
            "title": "More locations (optional)",
            "type": "array",
            "description": "Run the same searches in more cities or ZIP codes. Each keyword (or category) and location pair is its own search.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories (without keywords)",
            "type": "array",
            "description": "With no search keywords, the run gets each location's newest listings category by category. Pick categories to limit it, or leave empty for all of them. Each category counts as one search. With \"Vehicles only\" or a year or mileage filter and nothing picked, only Vehicles is browsed. Ignored when there are keywords or search URLs.",
            "items": {
              "type": "string",
              "enum": [
                "vehicles",
                "propertyrentals",
                "apparel",
                "electronics",
                "entertainment",
                "family",
                "free",
                "garden",
                "hobbies",
                "home",
                "home-improvements",
                "instruments",
                "office-supplies",
                "sports",
                "toys"
              ],
              "enumTitles": [
                "Vehicles",
                "Property rentals",
                "Apparel",
                "Electronics",
                "Entertainment",
                "Family",
                "Free stuff",
                "Garden & outdoor",
                "Hobbies",
                "Home goods",
                "Home improvement supplies",
                "Musical instruments",
                "Office supplies",
                "Sporting goods",
                "Toys & games"
              ]
            }
          },
          "searchUrls": {
            "title": "Marketplace search URLs (advanced)",
            "type": "array",
            "description": "Optional. Run a search on facebook.com/marketplace in your browser with any filters (category, condition, etc.) and paste the URL. Can be used with or instead of keywords.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "strictKeywordMatch": {
            "title": "Only keep listings whose title matches the keywords",
            "type": "boolean",
            "description": "Facebook mixes loosely related listings into searches (a \"honda civic\" search also returns other cars and parts). When on, a listing is kept only if its title contains every keyword word (\"bike\" also matches \"bikes\"). Dropped listings aren't charged. May drop relevant listings with unusual titles.",
            "default": false
          },
          "excludeKeywords": {
            "title": "Exclude listings with these words",
            "type": "array",
            "description": "Drop listings whose title contains any of these words or phrases, e.g. \"parts\", \"wanted\", \"for parts\". Dropped listings aren't charged.",
            "items": {
              "type": "string"
            }
          },
          "vehiclesOnly": {
            "title": "Vehicles only",
            "type": "boolean",
            "description": "Keep only vehicles posted through Facebook's vehicle form: cars, trucks, motorcycles and RVs, with mileage and specs. Drops the parts and accessories that mention the model (tires, hardtops, bumpers) and most dealer ads where the price is only the down payment. Trailers, boats and ATVs posted without the form are dropped too. Dropped listings aren't charged.",
            "default": false
          },
          "excludeDownPaymentAds": {
            "title": "Drop down-payment ads",
            "type": "boolean",
            "description": "Drops dealer car ads where the listed price is only the down payment (\"$2,999 down\", \"price listed is your down payment\", a 2025 Tacoma for $3,400). Checks the title, the price for the car's model year, and the description when listing details are on. Only cars and trucks are judged on price, so cheap motorcycles, dirt bikes and ATVs are kept. Dropped listings aren't charged.",
            "default": true
          },
          "daysSinceListed": {
            "title": "Listed within",
            "enum": [
              "1",
              "7",
              "30"
            ],
            "type": "string",
            "description": "Only listings posted in this window."
          },
          "itemCondition": {
            "title": "Condition",
            "type": "array",
            "description": "Only listings in these conditions. Leave empty for any condition. Vehicles usually have no condition set, so leave this empty for car searches.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "used_like_new",
                "used_good",
                "used_fair"
              ],
              "enumTitles": [
                "New",
                "Used, like new",
                "Used, good",
                "Used, fair"
              ]
            }
          },
          "deliveryMethod": {
            "title": "Delivery method",
            "enum": [
              "local_pick_up",
              "shipping"
            ],
            "type": "string",
            "description": "Only listings offering local pickup, or only listings that ship."
          },
          "availability": {
            "title": "Availability",
            "enum": [
              "available",
              "sold"
            ],
            "type": "string",
            "description": "Available listings (Facebook's default), or sold ones: listings marked sold or sale pending. Sold listings are useful for seeing what actually sells and at what asking price.",
            "default": "available"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings at or above this price, in the listing's currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings at or below this price, in the listing's currency."
          },
          "minYear": {
            "title": "Min model year (vehicles)",
            "minimum": 1900,
            "type": "integer",
            "description": "Only vehicles from this model year or newer. Read from the listing title, so listings without a model year are dropped when this is set."
          },
          "maxYear": {
            "title": "Max model year (vehicles)",
            "minimum": 1900,
            "type": "integer",
            "description": "Only vehicles from this model year or older."
          },
          "minMileage": {
            "title": "Min mileage (vehicles)",
            "minimum": 0,
            "type": "integer",
            "description": "Only vehicles with at least this many miles (or km, where Facebook shows km). Listings without a mileage are dropped when this is set."
          },
          "maxMileage": {
            "title": "Max mileage (vehicles)",
            "minimum": 0,
            "type": "integer",
            "description": "Only vehicles with at most this many miles (or km, where Facebook shows km). Listings without a mileage are dropped when this is set."
          },
          "onlyCities": {
            "title": "Only these cities",
            "type": "array",
            "description": "Keep only listings in these cities, e.g. \"Orlando\", \"Winter Park, FL\". Checked against the city on each listing, and the suburb or neighborhood Facebook names for it. Add the state to tell apart cities with the same name. Dropped listings aren't charged.",
            "items": {
              "type": "string"
            }
          },
          "sameCityOnly": {
            "title": "Only listings in the searched city",
            "type": "boolean",
            "description": "Keep only listings whose city is the one you searched. A search in \"Orlando, FL\" then drops Kissimmee, Lakeland and everything else Facebook adds from the wider area. Can be combined with \"Only these cities\" to keep a few extra ones. Dropped listings aren't charged.",
            "default": false
          },
          "maxDistanceMiles": {
            "title": "Max distance (miles)",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only listings within this many miles of the searched location, measured from each listing's own map position. Needs \"Add listing details\" on, since that is where a listing's position comes from (rentals that show a map pin work without it). Each kept row gets latitude, longitude and distanceMiles. Listings that are too far aren't charged. For a cheaper way to stay close, use \"Sort by: Nearest first\" or the city filters above."
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Only rentals with at least this many bedrooms. A studio counts as 0. Listings that don't say how many bedrooms they have are dropped when this is set."
          },
          "maxBedrooms": {
            "title": "Max bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Only rentals with at most this many bedrooms."
          },
          "minBathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Only rentals with at least this many bathrooms. 2 also keeps 2.5. Listings that don't say how many bathrooms they have are dropped when this is set."
          },
          "maxBathrooms": {
            "title": "Max bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Only rentals with at most this many bathrooms."
          },
          "maxItemsPerSearch": {
            "title": "Max listings per search",
            "minimum": 1,
            "type": "integer",
            "description": "Upper limit of listings delivered per keyword or search URL. Facebook shows 24 listings per search page; above that, the Actor splits the search into price ranges to reach this number.",
            "default": 50
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "nearest",
              "price_low",
              "price_high",
              "suggested"
            ],
            "type": "string",
            "description": "How Facebook orders each search. Newest first is best for monitoring. Nearest first keeps results close to the searched location. Past the first 24 listings a search is split into price ranges, and the sort then applies within each range, not across the whole result. Leave empty to follow \"Sort newest first\" below. A sort already in a pasted search URL wins."
          },
          "sortNewestFirst": {
            "title": "Sort newest first",
            "type": "boolean",
            "description": "Adds the newest-first sort to each search. Recommended for monitoring. Ignored when \"Sort by\" is set.",
            "default": true
          },
          "autoPriceBands": {
            "title": "Split into price ranges automatically",
            "type": "boolean",
            "description": "When a search has more listings than one page (24), split it into narrower price ranges until Max listings per search is reached. The extra pages aren't charged; you pay for the listings they find. In monitor mode, a search only splits while every listing on the page is new.",
            "default": true
          },
          "priceBands": {
            "title": "Manual price ranges (optional)",
            "type": "array",
            "description": "Set your own price ranges instead of automatic ones, e.g. [{\"min\":0,\"max\":200},{\"min\":201,\"max\":1000}]. Each range is one search page. Min and max price narrow them.",
            "default": []
          },
          "compactOutput": {
            "title": "Compact output (for AI agents)",
            "type": "boolean",
            "description": "Deliver short rows: title, price, city, status, link, deal rating and, with details on, a shortened description and the key specs. Empty fields and photo links are left out, which makes rows about 5 times smaller. Meant for AI agents and LLM pipelines that pay per token.",
            "default": false
          },
          "maxDescriptionLength": {
            "title": "Max description length",
            "minimum": 0,
            "type": "integer",
            "description": "Cut listing descriptions to this many characters. Leave empty for full descriptions, or 300 characters with compact output."
          },
          "includeDetails": {
            "title": "Add listing details",
            "type": "boolean",
            "description": "For each delivered listing, also get its description, condition, currency, every photo, its map position, and for vehicles: year, make, model, trim, mileage, transmission, fuel, colors, title status, private or dealer seller, and VIN and owners when the seller filled them in. Rentals also get their amenities. Charged per listing that gets details. In monitor mode only new listings and price drops are fetched. Seller names and contact details are never collected.",
            "default": false
          },
          "listingUrls": {
            "title": "Listing URLs or IDs",
            "type": "array",
            "description": "Marketplace listing links (facebook.com/marketplace/item/...) or bare listing IDs. Each one comes back as a row with full details and its current status: available, pending or sold. Charged as a listing plus its details. Listings that no longer exist aren't charged and are named in the log. Can be used on its own, without keywords or a location.",
            "items": {
              "type": "string"
            }
          },
          "monitorMode": {
            "title": "Monitor mode (new listings and price drops only)",
            "type": "boolean",
            "description": "Remembers what previous runs returned and only outputs new listings or price drops. Use with a Schedule. The first run returns everything as the baseline.",
            "default": false
          },
          "notifyWebhookUrl": {
            "title": "Send new listings to a webhook (optional)",
            "type": "string",
            "description": "Paste a Discord or Slack incoming webhook URL to get each run's listings as a message, with photo, price, deal rating and link. Any other URL gets the listings as JSON. Only sent when the run delivers something, so quiet monitor runs stay silent."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Also send alerts to Telegram. Create a bot with @BotFather and paste its token here."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "The chat, group or channel ID the bot posts to."
          },
          "notifyMinDealRating": {
            "title": "Only alert on deals",
            "enum": [
              "any",
              "good",
              "great"
            ],
            "type": "string",
            "description": "Only send alerts for listings rated at least this good against similar listings in the same search. The dataset still gets every listing. Changes to listings you watch are always sent.",
            "default": "any"
          },
          "stateStoreName": {
            "title": "Monitor state store name",
            "type": "string",
            "description": "Named key-value store that keeps monitor memory and the watch list between runs. Use different names to run independent monitors.",
            "default": "fb-marketplace-monitor-state"
          },
          "stateRetentionDays": {
            "title": "Forget listings after (days)",
            "minimum": 1,
            "type": "integer",
            "description": "Listings not seen for this many days are dropped from monitor memory.",
            "default": 30
          },
          "watchListingUrls": {
            "title": "Listings to watch",
            "type": "array",
            "description": "Marketplace listing links or IDs to keep an eye on. The first run returns each one as it is now; later runs return only changes. Each re-check is charged, changed or not. Sold and removed listings are final and no longer re-checked. Take a listing out of this list to stop watching it.",
            "items": {
              "type": "string"
            }
          },
          "watchDeliveredListings": {
            "title": "Watch the listings my searches deliver",
            "type": "boolean",
            "description": "With monitor mode on, every listing your searches deliver is added to the watch list and re-checked on later runs, so you also hear when it sells or changes price. Listings are watched for the number of days set in \"Forget listings after\". Keep an eye on \"Max re-checks per run\": every re-check is charged.",
            "default": false
          },
          "maxListingChecksPerRun": {
            "title": "Max re-checks per run",
            "minimum": 0,
            "type": "integer",
            "description": "Most watched listings re-checked in one run. When more are waiting, the ones checked longest ago go first and the rest wait for the next run.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Use residential proxies. Facebook redirects datacenter IPs to its login page.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}