Amap Maps Get V3 IP

1 credits/call
ae_amap_maps_get_v3_ip

Find the approximate geographic location associated with an IP address.

Maps
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
ipstringNoip地址 需要搜索的IP地址(仅支持国内) 若用户不填写IP,则取客户http之中的请求来进行定位—
outputenum (JSON | XML)No返回结果格式类型,可选值:JSON,XMLJSON

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_amap_maps_get_v3_ip' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "ip": "61.184.6.14",
    "output": "JSON"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "adcode": "420600",
  "city": "襄阳市",
  "info": "OK",
  "infocode": "10000",
  "province": "湖北省",
  "status": "1"
}

This example shows part of the response. Copied content is valid JSON.