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"const res = await fetch('https://pipefetch.com/v1/facebook/marketplace?q=bike&location=10001', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/facebook/marketplace",
params={"q": "bike", "location": "10001"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]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
{
"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
}
}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
| Name | Type | Description |
|---|---|---|
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.
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.
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.
Each endpoint says what a request costs. Requests that return nothing are free.
- $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
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.
Step-by-step guides
More Facebook APIs
-
1 credit / 20
Facebook Comments API
The comments on a public Facebook post, video or Reel, with reactions by type, reply counts, authors and the post itself.
GET /v1/facebook/comments -
1 credit
Facebook Reels API
The newest Reels of a Facebook Page with plays, reactions, comments, shares and saves, captions and video file addresses.
GET /v1/facebook/reels -
1 credit
Facebook Reviews API
The newest reviews of a Facebook Page: text, recommends or not, date and reviewer, with the Page's recommend percentage.
GET /v1/facebook/reviews -
1 credit
Facebook Events API
The upcoming or past events a Facebook Page hosts, with dates, venue and address, organizers, ticket link and responses.
GET /v1/facebook/events -
2 credits
Facebook Page API
The public details of a Facebook Page: category, followers, email, phone, website, address, social links and pictures.
GET /v1/facebook/page -
2 credits
Facebook Posts API
The newest posts of a Facebook Page with text, images, reactions by type, comment and share counts, and top comments.
GET /v1/facebook/posts -
2 credits
Facebook Group Posts API
The newest posts of a public Facebook group with author, text, images, links, reactions by type and top comments.
GET /v1/facebook/group
Other sources
YouTubeInstagramWebsitesTikTokGoogleThreadsLinkedInApp storesSteamXPinterestAirbnbReal estateKeywordsJob boardsEventbriteShopify storesPublic tenders
Make your first request in a minute
Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.