Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Facebook Marketplace Location Search

APIドキュメント
https://api.sandbase.ai/v1/api/facebook/marketplace-location-search

Resolve a place name to Facebook Marketplace locations with coordinates and metadata as normalized JSON.

料金
$0.0012 からUSD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
Location search query (e.g. a city name).
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Facebook Marketplace Location Search API

Returns a list of Facebook Marketplace locations that match a place name. Each result has a name, city, coordinates, postal code, and a page ID. The only input is the query string, such as a city name.

Use cases

  • Convert a city name typed by a user into coordinates for a map or a radius search.
  • Find the pageId of a location so you can use it in other Facebook Marketplace lookups.
  • Tell apart places that share a name, such as Austin in Illinois, Georgia, and Texas, by reading subtitle and city.
  • Check whether Facebook knows a place name before you build a Marketplace search around it.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/marketplace-location-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "Austin"}'

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

Parameters

NameTypeRequiredDescription
querystringYesLocation search query (e.g. a city name).

Example response

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

{
  "data": {
    "locations": [
      {
        "city": "Chicago",
        "latitude": 41.894086,
        "longitude": -87.763202,
        "name": "Austin",
        "pageId": "108120015875983",
        "postalCode": "60644-1112",
        "subtitle": "Austin, IL · 25,642 people checked in here"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
foundtrue when at least one location matched the query. A search with no match returns false.
data.locations[]List of matching locations. The top result is not always the one you want, so check each entry.
data.locations[].nameDisplay name of the location, such as Austin or Austin, Texas.
data.locations[].cityCity tied to the location. It can differ from name, as in the Austin entry in Chicago.
data.locations[].latitude / data.locations[].longitudeCoordinates of the location in decimal degrees.
data.locations[].pageIdFacebook page ID of the location, returned as a string.
data.locations[].postalCodePostal code of the location. Some values include the extra four digits, such as 60644-1112.
data.locations[].subtitleShort description of the location. It shows a state and check-in count for some places, or a type such as City.

Notes

  • Send a city name or other place name as query. Add a state or region to the text if the first results are the wrong place.
  • Treat pageId as a string. The values are long numeric IDs.
  • To browse listings after you pick a location, call Facebook Marketplace.
  • To read a single listing, use Facebook Marketplace Item.

Pricing

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

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Facebook1回あたり $0.0012 からJSON
Facebook1回あたり $0.0012 からJSON
Facebook1回あたり $0.00462 からJSON
Facebook1回あたり $0.0012 からJSON
Facebook1回あたり $0.0011 からJSON
Facebook1回あたり $0.0011 からJSON

ガイド:Best Facebook API in 2026: Pricing Compared

質問

FAQ

Facebook Marketplace Location Search API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/facebook/marketplace-location-search に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Facebook Marketplace Location Search API の料金はいくらですか?

1回あたり $0.0012 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Facebook Marketplace Location Search API はどのパラメータを受け付けますか?

必須: query (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Facebook Marketplace Location Search API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Facebook の開発者アカウントまたは API key は必要ですか?

いいえ。Facebook Marketplace Location Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Facebook の API アクセスを別途申請する必要はありません。