Parse a Marketplace link
What a facebook.com Marketplace link is (a listing, a search, a category or a city page), with its listing id, city, category and query, and the tool and arguments that read it, the link’s filters translated into this API’s parameters. Fetches nothing and is free.
POST
/resolve-url Utilities https://api.fetchlayer.dev/facebook-marketplace/resolve-url Headers
Authorization string required Bearer token — your FetchLayer API key.
Parameters
url string required Any facebook.com Marketplace URL.
format string optional json or markdown. (default: json)
Response Fields
resolve-url
Parse a Marketplace link
transport string The data source: always "facebook-marketplace".
notes string[] Caveats you can act on, such as a list that stopped early. Empty when there are none.
type string listing, search, category, city or unknown.
listingId / city / category / query string | null What the link carries.
next object | null The tool and arguments that read it: { tool, arguments }.
Request
curl -X POST "https://api.fetchlayer.dev/facebook-marketplace/resolve-url" \
-H "Authorization: Bearer ss-your-key" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.facebook.com/marketplace/nyc/search/?query=bike&maxPrice=200"}'Response
{
"transport": "facebook-marketplace",
"notes": [],
"type": "search",
"listingId": null,
"city": "nyc",
"category": null,
"query": "bike",
"next": {
"tool": "facebook_marketplace_search_listings",
"arguments": {
"query": "bike",
"city": "nyc",
"maxPrice": 200
}
}
}