Docs menu

Facebook Marketplace listing

Beta 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
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • 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).

curl
curl -G "https://api.socialscrape.io/v1/facebook/marketplace/item" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "id=1114608241188932"
Python
import os
import requests

params = {
    "id": "1114608241188932",
}
res = requests.get(
    "https://api.socialscrape.io/v1/facebook/marketplace/item",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/facebook/marketplace/item");
url.search = new URLSearchParams({
  "id": "1114608241188932"
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape Facebook Marketplace listing",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/facebook/marketplace/item",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "id",
              "value": "1114608241188932"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

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.

{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_545c991e996a94dfbba1ae8d",
  "data": {
    "object": "product",
    "platform": "facebook",
    "id": "1114608241188932",
    "url": "https://www.facebook.com/marketplace/item/1114608241188932/",
    "title": "Bike",
    "description": "Globe bike ",
    "price": {
      "amount": 50.0,
      "currency": "USD",
      "original_amount": null,
      "display": "$50"
    },
    "seller": {
      "id": "1000000001",
      "handle": null,
      "name": "Sample User",
      "url": null,
      "avatar_url": null,
      "verified": null
    },
    "rating": null,
    "review_count": null,
    "sold_count": null,
    "image_urls": [
      "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...",
      "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..."
    ],
    "category": "Bicycles",
    "in_stock": true,
    "location": {
      "name": "Austin, TX",
      "address": null,
      "city": "Austin",
      "region": "TX",
      "country": null,
      "latitude": 30.270080566406,
      "longitude": -97.750854492188
    },
    "published_at": "2026-10-27T02:47:57Z",
    "extra": {
      "attributes": [
        {
          "label": "Used - Good",
          "name": "Condition",
          "value": "used_good"
        }
      ],
      "category_id": "1658310421102081",
      "category_slug": "bicycles",
      "condition": "Used - Good",
      "delivery_types": [
        "IN_PERSON"
      ],
      "is_live": true,
      "is_pending": false,
      "is_shipping_offered": false,
      "is_sold": false,
      "listing_status": "AVAILABLE",
      "location_vanity": "austin",
      "messaging_enabled": true,
      "seller_join_time": "2008-01-14T16:37:26+00:00",
      "share_uri": "https://www.facebook.com/marketplace/item/1114608241188932/",
      "source": "logged_out_public_view",
      "title_base": "Bike"
    }
  },
  "cursor": null,
  "has_more": null
}

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:

{
  "ok": false,
  "error": {
    "code": "not_found",
    "message": "The platform says this profile, post or item does not exist.",
    "retryable": false
  },
  "credits_charged": 0,
  "request_id": "req_087cff4cc1cf96dd8d371d84"
}