Marketplace search

Facebook Marketplace listings for a search near a place: title, price, city, listing time, photo, seller and delivery.

Try it in the dashboard 100 free credits when you sign up, no card.

GET/v1/facebook/marketplace

Costs 1 credit per request. Only requests that return data are charged.

Parameters

NameTypeDescription
qrequired string What to search for, up to 100 characters.
locationrequired string Where to search. A postal code such as 10001 is the dependable way to name a place. A city name works too, but Facebook can match it to a smaller place with a similar name. Up to 100 characters.
sortoptional string Facebook's own orders: best (its suggested order), newest (date listed, newest first), price_low (lowest price first) or price_high (highest price first). One of: best, newest, price_low, price_high. Default: best.
minPriceoptional integer Lowest price, in whole units of the local currency of the place. From 0 to 10000000.
maxPriceoptional integer Highest price, in whole units of the local currency of the place. From 0 to 10000000.
limitoptional integer How many listings to return. Default: 20. From 1 to 20.

Example request

curl "https://pipefetch.com/v1/facebook/marketplace?q=bike&location=10001" \
  -H "x-api-key: YOUR_API_KEY"

Example response

A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.

200 OK · application/json
{
  "data": {
    "search": {
      "query": "bike",
      "location": "New York, NY"
    },
    "listings": [
      {
        "id": "0000000000",
        "url": "https://example.com/item",
        "title": "Razor Bike. $20",
        "price": 20,
        "priceFormatted": "$20",
        "currency": "USD",
        "originalPrice": null,
        "originalPriceFormatted": null,
        "createdAt": "2026-11-17T18:31:08.000Z",
        "city": "North Bergen",
        "state": "NJ",
        "locationText": "North Bergen, NJ",
        "status": "available",
        "isSold": false,
        "isPending": false,
        "categoryId": "1658310421102081",
        "imageUrl": "https://scontent.fgyd3-1.fna.fbcdn.net/v/t39.84726-6/913213627_29509224085380010_7643450138708191673_n.jpg?stp=c90.0.540.540a_dst-jpg_p180x540_tt6&_nc…",
        "seller": {
          "id": "0000000000",
          "name": "Example Person",
          "url": "https://example.com/profile"
        },
        "deliveryTypes": [
          "IN_PERSON",
          "PUBLIC_MEETUP"
        ],
        "shippingOffered": false
      },
      {
        "id": "0000000000",
        "url": "https://example.com/item",
        "title": "Trek 7200 Fx Hybrid Bike",
        "price": 150,
        "priceFormatted": "$150",
        "currency": "USD",
        "originalPrice": 175,
        "originalPriceFormatted": "$175",
        "createdAt": "2026-11-17T17:15:38.000Z",
        "city": "New York",
        "state": "NY",
        "locationText": "New York, NY",
        "status": "available",
        "isSold": false,
        "isPending": false,
        "categoryId": "1658310421102081",
        "imageUrl": "https://scontent.fgyd3-1.fna.fbcdn.net/v/t39.84726-6/907454344_1171456765280360_6746306681107062572_n.jpg?stp=c0.87.526.526a_dst-jpg_p526x395_tt6&_nc_…",
        "seller": {
          "id": "0000000000",
          "name": "Example Person",
          "url": null
        },
        "deliveryTypes": [
          "IN_PERSON"
        ],
        "shippingOffered": false
      }
    ]
  },
  "credits": {
    "used": 1,
    "remaining": 99
  }
}

Good to know

  • A postal code is the dependable way to name the place: 10001 was understood as "New York, NY". A city name can be matched to a smaller place with a similar name: in an earlier run of ours, "New York, NY" became New City, New York.
  • search.location says which place Facebook understood, so check it. The search area around that place is Facebook's choice, and a radius cannot be set.
  • price is a number in the local currency of the place and priceFormatted is the price as Facebook writes it. originalPrice is the earlier price of a listing whose price was lowered, and null otherwise.
  • Descriptions, further photos, exact coordinates, item condition and seller ratings are on each listing's own page and are not included.
  • A search that finds nothing answers 404 no_results, and a location Facebook knows no place for answers 404 location_not_found. Neither costs anything.

Errors

Every error has the same shape, and none of them is charged. The full list is in the error reference.

Looking for an overview and use cases? See the Facebook Marketplace API page.