Facebook Marketplace
3 endpoints. All requests need an x-api-key header.
/v1/facebook/marketplace/itemMarketplace Item
Fetches details for a Facebook Marketplace item by item id or Marketplace item URL, including title, description, price, location, condition, photos, seller, and availability flags. Rental listings can include listing_date_text and availability_text from Facebook's Marketplace GraphQL response, for example 'Listed over a week ago' and 'Available now'. creation_time can still be null when Facebook does not expose an exact timestamp.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
id | string | Facebook Marketplace item id Example: 1656586118821988 |
url | string | Facebook Marketplace item URL Example: https://www.facebook.com/marketplace/item/1656586118821988/ |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/facebook/marketplace/item?id=1656586118821988&url=https%3A%2F%2Fwww.facebook.com%2Fmarketplace%2Fitem%2F1656586118821988%2F" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/facebook/marketplace/item?id=1656586118821988&url=https%3A%2F%2Fwww.facebook.com%2Fmarketplace%2Fitem%2F1656586118821988%2F", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/facebook/marketplace/item",
params={"id": "1656586118821988", "url": "https://www.facebook.com/marketplace/item/1656586118821988/"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())/v1/facebook/marketplace/location/searchMarketplace Location Search
Searches Facebook Marketplace locations/cities and returns coordinates you can use with the Marketplace Search endpoint.
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
queryrequired | string | Location search query Example: Austin |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/facebook/marketplace/location/search?query=Austin" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/facebook/marketplace/location/search?query=Austin", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/facebook/marketplace/location/search",
params={"query": "Austin"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())/v1/facebook/marketplace/searchMarketplace Search
Searches Facebook Marketplace listings by keyword and lat/lng. Each page contains up to 24 listings. Each listing includes creation_time as an ISO 8601 UTC timestamp when Facebook exposes an exact listing timestamp, plus listing_date_text when available; either field can be null. Pass category_id to restrict results to the numeric Facebook Marketplace category ID returned on listing results. Supports pagination with the returned cursor. Pass the cursor value back as-is. The sort and date filters
Cost: 5 credits live · 1 credit when served from cache
Query parameters
| Name | Type | Description |
|---|---|---|
queryrequired | string | Search keyword Example: bike |
category_id | string | Numeric Facebook Marketplace category ID. Listing results include this value as category_id. Example: 1658310421102081 |
latrequired | number | Latitude for the search location Example: 30.2677 |
lngrequired | number | Longitude for the search location Example: -97.7475 |
radius_km | number | Search radius in kilometers Example: 65 |
min_price | number | Minimum listing price Example: 100 |
max_price | number | Maximum listing price Example: 500 |
sort_by | string | Facebook Marketplace sort option. creation_time_descend usually orders the first pages newest first, but Facebook can insert newer listings on later cursor pages. One of: suggesteddistance_ascendcreation_time_descendprice_ascendprice_descend Example: creation_time_descend |
delivery_method | string | Delivery filter One of: alllocal_pickupshipping Example: local_pickup |
condition | string | Condition filter One of: newused_like_newused_goodused_fair Example: used_good |
date_listed | string | Facebook Marketplace date filter. Uses the same calendar-day buckets as the UI, so last_24_hours can include listings from the prior calendar day. One of: all1730last_24_hourslast_7_dayslast_30_days Example: 7 |
availability | string | Availability filter One of: availablesoldall Example: available |
cursor | string | Opaque pagination cursor returned from the previous response. Pass it back as-is. Example: eyJwZyI6MCwiYjJjIjp7... |
fresh | boolean | Set to true to skip the cache and fetch live data at the live price. |
Example
curl "https://api.pulseemetrics.com/v1/facebook/marketplace/search?query=bike&lat=30.2677&lng=-97.7475" \
-H "x-api-key: $PULSE_KEY"Try it in the playground →JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/facebook/marketplace/search?query=bike&lat=30.2677&lng=-97.7475", {
headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();import os, requests
r = requests.get(
"https://api.pulseemetrics.com/v1/facebook/marketplace/search",
params={"query": "bike", "lat": "30.2677", "lng": "-97.7475"},
headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())