{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Marketplace Scraper – Cheap, No Login",
    "description": "Low-cost Facebook Marketplace scraper: from $0.40 per 1,000 listings, proxy included, no login or cookies. Search by keyword, city or URL and get price, photos, location, description, vehicle and property details. Monitoring mode for new listings.",
    "version": "1.0",
    "x-build-id": "ByUAwxFK7T35eSfRU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/worshipful_knife~facebook-marketplace-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-worshipful_knife-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/worshipful_knife~facebook-marketplace-scraper/runs": {
      "post": {
        "operationId": "runs-sync-worshipful_knife-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/worshipful_knife~facebook-marketplace-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-worshipful_knife-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": {
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "**REQUIRED if not using searchQuery/city/category.** One or more Facebook Marketplace search or category URLs to scrape. Example: https://www.facebook.com/marketplace/newyork/search?query=laptop",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Search Keyword",
            "type": "string",
            "description": "Search keyword (e.g. 'iPhone 15', 'gaming laptop'). Used with city/category to build a search URL. **Required if not using searchUrls.**"
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City for the search. Facebook only accepts its own city slugs (unknown ones silently search around the proxy's location instead); common spellings are mapped for you: \"New York\" → nyc, \"Los Angeles\" → la, \"Philadelphia\" → philly, \"Washington DC\" → dc, \"Las Vegas\" → vegas, \"Mexico City\" → mexicocity. 80+ cities are verified (see README). Other towns are geocoded and snapped to the nearest verified city within 25 km; you can also type coordinates (\"40.71,-74.00\")."
          },
          "category": {
            "title": "Category",
            "enum": [
              "vehicles",
              "cars",
              "motorcycles",
              "trucks",
              "boats",
              "property-rentals",
              "property-sales",
              "electronics",
              "phones",
              "computers",
              "tablets",
              "tvs",
              "video-games",
              "cameras",
              "furniture",
              "home-garden",
              "appliances",
              "clothing",
              "shoes",
              "accessories",
              "jewelry",
              "sports",
              "musical-instruments",
              "books",
              "toys-games",
              "baby-kids",
              "pet-supplies",
              "office-supplies",
              "free-stuff",
              "garage-sale",
              "miscellaneous"
            ],
            "type": "string",
            "description": "Category slug to filter results. **Required if not using searchUrls/searchQuery.**"
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "best-match",
              "newest",
              "price-low",
              "price-high",
              "distance"
            ],
            "type": "string",
            "description": "Sort order for search results."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "new",
              "used-like-new",
              "used-good",
              "used-fair"
            ],
            "type": "string",
            "description": "Filter by item condition."
          },
          "minPrice": {
            "title": "Min Price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price filter."
          },
          "maxPrice": {
            "title": "Max Price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price filter."
          },
          "radiusKm": {
            "title": "Search Radius (km)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Search radius from the city center, in kilometers. Facebook caps this around 80 km. Leave empty for FB's default."
          },
          "strictLocation": {
            "title": "Only listings in the city area",
            "type": "boolean",
            "description": "Drop listings that are clearly outside the requested city area (by coordinates on detail pages, by US state on search cards, or because Facebook searched elsewhere). Every row also gets distanceKm and outsideSearchArea.",
            "default": false
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to return (default 100). Set 0 for no limit — the search then stops when Facebook stops showing new matching listings. Never exceeded, so it also caps your cost.",
            "default": 100
          },
          "strictMatch": {
            "title": "Strict keyword match",
            "type": "boolean",
            "description": "When set with a Search Keyword, only return listings whose title contains every word of the query. Filters out Facebook's broad-match noise (e.g. \"iphone 15\" no longer returns chargers).",
            "default": false
          },
          "untilDate": {
            "title": "Only listings since (ISO date)",
            "type": "string",
            "description": "Skip any listing posted before this date. Useful for incremental \"what's new since yesterday\" runs. Format: \"2026-04-01\" or \"2026-04-01T00:00:00Z\". Publish dates mostly come from detail pages, so this works best with Scrape Detail Pages on. With Sort By = Newest First the search stops at the first older listing."
          },
          "monitoringMode": {
            "title": "Monitoring mode (skip already-seen)",
            "type": "boolean",
            "description": "Track listing IDs across runs in a named Key-Value store and skip any IDs already delivered in earlier runs. Combine with a schedule to build an incremental feed. IDs are saved during the run too, so an aborted or timed-out run never re-charges you for listings you already received.",
            "default": false
          },
          "monitoringStoreName": {
            "title": "Monitoring store name",
            "type": "string",
            "description": "Optional. Name of the Apify Key-Value store that remembers seen IDs. Leave empty to get a store derived from your search (fb-marketplace-seen-<hash>), so different scheduled searches never share a watchlist. Set a name to share one watchlist across searches or to keep using an existing store (e.g. \"fb-marketplace-seen\")."
          },
          "scrapeDetails": {
            "title": "Scrape Detail Pages",
            "type": "boolean",
            "description": "Visit each listing's detail page for the full description, photos, GPS, condition and the listing's Details (mileage, transmission…) — charged as an extra \"detail-enriched\" event only when such data is found. Off by default: fast card-only scraping (title, price, location, thumbnail).",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Anonymous runs fetch pages over plain HTTP with 4x this many parallel requests (max 20), each through its own proxy IP. With cookies or full browser mode: number of parallel browser tabs (keep 2-3 to avoid detection).",
            "default": 3
          },
          "cookieState": {
            "title": "Browser Cookie State (JSON, optional)",
            "type": "string",
            "description": "Optional Facebook session cookies as JSON. Anonymous scraping works for public card data; supply cookies only if you hit a login wall or need seller details. Accepts a Playwright storageState ({\"cookies\":[...]}) or the cookie array exported by EditThisCookie / Cookie-Editor. See README."
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Residential proxies are REQUIRED — Facebook blocks all datacenter IPs with a login wall. Default: Apify residential proxies.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "fullBrowserMode": {
            "title": "Full browser mode",
            "type": "boolean",
            "description": "Use a browser for every page instead of plain HTTP. Anonymous runs don't need it (they read the server-rendered pages over plain HTTP, no browser); in the browser they still load no Facebook JavaScript. Detail rows add the listing condition but cost ~2x more proxy traffic. Turn on only if the default mode stops returning listings. Always on when cookies are supplied (search pages then load Facebook's JavaScript to paginate).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}