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

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 failure
import 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

NameTypeDescription
idpath · requiredstringListing id or facebook.com/marketplace/item/<id> URL. Example: 1154689397205553.
Response fields

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

FieldTypeDescription
idstring
marketplace_listing_titlestring | null
listing_priceobject | null
redacted_descriptionobject | null
location_textobject | null
locationobject
creation_timeinteger | nullWhen it was listed, Unix seconds (UTC).
is_soldboolean
delivery_typesstring[]
attribute_dataobjectCondition, brand and other attributes.
listing_photosobject[]Photos: image.uri, image.width, image.height, accessibility_caption.
Status codes
StatusMeaning
200The listing.
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

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