Marketplace Search
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
legacy - Risk:
read - Catalog version:
scrape-creators-2026.07.12.1 - Descriptor hash:
f847dc3ba761af02c5a65ea9ad5b021191c5d943f0a3527508ab5859370bcf40
Use this when you need ScrapeCreators Facebook Marketplace data from GET /v1/facebook/marketplace/search for Marketplace Search. Searches Facebook Marketplace listings by keyword and lat/lng. Supports pagination with the returned cursor. Pass the cursor value back as-is. When sort_by is creation_time_descend, Facebook can still return slightly different ordering between identical requests. For alerting/new-item workflows, scrape multiple pages and dedupe by listing id instead of relying on page 1 item order being identical every run. Returns the ScrapeCreators response in the standard MCP envelope with ok/data/error/meta. This is read-only. Requires the portal grant header and a ScrapeCreators BYOK API key.
Request Body
{
"jsonrpc": "2.0",
"id": "scrape-creators-scrape-creators-facebook-marketplace-get-v1-facebook-marketplace-search-example",
"method": "tools/call",
"params": {
"name": "scrape-creators.scrape_creators_facebook_marketplace_get_v1_facebook_marketplace_search",
"arguments": {
"lat": "",
"lng": "",
"body": "",
"count": "",
"query": "",
"cursor": "",
"params": "",
"compact": "",
"sort_by": "suggested",
"condition": "new"
}
}
}
Arguments Schema
{
"type": "object",
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null,
"description": "Latitude for the search location"
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null,
"description": "Longitude for the search location"
},
"body": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Body",
"default": null,
"description": "JSON request body for provider endpoints that accept one."
},
"count": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Count",
"default": null,
"description": "Number of listings to return"
},
"query": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Query",
"default": null,
"description": "Search keyword"
},
"cursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cursor",
"default": null,
"description": "Opaque pagination cursor returned from the previous response. Pass it back as-is."
},
"params": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"title": "Params",
"default": null,
"description": "Optional advanced query parameter object. Prefer the documented top-level parameters when available."
},
"compact": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Compact",
"default": null,
"description": "When true, trims large list payloads before returning them to the agent."
},
"sort_by": {
"enum": [
"suggested",
"distance_ascend",
"creation_time_descend",
"price_ascend",
"price_descend"
],
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sort By",
"default": null,
"description": "Sort order"
},
"condition": {
"enum": [
"new",
"used_like_new",
"used_good",
"used_fair"
],
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Condition",
"default": null,
"description": "Condition filter"
},
"max_items": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Max Items",
"default": null,
"description": "Maximum number of list items to return when compacting provider responses."
},
"max_price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Max Price",
"default": null,
"description": "Maximum listing price"
},
"min_price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Min Price",
"default": null,
"description": "Minimum listing price"
},
"radius_km": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Radius Km",
"default": null,
"description": "Search radius in kilometers"
},
"date_listed": {
"enum": [
"all",
"1",
"7",
"30",
"last_24_hours",
"last_7_days",
"last_30_days"
],
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Date Listed",
"default": null,
"description": "Date listed filter"
},
"include_raw": {
"type": "boolean",
"title": "Include Raw",
"default": false,
"description": "When true, returns both compact normalized data and the raw provider payload; this can be large."
},
"path_params": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"title": "Path Params",
"default": null,
"description": "Path template values for endpoints that expose path placeholders."
},
"availability": {
"enum": [
"available",
"sold",
"all"
],
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Availability",
"default": null,
"description": "Availability filter"
},
"search_query": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Search Query",
"default": null,
"description": "Alias for query: Search keyword"
},
"delivery_method": {
"enum": [
"all",
"local_pickup",
"shipping"
],
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Delivery Method",
"default": null,
"description": "Delivery filter"
},
"cache_ttl_seconds": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Cache Ttl Seconds",
"default": null,
"description": "Optional cache lifetime for idempotent GET requests."
},
"confirm_high_cost": {
"type": "boolean",
"title": "Confirm High Cost",
"default": false,
"description": "Set true only when intentionally running a high-credit or write-intent request."
}
},
"additionalProperties": false
}
Output Schema
{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the local or provider operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Bounded operation result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe request, pagination, cache, and timing metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe structured error when ok is false."
}
},
"description": "Scrape Creators MCP normalized response envelope.",
"additionalProperties": false
}
Code Examples
- cURL
- Node.js
- Python
curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "scrape-creators-scrape-creators-facebook-marketplace-get-v1-facebook-marketplace-search-example",
"method": "tools/call",
"params": {
"name": "scrape-creators.scrape_creators_facebook_marketplace_get_v1_facebook_marketplace_search",
"arguments": {
"lat": "",
"lng": "",
"body": "",
"count": "",
"query": "",
"cursor": "",
"params": "",
"compact": "",
"sort_by": "suggested",
"condition": "new"
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "scrape-creators-scrape-creators-facebook-marketplace-get-v1-facebook-marketplace-search-example",
"method": "tools/call",
"params": {
"name": "scrape-creators.scrape_creators_facebook_marketplace_get_v1_facebook_marketplace_search",
"arguments": {
"lat": "",
"lng": "",
"body": "",
"count": "",
"query": "",
"cursor": "",
"params": "",
"compact": "",
"sort_by": "suggested",
"condition": "new"
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "scrape-creators-scrape-creators-facebook-marketplace-get-v1-facebook-marketplace-search-example",
"method": "tools/call",
"params": {
"name": "scrape-creators.scrape_creators_facebook_marketplace_get_v1_facebook_marketplace_search",
"arguments": {
"lat": "",
"lng": "",
"body": "",
"count": "",
"query": "",
"cursor": "",
"params": "",
"compact": "",
"sort_by": "suggested",
"condition": "new"
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"ok": true,
"message": "Tool scrape-creators.scrape_creators_facebook_marketplace_get_v1_facebook_marketplace_search executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}