{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Marketplace Vehicle Listings Scraper",
    "description": "[ 1k/1.49$ ] Facebook Marketplace Vehicle Listings Scraper extracts cars, trucks, motorcycles and other vehicles: make, model, year, mileage, transmission, fuel, body style, colours, seller type, owners, title status, price, location and photos. Search by city or coordinates with filters.",
    "version": "0.1",
    "x-build-id": "erQXKSw4AD4vvvU83"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alpha-scraper~facebook-marketplace-vehicle-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alpha-scraper-facebook-marketplace-vehicle-listings-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/alpha-scraper~facebook-marketplace-vehicle-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alpha-scraper-facebook-marketplace-vehicle-listings-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/alpha-scraper~facebook-marketplace-vehicle-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alpha-scraper-facebook-marketplace-vehicle-listings-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": {
          "locations": {
            "title": "Locations",
            "uniqueItems": true,
            "type": "array",
            "description": "Marketplace city slugs (e.g. nyc, london), city names (e.g. Austin, Texas), numeric city-page ids or facebook.com/marketplace/<city> URLs. One search runs per location. Ignored when both 'Latitude' and 'Longitude' are set; empty means Facebook's default Marketplace location.",
            "default": [
              "nyc"
            ],
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Optional explicit search centre. When 'Latitude' and 'Longitude' are both set, 'Locations' is ignored and one search runs around this point."
          },
          "longitude": {
            "title": "Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Optional explicit search centre; used together with 'Latitude'."
          },
          "radiusKm": {
            "title": "Radius",
            "minimum": 1,
            "type": "integer",
            "description": "Search radius around the location. Leave empty for Facebook's default (about 65 km)."
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Vehicle make, e.g. Toyota. Added to the search text and also enforced: it must appear in the listing title and, when details are fetched, match the make on the listing page."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Vehicle model, e.g. Camry. Added to the search text and enforced the same way as 'Make'."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Extra search words, e.g. hybrid or pickup. Together with 'Make' and 'Model' they form a keyword search inside the Vehicles category."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Lowest listing price (number only, no currency symbol). Sent to Facebook and also checked on every listing."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Highest listing price (number only, no currency symbol). Sent to Facebook and also checked on every listing."
          },
          "minYear": {
            "title": "Min year",
            "minimum": 1900,
            "maximum": 2099,
            "type": "integer",
            "description": "Oldest model year. Checked against the year at the start of the listing title and, when details are fetched, the year on the listing page."
          },
          "maxYear": {
            "title": "Max year",
            "minimum": 1900,
            "maximum": 2099,
            "type": "integer",
            "description": "Newest model year. Checked the same way as 'Min year'."
          },
          "minMileage": {
            "title": "Min mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest mileage. Compared with the number shown on the listing, in whatever unit it uses (miles or km)."
          },
          "maxMileage": {
            "title": "Max mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Highest mileage. Compared with the number shown on the listing, in whatever unit it uses (miles or km)."
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "automatic",
              "manual"
            ],
            "type": "string",
            "description": "Only vehicles with this transmission. Enforced on the listing-page value, so it needs 'Include details'."
          },
          "fuelType": {
            "title": "Fuel type",
            "type": "string",
            "description": "Text to match against the fuel type on the listing page, case-insensitive, e.g. gasoline, diesel, electric or hybrid. Needs 'Include details'."
          },
          "bodyStyle": {
            "title": "Body style",
            "enum": [
              "sedan",
              "suv",
              "truck",
              "coupe",
              "hatchback",
              "van",
              "convertible",
              "wagon"
            ],
            "type": "string",
            "description": "Only vehicles of this body style. The style is inferred from the trim and title text of the listing, so it needs 'Include details'; listings without a recognisable style are dropped when 'Strict filters' is on."
          },
          "exteriorColor": {
            "title": "Exterior color",
            "type": "string",
            "description": "Text to match against the exterior colour on the listing page, case-insensitive, e.g. black. Needs 'Include details'."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "private",
              "dealer"
            ],
            "type": "string",
            "description": "Only listings from private sellers or from dealers. Enforced on the listing-page value, so it needs 'Include details'."
          },
          "daysSinceListed": {
            "title": "Days since listed",
            "enum": [
              "1",
              "7",
              "30"
            ],
            "type": "string",
            "description": "Only listings posted within this many days.",
            "default": "30"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "suggested",
              "newest",
              "oldest",
              "price_low",
              "price_high",
              "distance",
              "mileage_low",
              "mileage_high",
              "year_newest",
              "year_oldest"
            ],
            "type": "string",
            "description": "Order in which Facebook returns the listings. Leave empty for Facebook's default order.",
            "default": "newest"
          },
          "minValidPrice": {
            "title": "Min valid price",
            "minimum": 0,
            "type": "number",
            "description": "Listings priced below this value are ignored, which removes placeholder prices ($0, $1, \"contact me\" prices). Set 0 to keep everything.",
            "default": 0
          },
          "strictFilters": {
            "title": "Strict filters",
            "type": "boolean",
            "description": "Drop listings whose value is unknown while a filter on that value is active (for example no price, year or transmission). Turn off to keep them.",
            "default": false
          },
          "requiredKeywords": {
            "title": "Required keywords",
            "uniqueItems": true,
            "type": "array",
            "description": "Words that must all appear in the listing title (case-insensitive, whole words; a plural -s or -es also matches).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "uniqueItems": true,
            "type": "array",
            "description": "Listings whose title contains any of these words are dropped (case-insensitive, whole words).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Open every listing page (one extra request per vehicle) to get transmission, fuel, colours, VIN, seller type, owners, title status, description, photos and seller data. Without it the transmission, fuel type, body style, colour and seller type filters are not applied.",
            "default": true
          },
          "maxScan": {
            "title": "Max listings to scan",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap on how many listings are examined per location. Leave empty for the default: the larger of 300 and 15 times 'Max items', and a scan that needs a detail filter also stops after about 3.5 minutes. Enter a value to scan deeper without that time limit."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of vehicles per location. Every entry of 'Locations' gets its own limit, so N locations return up to N x this value. A listing found in several locations is returned once.",
            "default": 15
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}