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_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | one of | Listing URL (facebook.com/marketplace/item/<id>). Accepted hosts: facebook.com, fb.com, fb.watch. |
id | string | one of | Listing 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:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.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"1import os2import requests34params = {5 "id": "1114608241188932",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/facebook/marketplace/item",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11)12body = res.json()1314if body["ok"]:15 print(body["data"])16else:17 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/facebook/marketplace/item");2url.search = new URLSearchParams({3 "id": "1114608241188932"4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape Facebook Marketplace listing",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/facebook/marketplace/item",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "id",19 "value": "1114608241188932"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}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.
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.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The 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}Related endpoints#
- Facebook Ad Library search (
GET /v1/facebook/ad-library/search) - Facebook Ad Library search (POST body) (
POST /v1/facebook/ad-library/search) - Facebook Ad Library ads by page (
GET /v1/facebook/ad-library/company/ads) - Facebook Ad Library ads by page (POST body) (
POST /v1/facebook/ad-library/company/ads) - Facebook Ad Library ad details (
GET /v1/facebook/ad-library/ad) - Facebook Ad Library ad transcript (
GET /v1/facebook/ad-library/ad/transcript) - Facebook Ad Library advertiser search (
GET /v1/facebook/ad-library/search/companies) - Facebook profile or page (
GET /v1/facebook/profile)