Platforms · Facebook

Facebook Marketplace Item Scraper API

Fetches a single Facebook Marketplace listing. The canonical Post leaves carry the title (content.text), the photos (content.media_urls) and the listing permalink; everything that makes it a LISTING rides post.ext.commerce: price (a number) with currency and price_formatted, strikethrough_price_formatted when the seller cut the price, the full description, location_text with latitude and longitude, attributes[] (where the condition lives, e.g. {attribute_name: "Condition", label: "Used - Good"}), category_id, mileage on vehicles, delivery_types, and the availability flags is_sold, is_live, is_pending, is_hidden, is_shipping_offered, is_buy_now_enabled and messaging_enabled. The engagement leaves stay null: Facebook publishes no public like or comment count on a listing.

GET /api/v1/data/facebook/marketplace-item · 1 credit per call · The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Inputs

  • id: Facebook Marketplace item ID (numeric).
  • url: Full URL of the Marketplace item.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.computed.content_category (string): Keyword-classified content category (e.g. tech, food, gaming). Null when undetectable.
  • source_data.computed.engagement_rate (number): Computed engagement rate (0..1).
  • source_data.computed.estimated_reach (number): Estimated reach based on views or follower count. Null when uncomputable.
  • source_data.computed.language (string): ISO 639-1 language code detected from the post text. Null when undetectable.
  • source_data.computed.save_rate (number): Saves divided by views, rounded to six places. Present only when the post has both a save count and a view count above zero.
  • source_data.post.author.avatar_url (string): URL to author profile picture
  • source_data.post.author.display_name (string): Author display name
  • source_data.post.author.username (string): Author username
  • source_data.post.content.media_urls (any): URL(s) of the primary media. Single string for video/photo posts; array of strings for carousels.
  • source_data.post.content.text (string): Post caption, description, or text content
  • source_data.post.ext.commerce.attributes (any): Listing attributes.
  • source_data.post.ext.commerce.availability_text (any): Availability, as text.
  • source_data.post.ext.commerce.category_id (any): The listing category's id.
  • source_data.post.ext.commerce.currency (any): ISO 4217 currency code of the price.
  • source_data.post.ext.commerce.delivery_types (any): How the item can be handed over.
  • source_data.post.ext.commerce.description (any): The listing's description.
  • source_data.post.ext.commerce.is_buy_now_enabled (any): True when the buyer can buy without messaging first.
  • source_data.post.ext.commerce.is_hidden (any): True when the listing is hidden.
  • source_data.post.ext.commerce.is_live (any): True when the listing is live.
  • source_data.post.ext.commerce.is_pending (any): True when a sale is pending.
  • source_data.post.ext.commerce.is_shipping_offered (any): True when the seller ships the item.
  • source_data.post.ext.commerce.is_sold (any): True when the item has sold.
  • source_data.post.ext.commerce.latitude (any): Latitude of the item in degrees.
  • source_data.post.ext.commerce.listing_date_text (any): When the item was listed, as the platform words it.
  • source_data.post.ext.commerce.location_text (any): Where the item is, as text.
  • source_data.post.ext.commerce.longitude (any): Longitude of the item in degrees.
  • source_data.post.ext.commerce.messaging_enabled (any): True when buyers can message the seller.
  • source_data.post.ext.commerce.mileage (any): Mileage, for vehicles.
  • source_data.post.ext.commerce.price (any): The item's price: a number on a marketplace listing, an object on a shop product.
  • source_data.post.ext.commerce.price_formatted (any): Price formatted for display.
  • source_data.post.ext.commerce.seller_id (any): The seller's id on the platform.
  • source_data.post.ext.commerce.seller_name (any): The seller's name.
  • source_data.post.ext.commerce.strikethrough_price_formatted (any): The crossed-out previous price, formatted for display.
  • source_data.post.flags.deleted (boolean): Whether the post is tombstoned (always present)
  • source_data.post.id (string)
  • source_data.post.published_at (any): Post creation timestamp as an ISO 8601 UTC string.
  • source_data.post.url (string)
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each call costs 1 credit. A call that finds nothing, or fails, is free.
  • The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.
  • Send one of: id, url.

Example call

GET /api/v1/data/facebook/marketplace-item?url=https%3A%2F%2Fwww.facebook.com%2Fmarketplace%2Fitem%2F1656586118821988%2F

Questions

How much does the Facebook Marketplace Item API cost?

Each call costs 1 credit. A call that finds nothing, or fails, costs nothing.

What do I send?

Give one of id and url. 2 more inputs are optional: id and url. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Do I need a Facebook account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related Facebook endpoints

More Facebook scraper APIs