{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Marketplace Scraper - Prices & Price Drops, No Login",
    "description": "Scrape Facebook Marketplace listings by city, keyword, category and price without login: title, price, location, photos, post date, plus condition, description and all photos on request. New-listing and price-drop monitoring, market price summary. No seller data.",
    "version": "0.1",
    "x-build-id": "ZXOJeb2FkXlZIQck8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~facebook-marketplace/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-facebook-marketplace",
        "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/cliqtomedia~facebook-marketplace/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-facebook-marketplace",
        "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/cliqtomedia~facebook-marketplace/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-facebook-marketplace",
        "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": {
          "city": {
            "title": "City",
            "type": "string",
            "description": "City to search, as text: \"Pattaya\", \"Chiang Mai\", \"New York\", \"London, GB\". Add a country code when a name exists in several countries. A Marketplace city slug (\"nyc\") or numeric location id also works."
          },
          "query": {
            "title": "Search words",
            "type": "string",
            "description": "What to look for, as you would type it in Marketplace search, e.g. \"motorbike\", \"iphone 15\", \"sofa\". Leave empty to browse a whole category."
          },
          "category": {
            "title": "Category",
            "enum": [
              "apparel",
              "classifieds",
              "electronics",
              "entertainment",
              "family",
              "free",
              "garden",
              "hobbies",
              "home",
              "home-improvements",
              "instruments",
              "office-supplies",
              "pets",
              "propertyforsale",
              "propertyrentals",
              "sports",
              "toys",
              "vehicles"
            ],
            "type": "string",
            "description": "Marketplace category. With search words it narrows the search; without them the whole category of the city is listed."
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in the local currency of the city (baht in Pattaya, dollars in New York)."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in the local currency of the city."
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Listings to save per search (each city × search word is one search). You pay one small search fee per search plus each saved listing; a search that stops early costs less.",
            "default": 50
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Save only listings this search has not returned before. Run it on a schedule to get each new listing once. Reposts of an old listing under a new id are skipped too.",
            "default": false
          },
          "trackChanges": {
            "title": "Track price drops and removals",
            "type": "boolean",
            "description": "Compare with the previous run of the same search: each row gets changeType new, priceDown or priceUp with previousPrice and priceDropPercent; listings that disappeared and are confirmed sold or deleted come as removed. Unchanged listings are left out unless you turn on the next option; each one left out is charged as a cheap listing check.",
            "default": false
          },
          "includeUnchanged": {
            "title": "Include unchanged listings",
            "type": "boolean",
            "description": "With price tracking, also save listings that did not change (changeType stillActive).",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional name to keep this monitor's memory apart from other runs of the same search (letters, digits, \"-\", \"_\")."
          },
          "dedupeReposts": {
            "title": "Skip reposts",
            "type": "boolean",
            "description": "Treat a listing with the same title, price and city as one already seen as a repost: marked isRepost, and skipped in only-new mode.",
            "default": true
          },
          "maxRemovedChecks": {
            "title": "Max removal checks",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "How many disappeared listings to open per search to confirm they were sold or deleted. Each check is charged as a listing page check; removed rows themselves are free. 0 turns the check off.",
            "default": 20
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Open each listing page for condition, full description, all photos, exact position, delivery and vehicle data (make, model, mileage). Charged as a detailed listing.",
            "default": false
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Keep only listings within this distance of the city centre. Reads each listing page for its position, so rows are detailed listings; pages outside the radius are charged as listing page checks."
          },
          "condition": {
            "title": "Condition",
            "type": "array",
            "description": "Only listings in these conditions.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "used_like_new",
                "used_good",
                "used_fair"
              ],
              "enumTitles": [
                "New",
                "Used — like new",
                "Used — good",
                "Used — fair"
              ]
            }
          },
          "delivery": {
            "title": "Delivery",
            "enum": [
              "local_pick_up",
              "shipping"
            ],
            "type": "string",
            "description": "Only listings with this delivery method."
          },
          "daysSinceListed": {
            "title": "Listed within",
            "enum": [
              "1",
              "7",
              "30"
            ],
            "type": "string",
            "description": "Only listings posted recently."
          },
          "maxAgeHours": {
            "title": "Posted within (hours)",
            "minimum": 1,
            "maximum": 8760,
            "type": "integer",
            "description": "Keep only listings posted at most this many hours ago, by the posting time Facebook shows. Finer than \"Listed within\"; listings without a posting time are kept."
          },
          "availability": {
            "title": "Availability",
            "enum": [
              "available",
              "sold"
            ],
            "type": "string",
            "description": "Sold asks Facebook for listings already marked sold, for example to see what sold and at what price.",
            "default": "available"
          },
          "strictQuery": {
            "title": "Title must contain all words",
            "type": "boolean",
            "description": "Facebook also returns loosely related listings. Turn this on to keep only listings whose title contains every word of the search query.",
            "default": false
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "best_match",
              "creation_time_descend",
              "price_ascend",
              "price_descend",
              "distance_ascend"
            ],
            "type": "string",
            "description": "Order of the first page. To go past one page the Actor also reads other orders and price bands, so the dataset is not strictly sorted.",
            "default": "best_match"
          },
          "cities": {
            "title": "More cities",
            "type": "array",
            "description": "Extra cities, searched with the same words and filters. Up to 50 searches per run (cities × search words).",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "More search words",
            "type": "array",
            "description": "Extra search words; each is searched in every city.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Marketplace links",
            "type": "array",
            "description": "Paste Marketplace links from your browser: a search (facebook.com/marketplace/bangkok/search/?query=honda), a category page, or a single listing (facebook.com/marketplace/item/…). Filters in the link are kept.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "locationId": {
            "title": "Location id",
            "type": "string",
            "description": "Marketplace location id or slug from a Marketplace link, if you prefer it to a city name."
          },
          "outputFormat": {
            "title": "Row format",
            "enum": [
              "flat",
              "nested"
            ],
            "type": "string",
            "description": "Flat rows suit spreadsheets; nested rows group price, location, media, monitoring and market fields.",
            "default": "flat"
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Leave empty to let the connector decide."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}