メインコンテンツへスキップ
GET
/
geolocate
呼び出し元の場所を取得
curl --request GET \
  --url https://api.example.com/geolocate
{
  "ip": "<string>",
  "location": {
    "file_index": 123,
    "range_start_int": 123,
    "range_end_int": 123,
    "range_start_ip": "<string>",
    "range_end_ip": "<string>",
    "country_code": "<string>",
    "country_name": "<string>"
  },
  "allowed": false
}

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

クエリパラメータ

ip
string | null

地理的位置を特定する対象の IP アドレス。デフォルトではクライアントの IP アドレスが使用されます

:

"1.2.3.4"

レスポンス

正常なレスポンス

ip
string
必須

解決済みの IP アドレス。デバッグに役立ちます

location
Geolocation · object

IP アドレスの位置情報。特定できない場合は None

allowed
boolean
デフォルト:false

この IP アドレスを Inference に使用できるかどうか。