GET api/SysConfig/GetIPLocation?ip={ip}

查询IP归属

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ip

string

Required

Body Parameters

None.

Response Information

Resource Description

查询IP归属

IP138QueryResultDto
NameDescriptionTypeAdditional information
Id

integer

None.

IP

IP

string

None.

Country

国家

string

None.

Province

省份

string

None.

City

城市

string

None.

PostCode

邮编

string

None.

SectionCode

区号

string

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<IP138QueryResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.IP138Query">
  <City>sample string 5</City>
  <Country>sample string 3</Country>
  <IP>sample string 2</IP>
  <Id>1</Id>
  <PostCode>sample string 6</PostCode>
  <Province>sample string 4</Province>
  <SectionCode>sample string 7</SectionCode>
</IP138QueryResultDto>