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
}ユーザーの IP アドレスに基づいて地理的位置情報を照会します。
この API はデバッグ目的で提供されており、将来利用できなくなる可能性があります。
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
}位置情報を特定する IP アドレス。指定しない場合はクライアントの IP アドレスが使用されます。 ジオロケーションに使用する IP アドレス。指定しない場合は クライアントの IP アドレスがデフォルトとして使用されます
"1.2.3.4"