使用这些接口是需要密钥的
公共密钥
appkey: 10003
secret: d1149a30182aa2088ef645309ea193bf
生成后sign: b59bc3ef6191eb9f747dd4e83c99f2a4
secret: d1149a30182aa2088ef645309ea193bf
生成后sign: b59bc3ef6191eb9f747dd4e83c99f2a4
当然我觉得私人密钥比较安全,
注册密钥
手机号码归属地查询API
基本信息
Url:http://api.k780.com/?app=phone.get&phone=13800138000&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json Method:GET/POST Format:json/xml
参数
| 公共参数 | |||
| 名称 | 类型 | 必须(是/否) | 说明 |
| appkey | string | 是 | 使用API的唯一凭证. |
| sign | string | 是 | md5后的32位密文,登陆用. |
| format | {json|xml} | 是 | 返回的数据格式,默认为json |
| 应用参数 | |||
| phone | string | 是 | 手机号码 例:13800138000 |
返回值
| 名称 | 类型 | 说明 |
| success | string | 执行完成返回值 {0/1} |
| phone | string | 查询的手机号码. |
| area | string | 所属区号. |
| att | string | 所在城市. |
| ctype | string | 卡类型. |
| par | string | 号码前缀. |
JSON返回示例
{
"success":"1",
"result":{
"phone":"13800138000",
"area":"010",
"att":"北京市",
"ctype":"北京移动全球通卡",
"par":"1380013"
}
}
XML返回示例
<root>
<success>1</success>
<result>
<phone>13800138000</phone>
<area>010</area>
<att>北京市</att>
<ctype>北京移动全球通卡</ctype>
<par>1380013</par>
</result>
</root>
IP地址归属地查询API
基本信息
Url:http://api.k780.com/?app=ip.get&ip=8.8.8.8&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json Method:GET/POST Format:json/xml
参数
| 公共参数 | |||
| 名称 | 类型 | 必须(是/否) | 说明 |
| appkey | string | 是 | 使用API的唯一凭证. |
| sign | string | 是 | md5后的32位密文,登陆用. |
| format | {json|xml} | 是 | 返回的数据格式,默认为json |
| 应用参数 | |||
| ip | string | 是 | ip地址 例8.8.8.8 |
返回值
| 名称 | 类型 | 说明 |
| success | string | 执行完成返回值 {0/1} |
| ip | string | 查询的IP地址. |
| inet_aton | string | IP地址对应的数字地址. |
| update | string | 最后更新时间. |
| att | string | 归属地. |
| att1 | string | 归属地一. |
JSON返回示例
{
"success":"1",
"result":{
"ip":"8.8.8.8",
"inet_aton":"134744072",
"update":"2012-10-12 16:03:50",
"att":"美国 Google免费DNS "
}
}
XML返回示例
<root>
<success>1</success>
<result>
<ip>8.8.8.8</ip>
<inet_aton>134744072</inet_aton>
<update>2012-10-12 16:03:50</update>
<att>美国 Google免费DNS</att>
</result>
</root>
身份证信息查询API
基本信息
Url:http://api.k780.com/?app=idcard.get&idcard=110101199001011118&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json Method:GET/POST Format:json/xml
参数
| 公共参数 | |||
| 名称 | 类型 | 必须(是/否) | 说明 |
| appkey | string | 是 | 使用API的唯一凭证. |
| sign | string | 是 | md5后的32位密文,登陆用. |
| format | {json|xml} | 是 | 返回的数据格式,默认为json |
| 应用参数 | |||
| idcard | string | 是 | 身份证号码 例:110101199001011118 |
返回值
| 名称 | 类型 | 说明 |
| success | string | 执行完成返回值 {0/1} |
| idcard | string | 查询的身份证号码. |
| att | string | 身份证所在地区. |
| born | string | 出生年月. |
| sex | string | 性别. |
JSON返回示例
{
"success":"1",
"result":{
"idcard":"110101199001011118",
"att":"北京市东城区",
"born":"1990年01月01日",
"sex":"男"
}
}
XML返回示例
<root>
<success>1</success>
<result>
<idcard>110101199001011118</idcard>
<att>北京市东城区</att>
<born>1990年01月01日</born>
<sex>男</sex>
</result>
</root>
域名备案查询API
基本信息
Url:http://api.k780.com/?app=domain.beian&domain=baidu.com&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json Method:GET/POST Format:json/xml
参数
| 公共参数 | |||
| 名称 | 类型 | 必须(是/否) | 说明 |
| appkey | string | 是 | 使用API的唯一凭证. |
| sign | string | 是 | md5后的32位密文,登陆用. |
| format | {json|xml} | 是 | 返回的数据格式,默认为json |
| 应用参数 | |||
| domain | string | 是 | 要查询的域名 如:baidu.com |
返回值
| 名称 | 类型 | 说明 |
| success | string | 执行完成返回值 {0/1} |
| domain | string | 查询的域名 |
| icpno | string | 工信部备案号 |
| webhome | string | 首页地址 |
| organizers | string | 主办单位 |
| organizers_type | string | 主办单位性质 |
| exadate | string | 审核时间 |
JSON返回示例
{
"success":"1",
"result":{
"icpno":"京ICP证030173号",
"sitenm":"百度",
"webhome":"www.baidu.com",
"organizers":"北京百度网讯科技有限公司",
"organizers_type":"企业",
"exadate":"2012-11-02 00:00:00"
}
}
XML返回示例
<?xml version="1.0" ?>
<root>
<success>1</success>
<result>
<icpno>京ICP证030173号</icpno>
<sitenm>百度</sitenm>
<webhome>www.baidu.com</webhome>
<organizers>北京百度网讯科技有限公司</organizers>
<organizers_type>企业</organizers_type>
<exadate>2012-11-02 00:00:00</exadate>
</result>
</root>
以上接口信息来自http://www.k780.com/api,希望可以给大家带来帮助!
如有转载,请标明来自此出处http://blog.youkuaiyun.com/qxs965266509,必须注意!
1677

被折叠的 条评论
为什么被折叠?



