Facebook API

Facebook Marketplace API

Send a search term and a place, best as a postal code, and get the Marketplace listings Facebook shows near it back as JSON, each with its title, price, city, listing time, photo, seller and delivery options.

  • 100 free credits
  • No card needed
  • No scraper to build or maintain
curl "https://pipefetch.com/v1/facebook/marketplace?q=bike&location=10001" \
  -H "x-api-key: YOUR_API_KEY"
The response

What you get

  • Up to 20 listings per search: in Facebook's suggested order, newest first, or by price
  • Title, the price as a number and as Facebook writes it, the currency, and the earlier price of a marked-down listing
  • The city and state of each listing, and the time it was listed
  • A photo, the seller's public name, how the item changes hands (in person, at a public meetup, at the door) and whether shipping is offered
  • Whether the listing is available, pending or sold
  • The place Facebook understood from your location, around which it searched
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
  }
}
Reference

One GET request

Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.

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.

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.

Open the reference

Use cases

What people build with it

  • Price research

    See what an item is listed for around a postal code before you buy or sell one.

  • New listing alerts

    Search with sort=newest on a schedule and act when a listing id appears that you have not seen.

  • Resale sourcing

    Look for items under a maxPrice around several postal codes and compare what turns up.

  • Listings for an AI model

    Hand a model the listings for a search as JSON, to compare offers or to spot the outliers.

Pricing

Buy credits once. Use them whenever.

This endpoint costs 1 credit per request, and a request that returns no data costs nothing. Move the slider to see what your volume costs.

5,000credits a month
5005,00050,000250,000
5,000requests at 1 credit
2,500requests at 2 credits

Each endpoint says what a request costs. Requests that return nothing are free.

Best fit
Builder pack
12,000 credits, one-time payment
$29once
  • $2.42 per 1,000 credits
  • About $12.08 a month at this pace
  • Lasts about 2.4 months at this pace
  • Credits never expire
Start with 100 free credits

See all packs and what a credit buys

FAQ

Questions and answers

Is this the official Facebook API?

No. Pipefetch is an independent service and is not affiliated with Facebook or Meta. It returns the listings Marketplace shows to a visitor who is not logged in. You need one Pipefetch API key. There is no Facebook login, no cookie, no access token and no Meta app.

How should I name the place?

By its postal code, which is the dependable way: in the example on this page, 10001 was understood as "New York, NY". A city name works too, but Facebook can match it to a smaller place with a similar name: in an earlier run of ours, "New York, NY" became New City, New York. Whatever you send, search.location tells you which place Facebook understood, so check it. The size of the area searched around that place is Facebook's choice, and a radius cannot be set.

Do I get descriptions and seller ratings?

No. A search returns what Marketplace shows in its list of results. Descriptions, further photos, exact coordinates, item condition and seller ratings are on each listing's own page and are not included.

Which filters are there?

A price range, with minPrice and maxPrice in whole units of the local currency, and four orders: best, newest, price_low and price_high. A search returns up to 20 listings and has no further pages.

What if a search finds nothing?

The request answers 404 no_results, and a location Facebook knows no place for answers 404 location_not_found. Neither is charged.

What does a search cost?

One search costs 1 credit, whatever the limit. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no data is not charged. New accounts get 100 free credits without a card.

Do the listings contain personal data?

Yes. A listing carries the public name of its seller and, for some sellers, a link to their Marketplace profile, which is personal data when the seller is a person. If you store or process it, data-protection law such as the GDPR applies to you as it would to any other source, and our terms forbid using the API to harass people or to build profiles of private individuals.

Guides

Step-by-step guides

More

More Facebook APIs

Also on the same key

Other sources

Make your first request in a minute

Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.