{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Marketplace Scraper - Listings & Prices, No Login",
    "description": "Scrape Facebook Marketplace listings by keyword, category (vehicles, electronics, furniture, rentals) and city: title, price, original price, location, photo and time. Filter price range, condition, recently listed. Goes past the 24-result page limit. New-listing alerts. No login. JSON, CSV export.",
    "version": "0.1",
    "x-build-id": "PhB61HYaNhvt8Up7V"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/headply~facebook-marketplace-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-headply-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/headply~facebook-marketplace-scraper/runs": {
      "post": {
        "operationId": "runs-sync-headply-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/headply~facebook-marketplace-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-headply-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": "Keywords",
            "type": "array",
            "description": "One search per line. In \"Marketplace listings\" mode each keyword is a Marketplace search in the location below; otherwise each is a video & reel search across Facebook.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Marketplace location",
            "type": "string",
            "description": "City as it appears in Marketplace links: facebook.com/marketplace/<this>/… (e.g. nyc, la, chicago, london, sydney, or a numeric location id). Open Marketplace in a browser, pick the city, and copy that part of the link.",
            "default": "nyc"
          },
          "maxItemsPerTarget": {
            "title": "Max results per page, group or search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound for each page, group, Marketplace search or keyword. Results are fetched newest first until this is reached or nothing more is available.",
            "default": 100
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Marketplace only. Lowest price, in the location's currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Marketplace only. Highest price, in the location's currency."
          },
          "daysSinceListed": {
            "title": "Listed within",
            "enum": [
              "any",
              "1",
              "7",
              "30"
            ],
            "type": "string",
            "description": "Marketplace only. Keep listings posted within this window.",
            "default": "any"
          },
          "itemCondition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used_like_new",
              "used_good",
              "used_fair"
            ],
            "type": "string",
            "description": "Marketplace only.",
            "default": "any"
          },
          "category": {
            "title": "Marketplace category (no keywords)",
            "type": "string",
            "description": "Optional. Browse a whole category instead of searching, e.g. vehicles, electronics, furniture, propertyrentals. Used only when no keywords are given."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run (monitoring)",
            "type": "boolean",
            "description": "For schedules. Returns and bills only items not delivered by an earlier run with the same monitor name. The first run delivers the latest items at the standard price; later runs return only new items, at the lower new-item price. For Marketplace, \"new\" means listed after the previous run. Repeat runs also bill a small fee per page, group or search checked, because the check costs the same whether or not anything is new.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Label for this schedule's memory. Runs with the same name share memory; use one name per schedule or client. Change it to start fresh.",
            "default": "default"
          },
          "startUrls": {
            "title": "Facebook URLs",
            "type": "array",
            "description": "Any mix of Facebook links, one per line: pages (https://www.facebook.com/nasa), public groups (https://www.facebook.com/groups/ReactJSDevelopers), Marketplace searches (https://www.facebook.com/marketplace/nyc/search?query=bike&maxPrice=300) and video searches (https://www.facebook.com/search/videos/?q=spacex). Each link is detected and scraped the right way. Marketplace links keep their own filters (price, condition, days).",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to scrape",
            "enum": [
              "posts",
              "reels",
              "groups",
              "marketplace",
              "videoSearch"
            ],
            "type": "string",
            "description": "Decides how keywords are used and what an empty run returns. \"Page reels\" keeps only reels from the pages. \"Marketplace listings\" turns keywords into Marketplace searches in the chosen location; every other mode turns keywords into video & reel searches. Links in \"Facebook URLs\" are always recognized automatically.",
            "default": "marketplace"
          },
          "pages": {
            "title": "Facebook pages",
            "type": "array",
            "description": "Page or public profile names or links: nasa, @nasa, https://www.facebook.com/nasa or profile.php?id=… links. Returns the newest posts first.",
            "items": {
              "type": "string"
            }
          },
          "groups": {
            "title": "Public groups",
            "type": "array",
            "description": "Public group names, ids or links (ReactJSDevelopers or https://www.facebook.com/groups/ReactJSDevelopers). Private groups cannot be read without login and return nothing.",
            "items": {
              "type": "string"
            }
          },
          "contentType": {
            "title": "Post types",
            "enum": [
              "all",
              "reels",
              "videos",
              "photos",
              "text"
            ],
            "type": "string",
            "description": "Filter page and group posts by type. Filtered-out posts are never charged. (\"Page reels\" mode always keeps reels only.)",
            "default": "all"
          },
          "enrichReels": {
            "title": "Reel details (duration, video file)",
            "type": "boolean",
            "description": "Open each reel to add its duration, a direct video file URL and the comment count when the feed lacks them. One extra request per reel; no extra charge.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Pages, groups and searches processed in parallel.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "Max retries per page, group or search",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "A target that fails is retried on a fresh connection up to this many times; items already delivered are never repeated or re-charged.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave as is. Facebook only serves public pages, groups and Marketplace in full to residential addresses, so that is the default.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}