How to search Facebook Marketplace by city and keyword
Pull a city-scoped table of Facebook Marketplace listings with price, location, photo and sold or pending status
On this page
You have two city searches to run for 20 used desk listings each, one in Chicago and one in New York, and you need a table you can sort by price and pending status before choosing where to source inventory. The deliverable is a city-scoped table with one row per listing and search_city added so the two runs stay separate. The values in this guide are a design, not a run result
Task and deliverable table
The table columns come from the output contract: title, price, originalPrice, city, state, isSold, isPending, deliveryTypes, url, plus search_city, which you add when you combine searches. Use price for sorting; it is a number or null. formattedPrice is available for display, while originalPrice is the struck-through earlier price when the seller lowered it
Values here are placeholders showing the shape
| title | price | originalPrice | city | state | isSold | isPending | deliveryTypes | url | search_city |
|---|---|---|---|---|---|---|---|---|---|
| (title) | (number or null) | (string or null) | (string or null) | (string or null) | (true or false) | (true or false) | (array) | (URL) | chicago or nyc |
A null price is allowed by the contract, and formattedPrice can carry the display string. Keep the row in the table and decide by hand whether to discard it
Example input and output fields
Example input, with a placeholder search phrase and a Marketplace city slug: {"city":"chicago","query":"used standing desk","limit":20}. Replace the values with your own. The input fields used here are city, query and optional limit; city and query are required. city takes 2 to 60 characters in lowercase slug form, and query takes 1 to 100 characters
The response has a results array with a maximum of 20 items. Each item has required id, title and url fields. The contract also defines price, formattedPrice, originalPrice, city, state, photoUrl, isSold, isPending, deliveryTypes and categoryId. Read price as a number or null, and use formattedPrice when you need the display string
Choose the city and read status fields
For city, use the Marketplace slug from the Marketplace URL, such as chicago, nyc or la. An unknown city slug is not rejected: Facebook silently searches another city, and that run is still billed. Check the slug against the Marketplace URL before you run, so a typo does not spend a call on the wrong location
After the run, read isSold and isPending as booleans. A row with isPending true is marked pending; a row with isSold true is marked sold. Sort by price, then use those two flags to group rows by status. city, state and deliveryTypes help you inspect location and fulfilment values before you commit to a market
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search Facebook Marketplace for 20 used desk listings in Chicago and 20 in New York. Check the current inputs and price of apify.facebook_marketplace.search before running anything. Call the tool once with city "chicago", query "used standing desk" and limit 20, then once with city "nyc", query "used standing desk" and limit 20. Add search_city to each row. Return a table with title, price, originalPrice, city, state, isSold, isPending, deliveryTypes, url and search_city, sorted by search_city then price, and keep isPending and isSold visible. Do not invent listings.
Example values: chicago, nyc and used standing deskThe city slugs and query in the prompt are Example values; replace them with your own. Check the slug before the run, because an unknown slug can still be billed. Companion article: find Marketplace bike listings by price
Estimated tool cost
The price block lists POST /v1/runs with toolId apify.facebook_marketplace.search, and the unit is max_call at up to $0.15 per call. The catalog describes max_call as "Maximum per call. Successful runs settle at the actual Apify charge, with no markup. Failed runs and runs without results are not charged." Read the price through the Purrkey catalog on November 19, 2026. The totals below are ceilings, not settled charges. Agent model fees are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| One city search, up to 20 listings | calls x max price | $0.15 per call | 1 call | $0.15 |
| Two-city comparison, 20 each | calls x max price | $0.15 per call | 2 calls | $0.30 |
| Five-city weekly sweep | calls x max price | $0.15 per call | 5 calls | $0.75 |
A single city search is the first step. If a run fails or returns no results, the price rule says it is not charged. The two-city plan uses 2 calls, so the ceiling is $0.30
Run the first search
Open the tool page and run the first city search with your chosen city, query and limit: apify.facebook_marketplace.search
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 Marketplace.FAQ
How do I search Facebook Marketplace by city and keyword?
Run apify.facebook_marketplace.search with a city slug and a query, and set limit to the number of listings you want up to 20. The output is a results array with listing fields such as title, price, location and sale status.
What city value should I use?
Use the Marketplace city slug as it appears in facebook.com/marketplace/<city>, such as chicago, nyc or la. An unknown slug is not rejected, and the run is still billed even if Facebook searches another city.
What fields come back from apify.facebook_marketplace.search?
The required fields are results, and each result has required id, title and url fields. The contract also defines price, formattedPrice, originalPrice, city, state, photoUrl, isSold, isPending, deliveryTypes and categoryId.
How many listings can one search return?
The optional limit defaults to 10 and accepts an integer from 1 to 20. The results array has a maximum of 20 items.
How much does a two-city comparison cost?
Two calls at up to $0.15 per call have a ceiling of $0.30. Successful runs settle at the actual Apify charge, and failed runs or runs without results are not charged.
What do isSold and isPending tell me?
They are boolean fields in each result. A row with isPending true is marked pending, and a row with isSold true is marked sold.
What happens if the city slug is unknown?
The input schema does not reject an unknown city slug. Facebook silently searches another city, and that run is still billed.
Next step
Try this with Facebook Marketplace
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.