{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Marketplace Scraper - Exact Location, No Login",
    "description": "Export Facebook Marketplace listings with price, original price, city, listing time and sold flag, at the exact place and radius you set. Keywords, vehicles, rentals or pasted links; price, condition, days-listed and sort filters; optional description, all photos and coordinates. No login.",
    "version": "1.0",
    "x-build-id": "azwTnncmzkvqDwhSw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/benthepythondev~facebook-marketplace-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-benthepythondev-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/benthepythondev~facebook-marketplace-scraper/runs": {
      "post": {
        "operationId": "runs-sync-benthepythondev-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/benthepythondev~facebook-marketplace-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-benthepythondev-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": "Words to search on Facebook Marketplace, one search each, for example 'iphone 13' or 'standing desk'. Results come from around the location below. Leave empty when you use the category or Marketplace links instead. With nothing at all in the input, a sample search for 'iphone' around New York runs.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category feed",
            "enum": [
              "",
              "vehicles",
              "propertyrentals"
            ],
            "type": "string",
            "description": "Read a whole Marketplace category around the location instead of (or as well as) a keyword search. Vehicles and property rentals are supported. Price range, radius and sort apply; condition does not.",
            "default": ""
          },
          "startUrls": {
            "title": "Marketplace links",
            "type": "array",
            "description": "Facebook Marketplace links copied from your browser: a search (https://www.facebook.com/marketplace/nyc/search?query=sofa&maxPrice=300), a vehicles or propertyrentals page, or single item links (https://www.facebook.com/marketplace/item/<id>/). Filters inside a search link (price, sort, condition, radius) are kept. Item links always come with details.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, address or ZIP code to search around, for example 'Austin, TX', 'Manchester, UK' or '90210'. It is turned into exact coordinates, so results come from this place and not from wherever the proxy happens to be. Use latitude and longitude instead for a precise point. Default: New York, NY."
          },
          "latitude": {
            "title": "Latitude",
            "type": "string",
            "description": "Exact search point (decimal degrees, e.g. 30.2672). Overrides Location. Give latitude and longitude together."
          },
          "longitude": {
            "title": "Longitude",
            "type": "string",
            "description": "Exact search point (decimal degrees, e.g. -97.7431). Give latitude and longitude together."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How far from the search point to look, in kilometres (40 km is about 25 miles). Facebook honours it when it is sent with exact coordinates, which this Actor does. Exception: with Newest first sort Facebook widens the area; with details on, rows outside the radius are then dropped and not charged.",
            "default": 40
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in the local currency (whole units, e.g. 50 for $50)."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in the local currency (whole units)."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "",
              "new",
              "used_like_new",
              "used_good",
              "used_fair"
            ],
            "type": "string",
            "description": "Item condition filter for keyword searches.",
            "default": ""
          },
          "daysSinceListed": {
            "title": "Listed in the last N days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Only listings posted in the last N days. Sent to Facebook and checked again on every row's listing time, so older listings never slip through."
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "",
              "newest",
              "price_low",
              "price_high",
              "distance"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": ""
          },
          "maxItemsPerSearch": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop each search (keyword, category or link) after this many saved listings. Facebook usually serves several hundred per search.",
            "default": 20
          },
          "includeDetails": {
            "title": "Include details (description, all photos, coordinates)",
            "type": "boolean",
            "description": "Open each listing's item page for its full description, every photo, condition and attributes, area-level coordinates, postal code, distance from your search point and vehicle fields. Charged as an extra 'listing-details' event per listing that has them. Slower: about 1 to 2 seconds per listing.",
            "default": false
          },
          "strictKeyword": {
            "title": "Only titles that contain every keyword",
            "type": "boolean",
            "description": "Drop listings whose title does not contain every word of the search. Facebook fills thin searches with loosely related items; this keeps only exact matches. Dropped listings are not charged.",
            "default": false
          },
          "onlyNew": {
            "title": "Only listings not seen in earlier runs",
            "type": "boolean",
            "description": "For scheduled runs: skip listings this same search already returned in an earlier run (remembered in your named key-value store 'facebook-marketplace-seen'). Skipped listings are not charged.",
            "default": false
          },
          "proxyCountry": {
            "title": "Proxy country",
            "type": "string",
            "description": "Two-letter country of the residential exit, e.g. US, GB, DE. Default: the country of your Location, else US. Usually leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}