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

# Marketplace Search

> Searches Facebook Marketplace listings by keyword and lat/lng. Supports pagination with the returned cursor. Pass the cursor value back as-is. When sort_by is creation_time_descend, Facebook can still return slightly different ordering between identical requests. For alerting/new-item workflows, scrape multiple pages and dedupe by listing id instead of relying on page 1 item order being identical every run.

### Query Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `query` | `string` | Yes | Search keyword |
| `lat` | `number` | Yes | Latitude for the search location |
| `lng` | `number` | Yes | Longitude for the search location |
| `radius_km` | `number` | No | Search radius in kilometers |
| `min_price` | `number` | No | Minimum listing price |
| `max_price` | `number` | No | Maximum listing price |
| `count` | `number` | No | Number of listings to return |
| `sort_by` | `string` | No | Sort order |
| `delivery_method` | `string` | No | Delivery filter |
| `condition` | `string` | No | Condition filter |
| `date_listed` | `string` | No | Date listed filter |
| `availability` | `string` | No | Availability filter |
| `cursor` | `string` | No | Opaque pagination cursor returned from the previous response. Pass it back as-is. |

### Response Example

```json theme={null}
{
  "success": true,
  "data": {
  "success": true,
  "listings": [
    {
      "id": "1880804689276480",
      "url": "https://www.facebook.com/marketplace/item/1880804689276480/",
      "title": "ANCHEER E Bike",
      "price": {
        "formatted_amount": "$300",
        "amount_with_offset_in_currency": 30000,
        "amount": 300
      },
      "strikethrough_price": null,
      "location": {
        "city": "Austin",
        "state": "TX",
        "display_name": "Austin, Texas",
        "city_page_id": "106224666074625"
      },
      "primary_photo": {
        "id": "742022888999863",
        "url": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.84726-6/696326464_742022902333195_6718077421452400338_n.jpg?stp=c43.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=106&ccb=1-7&_nc_sid=92e707&_nc_ohc=dzY2b4-6EowQ7kNvwFDgohs&_nc_oc=AdomRHPRV49gouEOWqxlFxuEeLcoc5cBjRhXhi91oslqlUNdZ9EV-te1C_pvL-eyVzs&_nc_zt=14&_nc_ht=scontent-bos5-1.xx&_nc_gid=GvS1066o3EBgpWuqL6BQZA&_nc_ss=7e289&oh=00_Af6M2kbWMsKLjEHmSUv6oiPJt3skIfetxG3oB2YOIiDuTg&oe=6A0D6E08"
      },
      "category_id": "1658310421102081",
      "is_hidden": false,
      "is_live": true,
      "is_pending": false,
      "is_sold": false,
      "is_viewer_seller": false,
      "delivery_types": [
        "IN_PERSON"
      ],
      "story_type": "POST",
      "story_key": "26881002338175809"
    }
  ],
  "cursor": "eyJwZyI6MCwiYjJj....",
  "has_next_page": true
}
}
```


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