APIDataE-commerce

Facebook Marketplace search

Search for marketplace with the Facebook API. The sample response includes prices and titles. Use it to surface relevant records in a search or discovery tool. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.

Selected price
$0.00188 / callPublished pricing
Sellers / APIs
2 / 2
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Facebook Marketplace search

Prepare your request, then continue with your agent.

Selected price

$0.00188 / call

Provider
API
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Search keyword
Latitude for the search location
Longitude for the search location
Optional parameters (10)
Numeric Facebook Marketplace category ID. Listing results include this value as category_id.
Search radius in kilometers
Minimum listing price
Maximum listing price
Facebook Marketplace sort option. creation_time_descend usually orders the first pages newest first, but Facebook can insert newer listings on later cursor pages.
Delivery filter
Condition filter
Facebook Marketplace date filter. Uses the same calendar-day buckets as the UI, so last_24_hours can include listings from the prior calendar day.
Availability filter
Opaque pagination cursor returned from the previous response. Pass it back as-is.

Sample response

{
  "credits_charged": 1,
  "credits_remaining": 49997831258,
  "cursor": "eyJwZyI6MCwiYjJj....",
  "has_next_page": true,
  "listings": [
    {
      "category_id": "1658310421102081",
      "creation_time": null,
      "delivery_types": [
        "IN_PERSON"
      ],
      "id": "1880804689276480",
      "is_hidden": false,
      "is_live": true,
      "is_pending": false,
      "is_sold": false,
      "is_viewer_seller": false,
      "listing_date_text": null,
      "location": {
        "city": "Austin",
        "city_page_id": "106224666074625",
        "display_name": "Austin, Texas",
        "state": "TX"
      },
      "price": {
        "amount": 300,
        "amount_with_offset_in_currency": 30000,
        "formatted_amount": "$300"
      },
      "primary_photo": {
        "id": "742022888999863",
        "url": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.84726-6/696326464_742022902333195_6718077421452400338_n.jpg?stp=c43.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=106&ccb=1-7&_nc_sid=92e707&_nc_ohc=dzY2b4-6EowQ7kNvwFDgohs&_nc_oc=AdomRHPRV49gouEOWqxlFxuEeLcoc5cBjRhXhi91oslqlUNdZ9EV-te1C_pvL-eyVzs&_nc_zt=14&_nc_ht=scontent-bos5-1.xx&_nc_gid=GvS1066o3EBgpWuqL6BQZA&_nc_ss=7e289&oh=00_Af6M2kbWMsKLjEHmSUv6oiPJt3skIfetxG3oB2YOIiDuTg&oe=6A0D6E08"
      },
      "story_key": "26881002338175809",
      "story_type": "POST",
      "strikethrough_price": null,
      "title": "ANCHEER E Bike",
      "url": "https://www.facebook.com/marketplace/item/1880804689276480/"
    }
  ],
  "success": true
}

Response result

Response structure

Inferred from examples
  • credits_chargedinteger
  • credits_remaininginteger
  • cursorstring
  • has_next_pageboolean
  • listingsobject[]
    • category_idstring
    • creation_timenull
    • delivery_typesstring[]
    • idstring
    • is_hiddenboolean
    • is_liveboolean
    • is_pendingboolean
    • is_soldboolean
    • is_viewer_sellerboolean
    • listing_date_textnull
    • locationobject
      • citystring
      • city_page_idstring
      • display_namestring
      • statestring
    • priceobject
      • amountinteger
      • amount_with_offset_in_currencyinteger
      • formatted_amountstring
    • primary_photoobject
      • idstring
      • urlstring
    • story_keystring
    • story_typestring
    • strikethrough_pricenull
    • titlestring
    • urlstring
  • successboolean

Sellers

SellerPricingRequests · 30dPerformanceAccess
Facebook Marketplace Browse · POST · View API reference
$0.00015 / call—Select to load statistics
—successP50—
Current
Facebook Marketplace — Marketplace Search · GET · View API reference
$0.00188 / call—
—successP50—
Loading...
Selected pricing · scrapecreatorsUSD / call
Unit price
$0.00188

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

calls

Total $0.188

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search?availability=available&category_id=1658310421102081&condition=used_good&date_listed=7&delivery_method=local_pickup&lat=30.2677&lng=-97.7475&max_price=500.0&min_price=100.0&query=bike&radius_km=65.0&sort_by=creation_time_descend' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
queryURL query parametersquerystringYesSearch keyword
category_idURL query parametersquerystringNoNumeric Facebook Marketplace category ID. Listing results include this value as category_id.
latURL query parametersquerynumberYesLatitude for the search location
lngURL query parametersquerynumberYesLongitude for the search location
radius_kmURL query parametersquerynumberNoSearch radius in kilometers
min_priceURL query parametersquerynumberNoMinimum listing price
max_priceURL query parametersquerynumberNoMaximum listing price
sort_byURL query parametersquerystringNoFacebook Marketplace sort option. creation_time_descend usually orders the first pages newest first, but Facebook can insert newer listings on later cursor pages.

enum: "suggested", "distance_ascend", "creation_time_descend", "price_ascend", "price_descend"

delivery_methodURL query parametersquerystringNoDelivery filter

enum: "all", "local_pickup", "shipping"

conditionURL query parametersquerystringNoCondition filter

enum: "new", "used_like_new", "used_good", "used_fair"

date_listedURL query parametersquerystringNoFacebook Marketplace date filter. Uses the same calendar-day buckets as the UI, so last_24_hours can include listings from the prior calendar day.

enum: "all", "1", "7", "30", "last_24_hours", "last_7_days", "last_30_days"

availabilityURL query parametersquerystringNoAvailability filter

enum: "available", "sold", "all"

cursorURL query parametersquerystringNoOpaque pagination cursor returned from the previous response. Pass it back as-is.

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.

Official example
{
  "credits_charged": 1,
  "credits_remaining": 49997831258,
  "cursor": "eyJwZyI6MCwiYjJj....",
  "has_next_page": true,
  "listings": [
    {
      "category_id": "1658310421102081",
      "creation_time": null,
      "delivery_types": [
        "IN_PERSON"
      ],
      "id": "1880804689276480",
      "is_hidden": false,
      "is_live": true,
      "is_pending": false,
      "is_sold": false,
      "is_viewer_seller": false,
      "listing_date_text": null,
      "location": {
        "city": "Austin",
        "city_page_id": "106224666074625",
        "display_name": "Austin, Texas",
        "state": "TX"
      },
      "price": {
        "amount": 300,
        "amount_with_offset_in_currency": 30000,
        "formatted_amount": "$300"
      },
      "primary_photo": {
        "id": "742022888999863",
        "url": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.84726-6/696326464_742022902333195_6718077421452400338_n.jpg?stp=c43.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=106&ccb=1-7&_nc_sid=92e707&_nc_ohc=dzY2b4-6EowQ7kNvwFDgohs&_nc_oc=AdomRHPRV49gouEOWqxlFxuEeLcoc5cBjRhXhi91oslqlUNdZ9EV-te1C_pvL-eyVzs&_nc_zt=14&_nc_ht=scontent-bos5-1.xx&_nc_gid=GvS1066o3EBgpWuqL6BQZA&_nc_ss=7e289&oh=00_Af6M2kbWMsKLjEHmSUv6oiPJt3skIfetxG3oB2YOIiDuTg&oe=6A0D6E08"
      },
      "story_key": "26881002338175809",
      "story_type": "POST",
      "strikethrough_price": null,
      "title": "ANCHEER E Bike",
      "url": "https://www.facebook.com/marketplace/item/1880804689276480/"
    }
  ],
  "success": true
}

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# Facebook Marketplace search

Search for marketplace with the Facebook API. The sample response includes prices and titles. Use it to surface relevant records in a search or discovery tool. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
## Available implementations
litescrape · Facebook Marketplace Browse: https://openany.si/markets/apis/capabilities/facebook-marketplace-search?offering=05d07366-8731-469f-86f6-47e4b1d02fb0 · $0.00015 / call
scrapecreators · Facebook Marketplace — Marketplace Search: https://openany.si/markets/apis/capabilities/facebook-marketplace-search?offering=facfb6f5-6a9a-4a22-ac42-2a4c267fa1fc · $0.00188 / call

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/facebook-marketplace-search
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search
Price: $0.00188 / call
Provider: scrapecreators
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search?availability=available&category_id=1658310421102081&condition=used_good&date_listed=7&delivery_method=local_pickup&lat=30.2677&lng=-97.7475&max_price=500.0&min_price=100.0&query=bike&radius_km=65.0&sort_by=creation_time_descend' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "Facebook Marketplace — Marketplace Search",
  "endpoint": "https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search",
  "method": "GET",
  "content_type": "none",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Search keyword",
      "location": "query",
      "name": "query",
      "nullable": false,
      "required": true,
      "type": "string"
    },
    {
      "description": "Numeric Facebook Marketplace category ID. Listing results include this value as category_id.",
      "location": "query",
      "name": "category_id",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Latitude for the search location",
      "location": "query",
      "name": "lat",
      "nullable": false,
      "required": true,
      "type": "number"
    },
    {
      "description": "Longitude for the search location",
      "location": "query",
      "name": "lng",
      "nullable": false,
      "required": true,
      "type": "number"
    },
    {
      "description": "Search radius in kilometers",
      "location": "query",
      "name": "radius_km",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "Minimum listing price",
      "location": "query",
      "name": "min_price",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "Maximum listing price",
      "location": "query",
      "name": "max_price",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "Facebook Marketplace sort option. creation_time_descend usually orders the first pages newest first, but Facebook can insert newer listings on later cursor pages.",
      "enum_values": [
        "suggested",
        "distance_ascend",
        "creation_time_descend",
        "price_ascend",
        "price_descend"
      ],
      "location": "query",
      "name": "sort_by",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Delivery filter",
      "enum_values": [
        "all",
        "local_pickup",
        "shipping"
      ],
      "location": "query",
      "name": "delivery_method",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Condition filter",
      "enum_values": [
        "new",
        "used_like_new",
        "used_good",
        "used_fair"
      ],
      "location": "query",
      "name": "condition",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Facebook Marketplace date filter. Uses the same calendar-day buckets as the UI, so last_24_hours can include listings from the prior calendar day.",
      "enum_values": [
        "all",
        "1",
        "7",
        "30",
        "last_24_hours",
        "last_7_days",
        "last_30_days"
      ],
      "location": "query",
      "name": "date_listed",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Availability filter",
      "enum_values": [
        "available",
        "sold",
        "all"
      ],
      "location": "query",
      "name": "availability",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Opaque pagination cursor returned from the previous response. Pass it back as-is.",
      "location": "query",
      "name": "cursor",
      "nullable": false,
      "required": false,
      "type": "string"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "fixed",
    "priceMicroUsd": "1880",
    "rounding": null,
    "unit": "call",
    "unitQuantity": null
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Official example",
      "request": {
        "body": null,
        "headers": {},
        "path": {},
        "query": {
          "availability": "available",
          "category_id": "1658310421102081",
          "condition": "used_good",
          "date_listed": "7",
          "delivery_method": "local_pickup",
          "lat": 30.2677,
          "lng": -97.7475,
          "max_price": 500.0,
          "min_price": 100.0,
          "query": "bike",
          "radius_km": 65.0,
          "sort_by": "creation_time_descend"
        }
      },
      "response_body": {
        "credits_charged": 1,
        "credits_remaining": 49997831258,
        "cursor": "eyJwZyI6MCwiYjJj....",
        "has_next_page": true,
        "listings": [
          {
            "category_id": "1658310421102081",
            "creation_time": null,
            "delivery_types": [
              "IN_PERSON"
            ],
            "id": "1880804689276480",
            "is_hidden": false,
            "is_live": true,
            "is_pending": false,
            "is_sold": false,
            "is_viewer_seller": false,
            "listing_date_text": null,
            "location": {
              "city": "Austin",
              "city_page_id": "106224666074625",
              "display_name": "Austin, Texas",
              "state": "TX"
            },
            "price": {
              "amount": 300,
              "amount_with_offset_in_currency": 30000,
              "formatted_amount": "$300"
            },
            "primary_photo": {
              "id": "742022888999863",
              "url": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.84726-6/696326464_742022902333195_6718077421452400338_n.jpg?stp=c43.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=106&ccb=1-7&_nc_sid=92e707&_nc_ohc=dzY2b4-6EowQ7kNvwFDgohs&_nc_oc=AdomRHPRV49gouEOWqxlFxuEeLcoc5cBjRhXhi91oslqlUNdZ9EV-te1C_pvL-eyVzs&_nc_zt=14&_nc_ht=scontent-bos5-1.xx&_nc_gid=GvS1066o3EBgpWuqL6BQZA&_nc_ss=7e289&oh=00_Af6M2kbWMsKLjEHmSUv6oiPJt3skIfetxG3oB2YOIiDuTg&oe=6A0D6E08"
            },
            "story_key": "26881002338175809",
            "story_type": "POST",
            "strikethrough_price": null,
            "title": "ANCHEER E Bike",
            "url": "https://www.facebook.com/marketplace/item/1880804689276480/"
          }
        ],
        "success": true
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 13

    Review these request fields before running. Keep the published provider and request method unchanged.

    query
    Search keyword
    category_id
    Numeric Facebook Marketplace category ID. Listing results include this value as category_id.
    lat
    Latitude for the search location
    lng
    Longitude for the search location
    radius_km
    Search radius in kilometers
    min_price
    Minimum listing price
    max_price
    Maximum listing price
    sort_by
    Facebook Marketplace sort option. creation_time_descend usually orders the first pages newest first, but Facebook can insert newer listings on later cursor pages.
    delivery_method
    Delivery filter
    condition
    Condition filter
    date_listed
    Facebook Marketplace date filter. Uses the same calendar-day buckets as the UI, so last_24_hours can include listings from the prior calendar day.
    availability
    Availability filter
    cursor
    Opaque pagination cursor returned from the previous response. Pass it back as-is.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search?availability=available&category_id=1658310421102081&condition=used_good&date_listed=7&delivery_method=local_pickup&lat=30.2677&lng=-97.7475&max_price=500.0&min_price=100.0&query=bike&radius_km=65.0&sort_by=creation_time_descend' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "credits_charged": 1,
      "credits_remaining": 49997831258,
      "cursor": "eyJwZyI6MCwiYjJj....",
      "has_next_page": true,
      "listings": [
        {
          "category_id": "1658310421102081",
          "creation_time": null,
          "delivery_types": [
            "IN_PERSON"
          ],
          "id": "1880804689276480",
          "is_hidden": false,
          "is_live": true,
          "is_pending": false,
          "is_sold": false,
          "is_viewer_seller": false,
          "listing_date_text": null,
          "location": {
            "city": "Austin",
            "city_page_id": "106224666074625",
            "display_name": "Austin, Texas",
            "state": "TX"
          },
          "price": {
            "amount": 300,
            "amount_with_offset_in_currency": 30000,
            "formatted_amount": "$300"
          },
          "primary_photo": {
            "id": "742022888999863",
            "url": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.84726-6/696326464_742022902333195_6718077421452400338_n.jpg?stp=c43.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=106&ccb=1-7&_nc_sid=92e707&_nc_ohc=dzY2b4-6EowQ7kNvwFDgohs&_nc_oc=AdomRHPRV49gouEOWqxlFxuEeLcoc5cBjRhXhi91oslqlUNdZ9EV-te1C_pvL-eyVzs&_nc_zt=14&_nc_ht=scontent-bos5-1.xx&_nc_gid=GvS1066o3EBgpWuqL6BQZA&_nc_ss=7e289&oh=00_Af6M2kbWMsKLjEHmSUv6oiPJt3skIfetxG3oB2YOIiDuTg&oe=6A0D6E08"
          },
          "story_key": "26881002338175809",
          "story_type": "POST",
          "strikethrough_price": null,
          "title": "ANCHEER E Bike",
          "url": "https://www.facebook.com/marketplace/item/1880804689276480/"
        }
      ],
      "success": true
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Facebook Marketplace search with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.