Commerce5 min readBy Purrkey teamUpdated

How to fetch a Facebook Marketplace listing by URL

Get normalized details for one Facebook Marketplace item, including price, location, photos, seller, and attributes

On this page

You have 40 Facebook Marketplace listing URLs from a competitor check and need asking prices, condition attributes and seller ratings before setting local pricing. Call anyapi.facebook.marketplace_item once for each URL and build a table of listing records that feeds a shortlist of comparable items and flags sold or pending listings

The worksheet below is the deliverable. Values here are placeholders showing the shape, and this article describes a design rather than an executed run

The table design

titlepriceFormattedcurrencylocationTextlistingDateTextattributesseller.nameseller.ratingseller.ratingCountisSoldisPendingshareUrl
(listing title)$0.00USD(city, region)Listed 4 months agoCondition: Used - Good(seller name)4.618falsefalse(listing URL)

The row is one listing. A second row would be another listing from the 40 URLs. The attributes column holds item specifics such as condition, and the table keeps isSold and isPending so the shortlist can separate live comparisons from listings that are sold or pending

Input for one listing

The catalog lists anyapi.facebook.marketplace_item; agents call it through POST /v1/runs with toolId anyapi.facebook.marketplace_item. The contract documents two input properties: id for the Facebook Marketplace item ID and url for the Facebook Marketplace item URL. Neither property is marked required

Supply one value from the listing URL or the item ID inside that URL. Example input: https://www.facebook.com/marketplace/item/1234567890123456/ (invented item ID). Replace it with a listing URL from your own set

One listing per call. The tool cannot return a batch of listings in one call, so 40 URLs mean 40 calls. An answer where found is false is a successful call and is still billed. Do not retry that answer as if it were an error; record it as a row with no data

Reading the output fields

The catalog describes the response as normalized JSON, with found and data. When found is false, reason is present and can be not_found: the source states the target does not exist, or returned nothing for it. When found is true, data carries the listing record

Use data.title for the item label and data.priceFormatted with data.priceAmount and data.currency for the asking price. data.locationText gives the listing location, and data.listingDateText gives the listing age Facebook shows, for example "Listed 4 months ago"

For condition and item specifics, read data.attributes, an array of objects with name, label and value. For seller checks, read data.seller.name, data.seller.rating and data.seller.ratingCount. The contract says seller.rating and seller.ratingCount are absent when the seller has no ratings or keeps them private, so an empty cell is a valid result

If the shortlist needs a visual check, data.photos is an array with url, caption, width and height. If the listing shows a previous price, data.strikethroughPriceFormatted carries the struck-through display value

The status flags drive the shortlist. data.isSold marks a sold listing, data.isPending marks a pending listing, and data.isLive can be kept as a separate check. data.shareUrl gives the canonical shareable Marketplace URL for the row. A related listing record guide is at the companion article

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch details
for 40 Facebook Marketplace listings. Check the current inputs and price
of anyapi.facebook.marketplace_item before running anything. Call the
tool once per listing, using either the id or the url value from each
listing URL. Return a table with title, priceFormatted, currency,
locationText, listingDateText, attributes, seller.name, seller.rating,
seller.ratingCount, isSold, isPending and shareUrl. Mark rows where
found is false and keep them in the table. Do not retry a found:false
answer as an error.

Example URL: https://www.facebook.com/marketplace/item/1234567890123456/
Add the other 39 URLs here.

Replace the example URL and the placeholder line with your own list. Keep the first run to 10 URLs so you can inspect the table shape before paying for 40 calls

Estimated tool cost

Prices from the Purrkey catalog, read November 13, 2026. The catalog lists the tool as max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
Check 10 listingscalls x max priceup to $0.0012 per call10$0.012
Check 40 listingscalls x max priceup to $0.0012 per call40$0.048

The 10-call check is a first batch. The 40-call check covers the whole competitor list. Model fees for the agent are not counted

Next action

Open the tool page at Facebook tools with marketplace_item and start with the 10 URL check. Keep the row table and the rows where found is false in the same sheet, then expand to 40 when the shape is clear

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 fetch a Facebook Marketplace listing by URL?

Call anyapi.facebook.marketplace_item with the url value from the listing, or with the item id from that URL. The response returns normalized JSON with found and data.

What fields does anyapi.facebook.marketplace_item output?

The output has found and data. The data object includes title, price, location, photos, seller, attributes, status flags and shareUrl.

What does found false mean for a Marketplace listing?

found:false with reason: not_found means the source states the target does not exist or returned nothing. The contract says that is a successful call, not an error, and it is still billed.

How much does it cost to check 40 Facebook Marketplace listings?

At up to $0.0012 per call, 40 calls are at most $0.048. The first 10-call check is at most $0.012. Successful runs settle at the actual AnyAPI charge, and agent model fees are not counted.

Does the tool take an item ID or a URL?

It documents id and url, and neither is marked required. Supply one value from the Marketplace listing URL or the item ID in that URL.

What should I do with sold or pending listings in the table?

Keep isSold and isPending in the deliverable table so the shortlist can flag those listings before pricing comparisons.

Can I check more than one listing per call?

No. The tool takes one listing per call, and a found:false answer is still a successful billed call.

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