# Facebook Marketplace: Search listings

`facebook_marketplace/listings/search` · version 1.0.0 · pilot · 1 credits a call

The listings of a Facebook Marketplace page, a category with its filters or a search by keywords, page after page: title, price, town, date, seller and photo of each.

Categories: Cars, E-commerce

## When to use

You have a Facebook Marketplace page, a category with the filters you set on it (New York's cars from 2018 under 80,000 miles, newest first: facebook.com/marketplace/nyc/vehicles/?minYear=2018&maxMileage=80000&sortBy= creation_time_descend) or a search (facebook.com/marketplace/nyc/search/?query=iphone 15), and need its listings as Facebook ranks them: each one's id and page, title (a car's, Facebook's own from the vehicle, and the seller's), the line under it (a car's mileage), price and the price it was before, town and state, when it was listed, the delivery offered, its seller's name and id, and its photo. The page's address is the search: set the city, the category and the filters on Facebook, and pass the address. No Facebook account is needed: the listings are read as a visitor signed out sees them. For everything one listing says (its description, a car's make, model, mileage and more, its photos), use facebook_marketplace/listings/get with its `id`.

## Call

```bash
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"source": "facebook_marketplace", "operation": "listings/search", "options": {"search": "https://www.facebook.com/marketplace/nyc/vehicles/?minYear=2018&maxMileage=80000&sortBy=creation_time_descend"}}'
```

It answers:

```json
{"object": "run", "status": "succeeded", "count": 24, "has_more": true, "next": {"source": "facebook_marketplace", "operation": "listings/search", "options": {...}},
 "cost": {"credits": 1}, "balance": {"credits": 9990}, "results": [...]}
```

`cost` and `balance` are objects: a call's credits are `cost.credits`. `results` holds the records (below). `next` is the whole call for the following page: send it as it is; `null` on the last page.

Beside `options`, the call takes:

| Parameter | Type | Description |
|---|---|---|
| `fields` | array of string | The record fields to keep, by path (`title`, `address.city`); `object`, `id` and `position` always come. Left out: every field. |
| `limit` | integer | Only the first N records of this call (1 to 1000), in the call's order; the call costs the same, and `next` keeps the limit. Left out: every record. |

## Options

| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| `search` | string | yes |  | The address of a Marketplace page as the browser shows it, from facebook.com, m.facebook.com or web.facebook.com: a category with its filters (facebook.com/marketplace/nyc/vehicles/?minYear=2018&sortBy= creation_time_descend), or a search (facebook.com/marketplace/nyc/search/?query=iphone 15&maxPrice=600). The filters are Facebook's, as its page writes them in the address. Every category of Marketplace is read, its rentals included (checked on its 18 on 24/11). One listing's page is refused, and so are Marketplace's home and Home Sales, which Facebook serves as its home to a visitor signed out (`invalid_search`). |
| `locale` | string |  | `"en"` | The language of Facebook's own words: a price as written ($11,000, 11 000 $US). A title is its seller's. |
| `cursor` | string |  |  | Where to go on, from `next` in an answer, as it is: opaque, and only for the search it was given with (otherwise `invalid_cursor`). |

## Record

Each item of `results`. Every field is always present, `null` when the site gives nothing.

| Field | Type | Description |
|---|---|---|
| `object` | `"listing"` |  |
| `id` | string | The listing's id on Facebook (its page: facebook.com/marketplace/item/<id>), for facebook_marketplace/listings/get. |
| `position` | integer | Its rank in the list, from 1, the pages before included. |
| `url` | string (uri) | The listing's page. |
| `title` | string | null | The title Marketplace shows; for a car, Facebook's own from the vehicle (2015 Volvo VNL670). |
| `custom_title` | string | null | The title the seller wrote, when Facebook shows its own (a car's). |
| `subtitles` | array of string | The lines under the title: a car's mileage (1.1K miles), a home's street and town (12th Ave, Paterson, NJ). |
| `price` | object | null | The price, in the currency of the listing's market as `text` writes it (Facebook says no currency in a list). |
| `price.amount` | number | null |  |
| `price.text` | string | null | As the page writes it, in `locale`: $11,000, 40 €. |
| `original_price` | object | null | The price before it dropped, struck out on the page; null when it did not. |
| `original_price.amount` | number | null |  |
| `original_price.text` | string | null |  |
| `location` | object | null | Where the listing is, as approximate as Facebook makes it. |
| `location.city` | string | null | Port Reading. |
| `location.state` | string | null | NJ; a region elsewhere (IDF). |
| `location.city_page` | object | null | The place Facebook files it under, a town or the city around it, with its id. |
| `location.city_page.id` | string | null |  |
| `location.city_page.name` | string | null | Woodbridge, New Jersey. |
| `category_id` | string | null | Facebook's id of its category (807311116002614: vehicles). |
| `created_at` | string | null (date-time) | When it was listed, UTC. |
| `is_live` | boolean | null | Whether it is up on Marketplace. |
| `is_pending` | boolean | null |  |
| `is_sold` | boolean | null |  |
| `is_hidden` | boolean | null |  |
| `delivery_types` | array of string | IN_PERSON, PUBLIC_MEETUP, SHIPPING... |
| `seller` | object | null |  |
| `seller.id` | string | null | Facebook's id of the seller for a visitor signed out (pfbid...). |
| `seller.name` | string | null |  |
| `seller.type` | string | null | User, or Page for a business. |
| `photo` | object | null | Its first photo, as the list shows it. |
| `photo.id` | string | null |  |
| `photo.url` | string | null |  |
| `video_id` | string | null | Its video's id, when it has one. |
| `source_url` | string (uri) | The Marketplace page, where a person sees these listings. |
| `observed_at` | string (date-time) | When it was read, UTC. |

Example:

```json
{
  "object": "listing",
  "id": "2406531830150644",
  "position": 1,
  "url": "https://www.facebook.com/marketplace/item/2406531830150644/",
  "title": "2015 Volvo  VNL670",
  "custom_title": "2015 Volvo vnl670",
  "subtitles": [],
  "price": {
    "amount": 11000,
    "text": "$11,000"
  },
  "original_price": null,
  "location": {
    "city": "Port Reading",
    "state": "NJ",
    "city_page": {
      "id": "1423489081204522",
      "name": "Woodbridge, New Jersey"
    }
  },
  "category_id": "807311116002614",
  "created_at": "2026-11-24T12:18:31Z",
  "is_live": true,
  "is_pending": false,
  "is_sold": false,
  "is_hidden": false,
  "delivery_types": [
    "IN_PERSON"
  ],
  "seller": {
    "id": "pfbid0Qs2H4NqC48R8NEePcXp4s9UfTebksbkALmZbGrrwby1fhPJy2zmnEVW1kTDGZNuwl",
    "name": "Vincenza Ciaramella",
    "type": "User"
  },
  "photo": {
    "id": "10245701553656305",
    "url": "https://scontent.xx.fbcdn.net/v/t39.30808-6/924677812_10245701554376323_8223080080459804305_n.jpg"
  },
  "video_id": "1146253144814845",
  "source_url": "https://www.facebook.com/marketplace/nyc/vehicles/?minYear=2018&maxMileage=80000&sortBy=creation_time_descend",
  "observed_at": "2026-11-24T12:30:00Z"
}
```

## Price

1 credit per page of listings (24, then 10 a page in a category and 24 in a search). An empty page and a failed call are free.

## Errors

| Code | Status | Retry | Message |
|---|---|---|---|
| `invalid_search` | 422 | no | Pass the address of a Marketplace category or search (facebook.com/marketplace/nyc/vehicles/?...), and a `locale` Facebook speaks. |
| `site_unavailable` | 503 | yes | Facebook did not answer properly; retry later (not charged). |
| `unexpected_answer` | 424 | no | Facebook answered in a shape we do not read yet; we are told and fix it (not charged). |
| `missing_api_key` | 401 | no | No API key: send it as `Authorization: Bearer <key>`. |
| `invalid_api_key` | 401 | no | The key is not valid, or not anymore. |
| `insufficient_credits` | 402 | no | The call costs more credits than are left. |
| `unknown_operation` | 404 | no | No such source and operation in the catalog. |
| `timeout` | 408 | yes | The call did not finish within its deadline (not charged). |
| `invalid_body` | 422 | no | The body is not a call: source, operation, options. |
| `invalid_options` | 422 | no | An option is missing or out of its contract; `param` names it. |
| `invalid_idempotency_key` | 400 | no | The Idempotency-Key header is not printable ASCII, or too long. |
| `concurrency_limit` | 429 | yes | The plan's calls at a time are all in progress (Free 1, Starter 2, Pro 10, Team 50); retry when one has finished (not charged, never queued). |
| `service_busy` | 503 | yes | Too many calls at once on the account; retry in a few seconds. |
| `balance_unavailable` | 503 | yes | The balance could not be read; retry in a few seconds. |

## Changelog

- **1.0.0** (2026-11-24): First version: the listings of a Facebook Marketplace category with its filters (any of its 18, rentals included), or of a search, page after page, read signed out, in the language you ask.

Schema: https://api.lobstr.io/v2/catalog/facebook_marketplace/listings/search · All operations: https://api.lobstr.io/v2/catalog.md
