# Facebook Marketplace API

Find used listings near a city.

Your agent can search Facebook Marketplace by keyword, location and price. One Austin bike search returned 13 listings.

One search page. Prices are listing fields, and seller-entered titles can disagree with them.

Provider in the worked example: AnyAPI.

Price shown for this route: 0.22¢ for the tested request.

## Choose how to read Marketplace listings.

Use an API for structured search results or open Marketplace to browse listings yourself.

Prices and access checked on 13 November 2026.

| Option | Price and billing | Strength | Good to know | Access |
| --- | --- | --- | --- | --- |
| AnyAPI (Through TaskFuel) | $0.0022. Tested request from your TaskFuel balance. Austin, Texas · bikes · $100–$500 · used, good condition | Keyword and location search with structured price fields and source links. | One search page. Prices are listing fields, and seller-entered titles can disagree with them. | TaskFuel |
| Facebook Marketplace (Browse on Facebook) | $0 to browse. Web interface. Individual items carry seller-listed prices. | Browse the listings in their original context. | Manual browsing. | Direct |

- [AnyAPI: provider reference](https://getanyapi.com/api/facebook/marketplace). Checked 2026-11-13.
- [Facebook Marketplace: provider reference](https://www.facebook.com/marketplace/). Checked 2026-11-13.


## What it can do

### Search public Marketplace listings

Pass a keyword, coordinates and optional filters. Our Austin bike search returned titles, listed prices and item links, plus a cursor for another page.

Price: $0.0022 for the tested request.


## A real example

Tested on 2026-11-13 through AnyAPI.

The first page returned 13 listings with price fields from $100 to $400. One title mentioned $160 while its price field said $100.

Your agent asked: Find used bikes around Austin, Texas, listed between $100 and $500. Show the listed price, city and source link.

Returned in this test:

- First listing: Small Road Bike · $100 · Austin, Texas
- Another listing: Retrospec bike · $150 · Austin, Texas
- Nearby listing: Linus Bike · $200 · Buda, Texas
- Price mismatch: Huffy listing · $100 price field · $160 in the title

Charged in this test: $0.0022.

One search page. Prices are listing fields, and seller-entered titles can disagree with them.




## Try the API request

Use your TaskFuel API key as TASKFUEL_API_KEY in your terminal or server. Keep it out of browser code.

### 1. Check the price

This request checks the price without paying. This is the exact request used in the dated example.

```sh
curl --fail-with-body https://app.taskfuel.ai/v1/call \
  -H "Authorization: Bearer $TASKFUEL_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'TASKFUEL_REQUEST'
{
  "url": "https://api.getanyapi.com/v1/run/facebook.marketplace",
  "method": "POST",
  "body": {
    "query": "bike",
    "lat": "30.2677",
    "lng": "-97.7475",
    "priceMin": 100,
    "priceMax": 500,
    "condition": "used_good"
  },
  "dryRun": true
}
TASKFUEL_REQUEST
```

### 2. Run the request

Review amount_usd in the quote. To pay and run, change dryRun to false and add maxAmountUsd with that approved amount inside the same JSON object. Keep the inputs unchanged; this limit applies to one call.

### 3. Read the result

Read output.data.listings[].title, priceAmount, priceFormatted, locationName and url. output.data.hasNextPage and nextCursor describe pagination.



[Setup and API reference](https://taskfuel.ai/docs/) · [Job polling and timeout recovery](https://app.taskfuel.ai/using.md)


## Connect your agent

Read the [setup guide](https://taskfuel.ai/docs/setup/) and choose the connection your agent supports.

Use one TaskFuel account and prepaid balance. Inspect the provider and request quote before a paid call, then review the returned response and recorded charge.



## When to use it

### Shortlist bikes in a price range.

Your agent can put returned listing titles, asking prices and locations in a table with links back to the listings.

### Flag conflicting prices.

A title can contain a different amount from the listing price field. The Austin search returned one example of that.




## Questions

### Does Facebook Marketplace have an API for this?

The TaskFuel example uses AnyAPI, a third-party service for searching public listings.

### Did the results match the filters?

All 13 returned price fields were inside $100 to $500. The payload requested used items in good condition. The response supplied no condition field for individual listings.

### Can this search contact sellers?

This guide covers reading public listing results. You can open an item link to continue on Marketplace.

### What did the example cost?

The example cost $0.0022 on 13 November 2026. Your agent shows the price for your own request before it pays.

### Do I need a separate provider account?

A TaskFuel connection is enough. Your agent pays from your TaskFuel balance.

## Related tool guides

- [Read retailer prices for the same item](https://taskfuel.ai/tools/price-comparison-api/)
- [Compare Mercari listing access](https://taskfuel.ai/tools/mercari-api/)


## Reference

- [Read this guide on the website](https://taskfuel.ai/tools/facebook-marketplace-api/).
- [Browse providers and capabilities](https://taskfuel.ai/catalog/).
- [Pricing](https://taskfuel.ai/pricing/).
- [Agent instructions](https://taskfuel.ai/llms.txt).
