Skip to content

API Reference


1. Info

  • Title: gRPC API
  • Version: 1.0.0
  • Description: This documentation is generated from protobuf files using protoc-gen-doc.

2. Paths

IPLocation

IP 地址定位服务

GetIPInfo

  • Summary: 获取 IP 的基础国家/地理等信息
  • Method: GetIPInfo
  • Endpoint: ip_location.IPLocation/GetIPInfo
  • Request:
  • Response:

GetIPInsights

  • Summary: 获取 IP 的匿名代理相关洞察信息
  • Method: GetIPInsights
  • Endpoint: ip_location.IPLocation/GetIPInsights
  • Request:
  • Response:

CheckIP

  • Summary: 检查 IP 和国家是否可用
  • Method: CheckIP
  • Endpoint: ip_location.IPLocation/CheckIP
  • Request:
  • Response:

3. Components

3.1 Schemas

CheckIPRequest

请求:检查 IP 可用性

FieldTypeDescription
ipAddressstring要检查的 IP 地址,不能为空

CheckIPResponse

响应:IP 和国家可用性状态

FieldTypeDescription
ipIsAvailablestringIP 是否可用("true"/"false")
countryIsAvailablestring国家是否可用("true"/"false")

GetIPInfoRequest

请求:获取 IP 信息

FieldTypeDescription
ipAddressstring目标 IP 地址,不能为空

GetIPInfoResponse

响应:返回 IP 信息

FieldTypeDescription
ipCountryIPCountryInfoIP 所属国家信息
ipContinentIPCountryInfoIP 所属大陆信息
ipRegisteredCountryIPCountryInfoIP 注册地信息(注册国家)

GetIPInsightsRequest

请求:获取 IP 匿名代理洞察信息

FieldTypeDescription
ipAddressstring要查询的 IP 地址,不能为空

GetIPInsightsResponse

响应:IP 洞察信息(匿名代理/代理类型等)

FieldTypeDescription
isAnonymousstring是否为匿名用户
isAnonymousProxystring是否为匿名代理
isAnonymousVpnstring是否为匿名 VPN
isTorExitNodestring是否为 Tor 出口节点
isPublicProxystring是否为公共代理
isResidentialProxystring是否为住宅代理
userTypestring用户类型(如:business、residential、isp 等)
ipInfoGetIPInfoResponseIP 的基础信息(嵌套)

IPCountryInfo

国家/地区信息

FieldTypeDescription
ipAddressstringIP 地址
isoCodestringISO 国家代码(如:CN、US)

3.2 Enums


4. Scalar Value Types

Proto TypeGo TypeC++ TypeJava TypePython TypeNotes
doublefloat64doubledoublefloat
floatfloat32floatfloatfloat
int32int32int32intintUses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.
int64int64int64longint/longUses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.
uint32uint32uint32intint/longUses variable-length encoding.
uint64uint64uint64longint/longUses variable-length encoding.
sint32int32int32intintUses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.
sint64int64int64longint/longUses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.
fixed32uint32uint32intintAlways four bytes. More efficient than uint32 if values are often greater than 2^28.
fixed64uint64uint64longint/longAlways eight bytes. More efficient than uint64 if values are often greater than 2^56.
sfixed32int32int32intintAlways four bytes.
sfixed64int64int64longint/longAlways eight bytes.
boolboolboolbooleanboolean
stringstringstringStringstr/unicodeA string must always contain UTF-8 encoded or 7-bit ASCII text.
bytes[]bytestringByteStringstrMay contain any arbitrary sequence of bytes.

🚀 构建现代化数字资产交易平台