PulseEmetrics

Facebook Marketplace

3 endpoints. All requests need an x-api-key header.

GET/v1/facebook/marketplace/item

Marketplace 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

NameTypeDescription
idstringFacebook Marketplace item id Example: 1656586118821988
urlstringFacebook Marketplace item URL Example: https://www.facebook.com/marketplace/item/1656586118821988/
freshbooleanSet 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())
GET/v1/facebook/marketplace/location/search

Marketplace 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

NameTypeDescription
queryrequiredstringLocation search query Example: Austin
freshbooleanSet 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())
GET/v1/facebook/marketplace/search

Marketplace 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

NameTypeDescription
queryrequiredstringSearch keyword Example: bike
category_idstringNumeric Facebook Marketplace category ID. Listing results include this value as category_id. Example: 1658310421102081
latrequirednumberLatitude for the search location Example: 30.2677
lngrequirednumberLongitude for the search location Example: -97.7475
radius_kmnumberSearch radius in kilometers Example: 65
min_pricenumberMinimum listing price Example: 100
max_pricenumberMaximum listing price Example: 500
sort_bystringFacebook 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_methodstringDelivery filter One of: alllocal_pickupshipping Example: local_pickup
conditionstringCondition filter One of: newused_like_newused_goodused_fair Example: used_good
date_listedstringFacebook 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
availabilitystringAvailability filter One of: availablesoldall Example: available
cursorstringOpaque pagination cursor returned from the previous response. Pass it back as-is. Example: eyJwZyI6MCwiYjJjIjp7...
freshbooleanSet 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())