100 free credits. No credit card required. Get a key

Facebook Marketplace search API

Facebook Marketplace listings for a keyword near a point or place: title, price, city, photo and listed time, filtered by radius, price, condition, delivery, listing date and availability, sorted as Marketplace sorts.

GET /v1/facebook/marketplace/searchBeta1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/facebook/marketplace/search?q=bike&location=austin&max_price=300",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"listings": [
{
"id": "1419760300351909",
"marketplace_listing_title": "Retrospec Comfort Hybrid Bike - 7 Speed",
"listing_price": {
"formatted_amount": "$100",
"amount": "100.00",
"amount_with_offset_in_currency": "10000"
},
"strikethrough_price": {
"formatted_amount": "$275",
"amount": "275.00"
},
"location": {
"reverse_geocode": {
"city": "Los Angeles",
"state": "CA",
"city_page": {
"display_name": "Los Angeles, California",
"id": "110970792260960"
}
}
},
"primary_listing_photo": {
"__typename": "CatalogMarketplaceEnhancementTransformedImage",
"image": {
"uri": "https://scontent-phx1-1.xx.fbcdn.net/v/t39.84726-6/863451975_1640851144088320_5756440697907607365_n.jpg?stp=c90.0.540.54…"
},
"id": "1640851140754987"
},
"is_sold": false,
"is_pending": false,
"is_live": true,
"marketplace_listing_category_id": "1658310421102081",
"creation_time": 1792873200,
"delivery_types": [
"IN_PERSON"
],
"__typename": "GroupCommerceProductItem",
"__isMarketplaceListingRenderable": "GroupCommerceProductItem",
"is_hidden": false,
"is_viewer_seller": false,
"min_listing_price": null,
"max_listing_price": null,
"__isMarketplaceListingWithPulseAttribution": "GroupCommerceProductItem",
"created_with_seller_app": false,
"custom_title": null,
"custom_sub_titles_with_rendering_flags": [],
"origin_group": null,
"listing_video": null,
"…": "6 more fields"
},
{
"id": "2066072307423375",
"marketplace_listing_title": "Silver Mountain Bike",
"listing_price": {
"formatted_amount": "$115",
"amount": "115.00",
"amount_with_offset_in_currency": "11500"
},
"strikethrough_price": null,
"location": {
"reverse_geocode": {
"city": "Los Angeles",
"state": "CA",
"city_page": {
"display_name": "Los Angeles, California",
"id": "110970792260960"
}
}
},
"primary_listing_photo": {
"__typename": "CatalogMarketplaceEnhancementTransformedImage",
"image": {
"uri": "https://scontent-phx1-1.xx.fbcdn.net/v/t39.84726-6/913926426_1458864976396572_6141599406701477433_n.jpg?stp=c316.0.540.5…"
},
"id": "1458864969729906"
},
"is_sold": false,
"is_pending": false,
"is_live": true,
"marketplace_listing_category_id": "1658310421102081",
"creation_time": 1795037231,
"delivery_types": [
"IN_PERSON"
],
"__typename": "GroupCommerceProductItem",
"__isMarketplaceListingRenderable": "GroupCommerceProductItem",
"is_hidden": false,
"is_viewer_seller": false,
"min_listing_price": null,
"max_listing_price": null,
"__isMarketplaceListingWithPulseAttribution": "GroupCommerceProductItem",
"created_with_seller_app": false,
"custom_title": null,
"custom_sub_titles_with_rendering_flags": [],
"origin_group": null,
"listing_video": null,
"…": "6 more fields"
},
"… 2 more"
]
}

Parameters

NameTypeDescription
qquery · requiredstringWhat to search for. Example: bike.
latquerynumber | nullLatitude of the search centre.
lngquerynumber | nullLongitude of the search centre.
locationquerystringA place name instead of lat/lng (first match).
radius_kmquerynumber | nullSearch radius in km (1-500, default 40).
min_pricequerynumber | nullMinimum price, in the local currency.
max_pricequerynumber | nullMaximum price, in the local currency.
sort_byquery"suggested" | "distance_ascend" | "creation_time_descend" | "price_ascend" | "price_descend"One of suggested, distance_ascend, creation_time_descend, price_ascend, price_descend.
conditionquerystringComma list: new, used_like_new, used_good, used_fair.
delivery_methodquery"all" | "local_pickup" | "shipping"One of all, local_pickup, shipping.
date_listedquery"1" | "7" | "30" | "all" | "last_24_hours" | "last_7_days" | "last_30_days"One of 1, 7, 30, all, last_24_hours, last_7_days, last_30_days.
availabilityquery"available" | "sold"One of available, sold.
category_idquerystringA listing’s marketplace_listing_category_id.
Response fields

200 with a FacebookMarketplaceSearch, in Facebook’s own JSON.

FieldTypeDescription
listingsFacebookMarketplaceListing[]
Status codes
StatusMeaning
200Matching listings.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The ad, Page or advertiser is not in the Meta Ad Library.
429Too many requests. Wait for Retry-After seconds.
503Facebook is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

Is there a next page?

No: Marketplace shows a logged-out visitor one page (up to about 24). Narrow the radius or filters to see different listings.

Facebook is a trademark of Meta Platforms, Inc. We are not affiliated with or endorsed by Meta.