Commerce5 min readBy Purrkey teamUpdated

How to find local Facebook Marketplace bike listings by price

Search Facebook Marketplace by keyword near a latitude and longitude and get normalized listing titles, prices, locations, and images

On this page

You need 25 used bike listings within 7 days near Austin to compare asking prices before making offers. Call anyapi.facebook.marketplace with a keyword, a latitude and longitude, and a price range, then review the normalized rows for titles, prices, locations, dates, delivery options, and links

The deliverable is a worksheet with one row per listing. The tool returns normalized JSON; you add a contact status column after review. No run has been executed for this guide, so the table below is a design, not a result

Example input and deliverable table

Example input, invented for this guide. Replace the coordinates and filters with the values for your own search

FieldExample valueUse
querybikeMarketplace keyword
lat30.2677Search latitude
lng-97.7475Search longitude
priceMin100Minimum whole currency units
priceMax500Maximum whole currency units
conditionused_goodCondition filter
dateListedlast_7_daysRecency filter
deliveryMethodlocal_pickupDelivery filter
sortprice_ascendSort order

The worksheet columns follow the fields that matter for an offer decision: title, priceFormatted, priceAmount, locationName, listingDateText, deliveryTypes, isSold, url, photoUrl, and contact status. Values here are placeholders showing the shape

titlepriceFormattedpriceAmountlocationNamelistingDateTextdeliveryTypesisSoldurlphotoUrlcontact status
Example bike title$180180Example neighborhoodListed 2 days agoIN_PERSONfalse(listing URL)(photo URL)(blank)

contact status is your own column. The output schema does not return it

Input fields and the search step

Agents call it through POST /v1/runs with toolId anyapi.facebook.marketplace. The contract requires query, lat, and lng. It also documents optional inputs such as priceMin, priceMax, condition, deliveryMethod, dateListed, availability, sort, and cursor

priceMin and priceMax are whole currency units. Set condition to used_good for the used-bike brief, dateListed to last_7_days for recency, deliveryMethod to local_pickup when you want to collect locally, and sort to price_ascend when asking-price order is the first comparison. Pass a previous response's nextCursor as cursor to fetch the next page

The price filter has a limit to note next to this step: Facebook may mix in a few suggested listings outside the priceMin and priceMax range. Check priceAmount on each row before you compare asking prices, because the search range is not a strict boundary

Reading the output for a contact decision

A successful response has found and data. When found is false, reason is not_found; the contract says a found: false answer is a successful call, not an error

Each item in data.listings carries the fields for your table. Use priceFormatted for display and priceAmount for numeric sorting or comparison. Check isSold, isLive, and isPending before you spend time on a row. listingDateText gives the age Facebook shows, while createdUtc is a UTC epoch timestamp in seconds and is null when the source does not report it

deliveryTypes lists delivery options the seller offers. locationName and url support the contact step, and photoUrl gives the image reference. For pagination, read hasNextPage and nextCursor; pass nextCursor back as cursor when you need more rows

Agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search Facebook Marketplace for used bike listings near Austin. Check the current inputs and price of anyapi.facebook.marketplace before running anything. Use query "bike", lat "30.2677", lng "-97.7475", priceMin 100, priceMax 500, condition "used_good", dateListed "last_7_days", deliveryMethod "local_pickup", sort "price_ascend". Run one page first. If fewer than 25 rows come back and hasNextPage is true, pass nextCursor as cursor for up to two more pages. Return a table with title, priceFormatted, priceAmount, locationName, listingDateText, deliveryTypes, isSold, url, photoUrl and contact status. Leave contact status blank. If found is false, return an empty table and the reason.

Replace the example values with your own search location and filters. The prompt asks for one page first so you can see the row count before you spend more calls on cursor pages

Estimated tool cost

The Purrkey catalog lists anyapi.facebook.marketplace at up to $0.0036 per call. The unit is max_call, which the price block defines as "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
Single pagecalls x max price$0.0036 per call1$0.0036
Three cursor pagescalls x max price$0.0036 per call3$0.0108

Agent model fees are not counted. A single page is 1 call at most $0.0036. A three-page run is 3 calls at most $0.0108

Next action

Open the Facebook Marketplace tool page to check the current inputs and price, then run the prompt above with your own coordinates and filters

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Facebook.
Explore Facebook tools and pricing

FAQ

How do I find local Facebook Marketplace bike listings by price?

Call anyapi.facebook.marketplace with query, lat, and lng, plus a priceMin and priceMax range. The response returns normalized listings with titles, prices, locations, dates, and image URLs.

What inputs does anyapi.facebook.marketplace take?

The contract requires query, lat, and lng. It documents optional inputs such as priceMin, priceMax, condition, deliveryMethod, dateListed, availability, sort, and cursor.

What output fields should I use to compare bike prices?

Use priceFormatted for display and priceAmount for numeric sorting or comparison. The table also uses title, locationName, listingDateText, deliveryTypes, isSold, url, and photoUrl.

Can Facebook Marketplace return listings outside my price range?

Yes. The contract says Facebook may mix in a few suggested listings outside the priceMin and priceMax range, so check priceAmount on each row before you compare asking prices.

How do I get the next page of Marketplace listings?

Read hasNextPage and nextCursor from the response. Pass the previous response's nextCursor as cursor to fetch the next page.

What happens when no Marketplace listings are found?

The response sets found to false and includes reason as not_found. The contract says a found: false answer is a successful call, not an error.

How much does a Facebook Marketplace search cost?

The catalog lists max_call at up to $0.0036 per call. A single page is 1 call at most $0.0036, and three cursor pages are 3 calls at most $0.0108.

Next step

Try this with Facebook

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Facebook tools

Share this article