> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stophy.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Facebook marketplace

> Read a Facebook Marketplace search page with a city and a query as JSON with the facebook-marketplace parser. $1 per 1,000 calls.

Reads a Facebook Marketplace search page with a city and a query, like facebook.com/marketplace/austin/search?query=bike, and returns a list of listings as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. Get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.facebook.com/marketplace/austin/search?query=bike","formats":[{"type":"json","parser":"facebook-marketplace"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://www.facebook.com/marketplace/austin/search?query=bike",
    formats: [{ type: "json", parser: "facebook-marketplace" }],
  }),
});
console.log(await response.json());
```

```python Python theme={null}
import os

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://www.facebook.com/marketplace/austin/search?query=bike",
        "formats": [{"type": "json", "parser": "facebook-marketplace"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `results`, `cursor`, `page` and `total`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "results": [
        {
          "id": "4592280847709289",
          "url": "https://www.facebook.com/marketplace/item/4592280847709289/",
          "title": "Bike",
          "description": null,
          "price": {
            "amount": 85,
            "currency": "USD"
          },
          "pricePeriod": "sale",
          "status": "available",
          "address": "Austin, TX",
          "location": null,
          "bedrooms": null,
          "bathrooms": null,
          "area": null,
          "propertyType": null,
          "rating": null,
          "reviewCount": null,
          "images": [
            "https://scontent-iad3-2.xx.fbcdn.net/v/t39.84726-6/886726471_1489389276412115_3383755310775348626_n.jpg?stp=c0.43.261.2…"
          ],
          "host": null,
          "priceText": "$85",
          "city": "Austin",
          "state": "TX",
          "publishedAt": "2026-11-04T00:16:04.000Z",
          "isPending": false
        }
      ],
      "cursor": null,
      "page": null,
      "total": null,
      "location": "Austin, Texas",
      "latitude": 30.2677,
      "longitude": -97.7475
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `minPrice` | Lowest price in local currency (e.g., 50). |
| `maxPrice` | Highest price in local currency (e.g., 500). |
| `sort` | Sort order (newest, priceLow or priceHigh), relevance by default. |

## Price

\$1 per 1,000 calls. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be a Facebook Marketplace search page with a city and a query, like facebook.com/marketplace/austin/search?query=bike. Any other URL fails with `invalidRequest`.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Facebook page](https://docs.stophy.dev/scrape/prebuilt-parsers/social/facebook-page.md)
* [Facebook post](https://docs.stophy.dev/scrape/prebuilt-parsers/social/facebook-post.md)
* [Facebook comments](https://docs.stophy.dev/scrape/prebuilt-parsers/social/facebook-comments.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.