# SocialFetch Facebook Marketplace Search

> SocialFetch Facebook Marketplace Search is a paid API for AI agents from api.socialfetch.dev, paid per call via x402, $0.014/call, status unknown (last checked 2026-09-15).

Search Facebook Marketplace listings by keyword near a given latitude and longitude, with filters for price, condition, radius, and sort order.

## Facts

- Endpoint: GET https://api.socialfetch.dev/v1/facebook/marketplace/search
- Price: $0.014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/socialfetch-facebook-marketplace-search-3b8e5b22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q1_ifFm5dQB47Nys6A7CF

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability socialfetch-facebook-marketplace-search-3b8e5b22
```

Example prompt: Search Facebook Marketplace for used road bikes within 30km of San Francisco (lat 37.7749, lng -122.4194), priced between $200 and $800, in good or like-new condition, and sort results by price ascending — show me the top 10 listings.

## When to prefer this

Use this endpoint when you need to search Facebook Marketplace listings by keyword and geographic location. Prefer this over general web search when you need structured listing data (price, condition, availability) from Facebook Marketplace specifically, and when location-proximity filtering is important. It is well-suited for price comparison, local deal finding, and inventory browsing workflows.

## Known failure modes

- Missing required parameters (query, lat, lng) returns a 400 validation error
- Invalid enum value for sortBy, condition, or deliveryMethod returns a 400 error
- No listings found for the given query and location returns an empty results list
- Invalid or expired pagination cursor may return an error or restart results
- Rate limiting or upstream Facebook availability issues may return a 5xx error
- Extremely broad queries with no radius constraint may return inconsistent or slow results

## How this service works

Search Facebook Marketplace listings by keyword near a latitude and longitude.

## Output

Returns a list of Facebook Marketplace listings matching the query and filters, including titles, prices, conditions, locations, images, and a pagination cursor for fetching additional results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90,
       "description": "Latitude for the marketplace search location."
      },
      "lng": {
       "type": "number",
       "maximum": 180,
       "minimum": -180,
       "description": "Longitude for the marketplace search location."
      },
      "count": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "Deprecated alias for `limit`. When both are set, `limit` wins."
      },
      "limit": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "Optional number of listings to return (1–100). Prefer this over `count`."
      },
      "query": {
       "type": "string",
       "maxLength": 512,
       "minLength": 1,
       "description": "Search query text for marketplace listings."
      },
      "cursor": {
       "type": "string",
       "minLength": 1,
       "description": "Opaque pagination cursor returned by a previous response."
      },
      "sortBy": {
       "enum": [
        "suggested",
        "distanceAscend",
        "creationTimeDescend",
        "priceAscend",
        "priceDescend"
       ],
       "type": "string",
       "description": "Optional sort order for marketplace listings. `suggested`: Facebook's default relevance ranking. `distanceAscend`: nearest first. `creationTimeDescend`: newest listings first. `priceAscend`/`priceDescend`: lowest/highest price first."
      },
      "maxPrice": {
       "type": "number",
       "minimum": 0,
       "description": "Optional maximum listing price. Must be greater than or equal to `minPrice` when both are set."
      },
      "minPrice": {
       "type": "number",
       "minimum": 0,
       "description": "Optional minimum listing price. Must be less than or equal to `maxPrice` when both are set."
      },
      "radiusKm": {
       "type": "number",
       "description": "Optional search radius in kilometers.",
       "exclusiveMinimum": 0
      }
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/socialfetch-facebook-marketplace-search-3b8e5b22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.socialfetch.dev](https://www.zero.xyz/host/api.socialfetch.dev/llms.txt)
