Facebook Marketplace listing API
One Facebook Marketplace listing by id or URL: title, price, description, location, listed time, delivery types, attributes and every photo.
GET /v1/facebook/marketplace/items/{id}Beta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/facebook/marketplace/items/1154689397205553",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "__typename": "GroupCommerceProductItem", "__isMarketplaceListingRenderable": "GroupCommerceProductItem", "primary_mp_ent": { "__typename": "GroupCommerceProductItem", "id": "1154689397205553" }, "__isMarketplaceListingWithDeliveryOptions": "GroupCommerceProductItem", "shipping_profile": null, "is_buy_now_enabled": false, "is_shipping_offered": false, "should_hide_pdp_shipping_content": true, "__isMarketplaceListingWithTypeFilter": "GroupCommerceProductItem", "if_listing_type": null, "__isMarketplaceListingWithDiscounts": "GroupCommerceProductItem", "has_free_shipping_discounts": false, "formatted_shipping_price": null, "delivery_data": { "carrier": null, "delivery_address": null }, "formatted_shipping_price_list_price_only": [], "estimated_delivery_window": null, "id": "1154689397205553", "if_viewer_is_buyer": { "__typename": "GroupCommerceProductItem", "__isMarketplaceListingWithPDPRewrite": "GroupCommerceProductItem", "marketplace_pdp_integrity_banner_strings_rewrite": null, "id": "1154689397205553" }, "story": null, "redacted_description": { "text": "Blue sunburst acoustic guitar is made of wood with a gloss finish. It has a Lagrima brand name on the headstock and come…" }, "creation_time": 1795513320, "location_text": { "text": "Pasadena, CA" }, "location_vanity_or_id": "105396882827337", "is_viewer_seller": false, "…": "104 more fields"}Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string | Listing id or facebook.com/marketplace/item/<id> URL. Example: 1154689397205553. |
Response fields
200 with a FacebookMarketplaceItem, in Facebook’s own JSON.
| Field | Type | Description |
|---|---|---|
id | string | |
marketplace_listing_title | string | null | |
listing_price | object | null | |
redacted_description | object | null | |
location_text | object | null | |
location | object | |
creation_time | integer | null | When it was listed, Unix seconds (UTC). |
is_sold | boolean | |
delivery_types | string[] | |
attribute_data | object | Condition, brand and other attributes. |
listing_photos | object[] | Photos: image.uri, image.width, image.height, accessibility_caption. |
Status codes
| Status | Meaning |
|---|---|
200 | The listing. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The ad, Page or advertiser is not in the Meta Ad Library. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Facebook is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Facebook is a trademark of Meta Platforms, Inc. We are not affiliated with or endorsed by Meta.