latstring필수
Latitude of the search location (e.g. '30.2677').
https://api.sandbase.ai/v1/api/facebook/marketplaceSearch 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.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
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.
creation_time_descend.priceAmount.availability set to sold to see what items sold for in an area.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.
| Name | Type | Required | Description |
|---|---|---|---|
lat | string | Yes | Latitude of the search location (e.g. '30.2677'). |
lng | string | Yes | Longitude of the search location (e.g. '-97.7475'). |
query | string | Yes | Search keyword for Marketplace listings (e.g. 'bike'). |
availability | string | No | Filter by availability: available (default), sold, or all (e.g. sold). |
condition | string | No | Only return listings in this condition (e.g. used_good). |
cursor | string | No | Pagination cursor from a previous response to fetch the next page. |
dateListed | string | No | Only return listings posted within this window (e.g. last_7_days). |
deliveryMethod | string | No | Only return listings offering this delivery method (e.g. shipping). |
priceMax | integer | No | Maximum listing price in whole currency units, e.g. 500 for $500. Facebook may mix in a few suggested listings outside the range. |
priceMin | integer | No | Minimum listing price in whole currency units, e.g. 100 for $100. Facebook may mix in a few suggested listings outside the range. |
sort | string | No | Sort order for the returned listings (e.g. price_ascend). |
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
}
| Field | Meaning |
|---|---|
data.listings[].id | Marketplace listing ID. Use it to build the item link or to look up the listing in detail. |
data.listings[].title | Title the seller gave the listing. |
data.listings[].priceAmount / data.listings[].priceFormatted | Listing price as a number and as display text, for example 350 and $350. |
data.listings[].city / data.listings[].state / data.listings[].locationName | Where the item is listed, as city, state code, and a combined place name. |
data.listings[].createdUtc | Time the listing was created, as a Unix timestamp in seconds. |
data.listings[].listingDateText | Relative age of the listing as shown on Facebook, for example Listed 2 weeks ago. |
data.listings[].deliveryTypes | List 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[].isHidden | Status flags for the listing. |
data.listings[].photoUrl | URL of the main listing photo. |
data.listings[].url | Direct link to the listing on Facebook Marketplace. |
data.hasNextPage / data.nextCursor | hasNextPage shows whether more results exist. nextCursor is the value to send as cursor for the next page. |
cursor set to data.nextCursor. Stop when data.hasNextPage is false.lat and lng as a Marketplace location. Facebook Marketplace Location Search can help you find coordinates for a place name.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.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
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
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
latstring필수Latitude of the search location (e.g. '30.2677').
lngstring필수Longitude of the search location (e.g. '-97.7475').
querystring필수Search keyword for Marketplace listings (e.g. 'bike').
sortstringSort order for the returned listings (e.g. price_ascend).
가능한 값: suggested, distance_ascend, creation_time_descend, price_ascend, price_descend
cursorstringPagination cursor from a previous response to fetch the next page.
priceMaxintegerMaximum listing price in whole currency units, e.g. 500 for $500. Facebook may mix in a few suggested listings outside the range.
priceMinintegerMinimum listing price in whole currency units, e.g. 100 for $100. Facebook may mix in a few suggested listings outside the range.
conditionstringOnly return listings in this condition (e.g. used_good).
가능한 값: new, used_like_new, used_good, used_fair
dateListedstringOnly return listings posted within this window (e.g. last_7_days).
가능한 값: all, last_24_hours, last_7_days, last_30_days
availabilitystringFilter by availability: available (default), sold, or all (e.g. sold).
가능한 값: available, sold, all
deliveryMethodstringOnly return listings offering this delivery method (e.g. shipping).
가능한 값: all, local_pickup, shipping
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Facebook Marketplace이 API Facebook | 호출당 $0.0012부터 | JSON |
Facebook | 호출당 $0.0012부터 | JSON |
Facebook | 호출당 $0.00462부터 | JSON |
Facebook | 호출당 $0.0012부터 | JSON |
Facebook | 호출당 $0.0011부터 | JSON |
Facebook | 호출당 $0.0011부터 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/facebook/marketplace에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.0012부터, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: lat (string), lng (string) 및 query (string). 선택: sort(suggested, distance_ascend, creation_time_descend, price_ascend, price_descend 중 하나), cursor (string), priceMax (integer), priceMin (integer), condition(new, used_like_new, used_good, used_fair 중 하나) 및 dateListed(all, last_24_hours, last_7_days, last_30_days 중 하나) 외 2개. 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Facebook Marketplace은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Facebook API 액세스를 별도로 신청할 필요는 없습니다.