Browsable Browsable Docs

Facebook Marketplace listing

Get a public Facebook Marketplace listing, including its price, description, condition, seller, location and photos when available. Login-only or unavailable listings return an error.

POST /v1/facebook/marketplace/item

Request Parameters

Name In Type Required Description
id body string No Listing id returned by search or category browsing.
item_id body string No Legacy alias for id. If multiple identifiers are supplied, they must agree.
url body string No Facebook Marketplace listing URL.

Response Structure

Async kickoff response

Polled run result response

Sync response

Declared output schema

Code Examples

Async + polling

RUN=$(curl -s -X POST "https://api.browsable.app/v1/facebook/marketplace/item" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.facebook.com/marketplace/item/1661028289028499/"}')
RUN_ID=$(echo "$RUN" | jq -r '.run_id')
POLL_DELAY=3
while true; do
RESULT=$(curl -s -H "Authorization: Bearer YOUR_API_KEY" "https://api.browsable.app/v1/runs/$RUN_ID")
STATUS=$(echo "$RESULT" | jq -r '.run_status')
if [[ "$STATUS" =~ ^(succeeded|failed|errored|cancelled|canceled|expired)$ ]]; then
echo "$RESULT"
break
fi
sleep "$(awk "BEGIN { print $POLL_DELAY * (0.9 + ($RANDOM % 21) / 100) }")"
POLL_DELAY=$((POLL_DELAY < 30 ? POLL_DELAY * 2 : 30))
[ "$POLL_DELAY" -gt 30 ] && POLL_DELAY=30
done

Sync

curl -X POST "https://api.browsable.app/v1/facebook/marketplace/item" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.facebook.com/marketplace/item/1661028289028499/","_run":{"async":false}}'