Facebook Marketplace listing API
  1. Docs
  2. Facebook
  3. Facebook Marketplace listing API

Facebook Marketplace listing API

One listing: title, description, price, location, condition, photos, seller and availability flags.

GET /v1/facebook/marketplace/item

GET /v1/facebook/marketplace/item

One listing: title, description, price, location, condition, photos, seller and availability flags.

  • Cost: 1 credit
  • Cache: Results are kept up to 30 days; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLone ofListing URL (facebook.com/marketplace/item/<id>). Accepted hosts: facebook.com, fb.com, fb.watch.
idstringone ofListing id. Also accepted as item_id.

Send at least one of url, id. If you send several, the first listed is used and the rest are ignored.

Every request also accepts:

  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).

Example request#

Set your key in the environment first (see Authentication).

1curl -G "https://api.socialscrape.dev/v1/facebook/marketplace/item" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode "id=1114608241188932"

Example response#

This is a sample from a recorded response, lists and long text are shortened, other people's names and handles are replaced. Status 200.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_545c991e996a94dfbba1ae8d",8  "data": {9    "object": "product",10    "platform": "facebook",11    "id": "1114608241188932",12    "url": "https://www.facebook.com/marketplace/item/1114608241188932/",13    "title": "Bike",14    "description": "Globe bike ",15    "price": {16      "amount": 50.0,17      "currency": "USD",18      "original_amount": null,19      "display": "$50"20    },21    "seller": {22      "id": "1000000001",23      "handle": null,24      "name": "Sample User",25      "url": null,26      "avatar_url": null,27      "verified": null28    },29    "rating": null,30    "review_count": null,31    "sold_count": null,32    "image_urls": [33      "https://scontent-dfw6-2.xx.fbcdn.net/v/t39.84726-6/860426736_1177010601353939_238941087186559718_n.jpg?stp=dst-jpg_p720x720_tt6&_nc_cat=108&ccb=1-7&_nc_sid=92e707&_nc_ohc=UJ_p4KB1oxoQ7kNvwGNlQSy&_nc_oc=Adp3AtpqeUAeHMcZ3orUCd4a5yjzRen7HTZrS6...",34      "https://scontent-dfw6-2.xx.fbcdn.net/v/t45.5328-4/868076286_2204178476800949_3428237941662703637_n.jpg?stp=dst-jpg_p720x720_tt6&_nc_cat=108&ccb=1-7&_nc_sid=247b10&_nc_ohc=LFQKunIuP8cQ7kNvwEBBPBw&_nc_oc=AdoQsr37ei8c4H36WE1F2I39Fa0f46uFygyOTv..."35    ],36    "category": "Bicycles",37    "in_stock": true,38    "location": {39      "name": "Austin, TX",40      "address": null,41      "city": "Austin",42      "region": "TX",43      "country": null,44      "latitude": 30.270080566406,45      "longitude": -97.75085449218846    },47    "published_at": "2026-10-27T02:47:57Z",48    "extra": {49      "attributes": [50        {51          "label": "Used - Good",52          "name": "Condition",53          "value": "used_good"54        }55      ],56      "category_id": "1658310421102081",57      "category_slug": "bicycles",58      "condition": "Used - Good",59      "delivery_types": [60        "IN_PERSON"61      ],62      "is_live": true,63      "is_pending": false,64      "is_shipping_offered": false,65      "is_sold": false,66      "listing_status": "AVAILABLE",67      "location_vanity": "austin",68      "messaging_enabled": true,69      "seller_join_time": "2008-01-14T16:37:26+00:00",70      "share_uri": "https://www.facebook.com/marketplace/item/1114608241188932/",71      "source": "logged_out_public_view",72      "title_base": "Bike"73    }74  },75  "cursor": null,76  "has_more": null77}

Response#

A Product object in data.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe platform says this profile, post or item does not exist.

Every request can also fail with the account and platform errors listed on the Errors page.

Example error:

1{2  "ok": false,3  "error": {4    "code": "not_found",5    "message": "The platform says this profile, post or item does not exist.",6    "retryable": false7  },8  "credits_charged": 0,9  "request_id": "req_087cff4cc1cf96dd8d371d84"10}