{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Marketplace Monitor: Listings, Price & Sold Status",
    "description": "Monitor Facebook Marketplace item URLs, search URLs, category feeds, mobile share links, or Item IDs for real-time availability (ACTIVE, SOLD, PENDING, REMOVED), markdown price drops, full listing details, 5-star seller ratings, vehicle VINs, and rental specs. No login needed.",
    "version": "1.0",
    "x-build-id": "1zugOX9TPtambrWEx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unitbytes~facebook-marketplace-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unitbytes-facebook-marketplace-monitor",
        "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/unitbytes~facebook-marketplace-monitor/runs": {
      "post": {
        "operationId": "runs-sync-unitbytes-facebook-marketplace-monitor",
        "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/unitbytes~facebook-marketplace-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-unitbytes-facebook-marketplace-monitor",
        "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",
        "required": [
          "max_results"
        ],
        "properties": {
          "start_urls": {
            "title": "Watchlist URLs, Share Links, Search/Category URLs, or Item IDs",
            "type": "array",
            "description": "Paste one or more Facebook Marketplace item URLs, mobile share links (/share/...), search/category URLs, or raw numeric Item IDs to monitor live status (ACTIVE, SOLD, PENDING, REMOVED), markdown price drops, and full listing details.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "search_query": {
            "title": "Search Keywords to Monitor (Used When Watchlist URLs Are Empty)",
            "type": "string",
            "description": "Search keyword(s) to monitor across Facebook Marketplace (comma-separated for multiple queries, e.g. 'rolex, omega' or 'toyota camry'). Ignored if Watchlist URLs (start_urls) are provided.",
            "default": ""
          },
          "city_slug": {
            "title": "City or 5-Digit US ZIP Code",
            "type": "string",
            "description": "City slug (e.g. 'sanfrancisco', 'losangeles', 'toronto', 'london'), comma-separated cities ('austin, dallas'), or 5-digit US ZIP code ('90210').",
            "default": "sanfrancisco"
          },
          "category": {
            "title": "Category Filter",
            "enum": [
              "all",
              "vehicles",
              "propertyrentals",
              "propertyforsale",
              "electronics",
              "furniture",
              "apparel",
              "classifieds",
              "entertainment",
              "family",
              "free",
              "garden",
              "hobbies",
              "instruments",
              "office-supplies",
              "pet-supplies",
              "sporting",
              "toys"
            ],
            "type": "string",
            "description": "Filter monitored listings by Facebook Marketplace category.",
            "default": "all"
          },
          "min_price": {
            "title": "Min Price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum listing price filter.",
            "default": 0
          },
          "max_price": {
            "title": "Max Price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listing price filter.",
            "default": 50000
          },
          "days_since_listed": {
            "title": "Listed Within Last N Days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Only monitor listings posted within the last N days (e.g. 1 for last 24 hours, 7 for last week, 30 for last month).",
            "default": 7
          },
          "sort_by": {
            "title": "Sort Order",
            "enum": [
              "best_match",
              "creation_time_descend",
              "price_ascend",
              "distance_ascend"
            ],
            "type": "string",
            "description": "Sort order for search/category monitoring.",
            "default": "best_match"
          },
          "enable_monitoring_cache": {
            "title": "Stateful Deal Monitor (Skip Unchanged Previously Seen Listings)",
            "type": "boolean",
            "description": "When enabled on scheduled runs, stores seen listing IDs, prices, and statuses in a persistent Apify Key-Value Store (7-day rolling window) and automatically skips unchanged listings—so you only receive (and only pay for) brand-new listings, price drops, or status changes.",
            "default": false
          },
          "scrape_details": {
            "title": "Scrape Full Details (Deep Inspection)",
            "type": "boolean",
            "description": "Extracts full availability status (ACTIVE/SOLD/PENDING), price, markdowns, description, seller rating, vehicle/property specs, and photo gallery.",
            "default": true
          },
          "include_all_photos": {
            "title": "Include Full 10-30+ HD Photo Carousel",
            "type": "boolean",
            "description": "Fetch the complete high-resolution photo gallery.",
            "default": true
          },
          "fast_mode": {
            "title": "Fast Mode (Discovery Only)",
            "type": "boolean",
            "description": "Skip per-item detail inspection when scanning Search or Category URLs.",
            "default": false
          },
          "max_results": {
            "title": "Max Results",
            "type": "integer",
            "description": "Maximum number of listings to monitor per run.",
            "default": 50
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of listings to verify in parallel (1-10).",
            "default": 5
          },
          "proxy_configuration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select proxies to be used by your monitor.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}