Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Facebook Marketplace

API dokümanları
https://api.sandbase.ai/v1/api/facebook/marketplace

Search Facebook Marketplace listings by keyword near a location, filter by price, condition, delivery, recency, and availability, and get title, price, location, and image as normalized JSON.

Fiyat
Başlangıç fiyatı $0.0012USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
3 gerekli · 8 isteğe bağlı

Oynatma Alanı

Girdi
Latitude of the search location (e.g. '30.2677').
Longitude of the search location (e.g. '-97.7475').
Search keyword for Marketplace listings (e.g. 'bike').
Sort order for the returned listings (e.g. price_ascend).
Pagination cursor from a previous response to fetch the next page.
Maximum listing price in whole currency units, e.g. 500 for $500. Facebook may mix in a few suggested listings outside the range. Minimum: 0.
Minimum listing price in whole currency units, e.g. 100 for $100. Facebook may mix in a few suggested listings outside the range. Minimum: 0.
Only return listings in this condition (e.g. used_good).
Only return listings posted within this window (e.g. last_7_days).
Filter by availability: available (default), sold, or all (e.g. sold).
Only return listings offering this delivery method (e.g. shipping).
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

Facebook Marketplace API

Returns a page of Facebook Marketplace listings that match a keyword near a latitude and longitude. Each listing includes title, price, city, photo, delivery types, and a link to the item. You send query, lat, and lng, and can add price, condition, delivery, recency, availability, and sort filters.

Use cases

  • Compare asking prices for used bikes within a set budget in one city.
  • Track newly posted listings for a keyword by sorting with creation_time_descend.
  • Build a deal alert that flags listings under a target priceAmount.
  • Collect sold listings with availability set to sold to see what items sold for in an area.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/marketplace" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat": "30.2677", "lng": "-97.7475", "query": "bike", "priceMax": 500, "priceMin": 100}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
latstringYesLatitude of the search location (e.g. '30.2677').
lngstringYesLongitude of the search location (e.g. '-97.7475').
querystringYesSearch keyword for Marketplace listings (e.g. 'bike').
availabilitystringNoFilter by availability: available (default), sold, or all (e.g. sold).
conditionstringNoOnly return listings in this condition (e.g. used_good).
cursorstringNoPagination cursor from a previous response to fetch the next page.
dateListedstringNoOnly return listings posted within this window (e.g. last_7_days).
deliveryMethodstringNoOnly return listings offering this delivery method (e.g. shipping).
priceMaxintegerNoMaximum listing price in whole currency units, e.g. 500 for $500. Facebook may mix in a few suggested listings outside the range.
priceMinintegerNoMinimum listing price in whole currency units, e.g. 100 for $100. Facebook may mix in a few suggested listings outside the range.
sortstringNoSort order for the returned listings (e.g. price_ascend).

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "hasNextPage": true,
    "listings": [
      {
        "categoryId": "1658310421102081",
        "city": "Austin",
        "cityPageId": "106224666074625",
        "createdUtc": 1788826593,
        "deliveryTypes": [
          "IN_PERSON"
        ],
        "id": "2010100319696587",
        "isHidden": false,
        "isLive": true,
        "isPending": false,
        "isSold": false,
        "listingDateText": "Listed 1 month ago",
        "locationName": "Austin, Texas"
      }
    ],
    "nextCursor": "cur_jXjcjdldJp1WvqUPdeX5sw"
  },
  "found": true
}

Response fields

FieldMeaning
data.listings[].idMarketplace listing ID. Use it to build the item link or to look up the listing in detail.
data.listings[].titleTitle the seller gave the listing.
data.listings[].priceAmount / data.listings[].priceFormattedListing price as a number and as display text, for example 350 and $350.
data.listings[].city / data.listings[].state / data.listings[].locationNameWhere the item is listed, as city, state code, and a combined place name.
data.listings[].createdUtcTime the listing was created, as a Unix timestamp in seconds.
data.listings[].listingDateTextRelative age of the listing as shown on Facebook, for example Listed 2 weeks ago.
data.listings[].deliveryTypesList of delivery options the seller offers, such as IN_PERSON, PUBLIC_MEETUP, and DOOR_PICKUP.
data.listings[].isSold / data.listings[].isPending / data.listings[].isLive / data.listings[].isHiddenStatus flags for the listing.
data.listings[].photoUrlURL of the main listing photo.
data.listings[].urlDirect link to the listing on Facebook Marketplace.
data.hasNextPage / data.nextCursorhasNextPage shows whether more results exist. nextCursor is the value to send as cursor for the next page.

Notes

  • To get the next page, repeat the request with cursor set to data.nextCursor. Stop when data.hasNextPage is false.
  • Use the same lat and lng as a Marketplace location. Facebook Marketplace Location Search can help you find coordinates for a place name.
  • Call Facebook Marketplace Item with a listing id to get more detail on a single listing.
  • priceMin and priceMax use whole currency units. A few suggested listings outside the range can still appear.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
FacebookKullanım başına $0.0012'den itibarenJSON
FacebookKullanım başına $0.0012'den itibarenJSON
FacebookKullanım başına $0.00462'den itibarenJSON
FacebookKullanım başına $0.0012'den itibarenJSON
FacebookKullanım başına $0.0011'den itibarenJSON
FacebookKullanım başına $0.0011'den itibarenJSON

Kılavuzlar:Best Facebook API in 2026: Pricing Compared

Sorular

SSS

Facebook Marketplace API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/facebook/marketplace adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Facebook Marketplace API'sinin fiyatı nedir?

çağrı başına $0.0012'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Facebook Marketplace API'si hangi parametreleri kabul eder?

Gerekli: lat (string), lng (string) ve query (string). İsteğe bağlı: sort (suggested, distance_ascend, creation_time_descend, price_ascend, price_descend arasından biri), cursor (string), priceMax (integer), priceMin (integer), condition (new, used_like_new, used_good, used_fair arasından biri) ve dateListed (all, last_24_hours, last_7_days, last_30_days arasından biri) ve 2 tane daha. Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Facebook Marketplace API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Facebook geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Facebook Marketplace, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Facebook API erişimi için ayrıca başvuru yapmanız gerekmez.