Facebook: Marketplace
facebook_marketplaceFacebook Marketplace: search listings, vehicles and rentals, listing and seller details, categories and city coordinates.
Actions:
action=search: Search general Facebook Marketplace listings (items for sale) by keyword or category near a location, with price, condition, radius and sort filters. Returns listings with their listing_id, plus an end_cursor. For cars and other vehicles use action=vehicles; for homes and rooms to rent use action=rentals. Get coordinates from action=city_coordinates. Pricing: 1 credit per call. Inputs: query (optional), category_url (optional), commerce_search_sort_by (optional), commerce_search_and_rp_condition (optional), filter_location_latitude (optional), filter_location_longitude (optional), filter_price_lower_bound (optional), filter_price_upper_bound (optional), filter_radius_km (optional), posted_today (optional), exact_match (optional), limit (optional), end_cursor (optional).
action=vehicles: Search Facebook Marketplace vehicle listings (cars, trucks, motorcycles) near a location, with price, radius and seller-type filters. Returns listings with title, price, mileage, year and listing_id, plus an end_cursor. For non-vehicle items, use action=search. Pricing: 1 credit per call. Inputs: sort_by (optional), filter_location_latitude (optional), filter_location_longitude (optional), filter_price_lower_bound (optional), filter_price_upper_bound (optional), filter_radius_km (optional), is_c2c_listing_only (optional), end_cursor (optional).
action=rentals: Search Facebook Marketplace rental listings (apartments, houses, rooms) near a location, with price, bedroom, bathroom and radius filters. Returns rental listings with their listing_id, plus an end_cursor. For items for sale, use action=search. Pricing: 1 credit per call. Inputs: sort_by (optional), filter_location_latitude (optional), filter_location_longitude (optional), filter_price_lower_bound (optional), filter_price_upper_bound (optional), filter_radius_km (optional), filter_bedrooms_min (optional), filter_bedrooms_max (optional), filter_bathrooms_min (optional), filter_bathrooms_max (optional), end_cursor (optional).
action=listing: Get one Marketplace listing in full: title, price, description, condition, all photos, location and seller. Needs the listing_id from a Marketplace search result. Pricing: 1 credit per call. Inputs: listing_id (required).
action=seller: Get a Marketplace seller's profile: name, join date, rating, review count and badges. Needs the seller_id from action=listing. Pricing: 1 credit per call. Inputs: seller_id (required).
action=categories: List Marketplace categories with their IDs and category_url values. Use a category_url to filter action=search. Pricing: 1 credit per call. Inputs: none.
action=city_coordinates: Convert a city name to the latitude and longitude that the Marketplace search tools expect in filter_location_latitude / filter_location_longitude. Pricing: 1 credit per call. Inputs: city (required), country (optional), exactly_one (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name, e.g. Austin. Required for: city_coordinates. | |
| limit | No | Maximum number of items to return. Default: 24. Optional for: search. | |
| query | No | Keyword to search listings for, e.g. iphone 15. Optional for: search. | |
| action | Yes | Which operation to run. See the tool description for what each action returns and which parameters it needs. | |
| country | No | Country name or code. Optional for: city_coordinates. | |
| sort_by | No | Sort order. vehicles: CREATION_TIME_DESCEND, PRICE_ASCEND, VEHICLE_MILEAGE_ASCEND, … · rentals: CREATION_TIME_DESCEND, PRICE_ASCEND, BEST_MATCH. Optional for: vehicles, rentals. | |
| seller_id | No | Seller ID, from the seller field of action=listing. Required for: seller. | |
| end_cursor | No | Pagination cursor. Optional for: search, vehicles, rentals. | |
| listing_id | No | Marketplace listing ID, from a Marketplace search result. Required for: listing. | |
| exact_match | No | When "true", exact match search. Optional for: search. | |
| exactly_one | No | When "true", return exactly one result. Optional for: city_coordinates. | |
| category_url | No | Category URL slug. Optional for: search. | |
| posted_today | No | When "true", limit to items posted today. Optional for: search. | |
| filter_radius_km | No | Search radius around the center in kilometres, e.g. 40. Optional for: search, vehicles, rentals. | |
| filter_bedrooms_max | No | Maximum number of bedrooms. Optional for: rentals. | |
| filter_bedrooms_min | No | Minimum number of bedrooms, e.g. 2. Optional for: rentals. | |
| is_c2c_listing_only | No | Individual sellers only. Optional for: vehicles. | |
| filter_bathrooms_max | No | Maximum number of bathrooms. Optional for: rentals. | |
| filter_bathrooms_min | No | Minimum number of bathrooms, e.g. 1. Optional for: rentals. | |
| commerce_search_sort_by | No | Sort: BEST_MATCH, CREATION_TIME_DESCEND, PRICE_ASCEND, etc. Optional for: search. | |
| filter_location_latitude | No | Latitude of the search center, e.g. 30.2672 (from action=city_coordinates). Optional for: search, vehicles, rentals. | |
| filter_price_lower_bound | No | Minimum price in the local currency, whole number, e.g. 100. Optional for: search, vehicles, rentals. | |
| filter_price_upper_bound | No | Maximum price in the local currency, whole number, e.g. 2000. Optional for: search, vehicles, rentals. | |
| filter_location_longitude | No | Longitude of the search center, e.g. -97.7431 (from action=city_coordinates). Optional for: search, vehicles, rentals. | |
| commerce_search_and_rp_condition | No | Condition: new, used_like_new, used_good, used_fair. Optional for: search. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | JSON response from the SocialAPIs REST endpoint, unchanged. Object or array depending on the endpoint; most include a `meta` block (statusCode, duration, creditsCharged, creditsRemaining). | |
| creditsCharged | No | Credits charged for this call, or null if the endpoint did not report it. | |
| creditsRemaining | No | Credits left on the API key after this call, or null if not reported. |