GroundsocialDocs

API · Facebook

GET /facebook/marketplace/search

Search Facebook Marketplace listings near a place, with price, condition, delivery, date and sort filters.

RequestGET /v1/facebook/marketplace/search
Operation idfacebook.marketplace.search
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Search Facebook Marketplace listings near a place, with price, condition, delivery, date and sort filters.

Query parameters

NameTypeRequiredDescription
qstringyesWhat to search for. Example: bike.
latnumber | nullnoLatitude of the search centre.
lngnumber | nullnoLongitude of the search centre.
locationstringnoA place name instead of lat/lng (first match).
radius_kmnumber | nullnoSearch radius in km (1-500, default 40).
min_pricenumber | nullnoMinimum price, in the local currency.
max_pricenumber | nullnoMaximum price, in the local currency.
sort_by"suggested" | "distance_ascend" | "creation_time_descend" | "price_ascend" | "price_descend"noOne of suggested, distance_ascend, creation_time_descend, price_ascend, price_descend.
conditionstringnoComma list: new, used_like_new, used_good, used_fair.
delivery_method"all" | "local_pickup" | "shipping"noOne of all, local_pickup, shipping.
date_listed"1" | "7" | "30" | "all" | "last_24_hours" | "last_7_days" | "last_30_days"noOne of 1, 7, 30, all, last_24_hours, last_7_days, last_30_days.
availability"available" | "sold"noOne of available, sold.
category_idstringnoA listing’s marketplace_listing_category_id.

Responses

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

FacebookMarketplaceSearch fields

FieldTypeDescription
listingsFacebookMarketplaceListing[]

Errors use one shape everywhere; see Errors for every code and what to do.