接口描述:根据关键字、银行名称、省、市等多种条件查询。返回结果包含支行名称、联行号、地址、电话等。
接口地址:http(s)://www.apisilo.com/api/cnaps/action=search
请求方式:get/post
返回格式:json
请求示例:http(s)://www.apisilo.com/api/cnaps/action=search&apikey=APIKEY&bankname=银行名称&province=省&city=市&keyword=关键词&page=页码
说明:本站 APIKEY 除了可以放在 URL 或 POST 参数中的 apikey 外,也支持放在请求头 X-API-Key 中传递。
curl -s \ -H 'X-API-Key: APIKEY' \ 'http(s)://www.apisilo.com/api/cnaps/action=search&bankname=工商银行&province=广东省&city=广州市&keyword=开发区&page=1'
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| apikey | string | 是 | APIKEY,也支持通过请求头 X-API-Key 传递 |
| bankname | string | 否 | 银行名称 (点击查看) |
| province | string | 否 | 省份 (点击查看) |
| city | string | 否 | 城市 (点击查看) |
| keyword | string | 否 | 关键词(如:开发区,新区,城东等) |
| page | int | 否 | 1~10 (最多10页每页最多展示10条数据) |
| 名称 | 类型 | 说明 |
|---|---|---|
| error_code | int | 错误码 |
| msg | string | 结果描述 |
| result | string | 返回结果 |
| 错误码 | 说明 |
|---|---|
| 0 | 查询成功 |
| 1 | API余额不足 |
| 2 | API有效期已过 |
{
"error_code": 0, // 返回错误码 0成功 1余额不足 2有效期已过
"msg": "ok", // 返回结果描述
"result": {
"bankname": "工商银行", //银行名称(透传输入的参数)
"province": "广东省", //省(透传输入的参数)
"city": "广州市", //市(透传输入的参数)
"keyword": "", // 关键词(透传输入的参数)
"total": "300", // 总记录数
"page": "1", // 当前页数(最多10页)
"record": [{
"province": "广东省",//银行所在省
"city": "广州市",//银行所在城市
"bankname": "中国工商银行",// 银行名称
"banknamebranch": "中国工商银行股份有限公司广州开发区分行",//支行名称
"bankcode": "102581000177",//联行号
"swiftcode": "ICBKCNBJGDG,ICBKCNBJGZU",//swift代码
"addr": "广州市萝岗区科学城开创大道北山香路2号",//银行地址
"tel": "020-32012885"//支行电话
}, {
"province": "广东省",
"city": "广州市",
"bankname": "中国工商银行",
"banknamebranch": "中国工商银行股份有限公司广州开发区分行",
"bankcode": "102581000177",
"swiftcode": "ICBKCNBJGDG,ICBKCNBJGZU",
"addr": "广州市萝岗区科学城开创大道北山香路2号",
"tel": "020-32012885"
}]
}
"remain":19999 // API剩余次数
}
接口描述:通过个人银行卡号查询总行的联行号。不支持企业账号。
接口地址:http(s)://www.apisilo.com/api/cnaps/action=bankno
请求方式:get/post
返回格式:json
请求示例:http(s)://www.apisilo.com/api/cnaps/action=bankno&apikey=APIKEY&bankcard=银行卡号
说明:本站 APIKEY 除了可以放在 URL 或 POST 参数中的 apikey 外,也支持放在请求头 X-API-Key 中传递。
curl -s \ -H 'X-API-Key: APIKEY' \ 'http(s)://www.apisilo.com/api/cnaps/action=bankno&bankcard=6222020200001234567'
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| apikey | string | 是 | APIKEY,也支持通过请求头 X-API-Key 传递 |
| bankcard | string | 是 | 银行卡号 |
| 名称 | 类型 | 说明 |
|---|---|---|
| error_code | int | 错误码 |
| code | int | 结果代码 |
| msg | string | 结果描述 |
| result | string | 返回结果 |
| 错误码 | 说明 |
|---|---|
| 0 | 查询成功 |
| 1 | API余额不足 |
| 2 | API有效期已过 |
| 3 | 银行卡号错误 |
| 结果代码 | 说明 |
|---|---|
| 0 | 总行联行号查询有结果 |
| 1 | 总行联行号查询无结果 |
{
"error_code": 0, // 返回错误码 0成功 1余额不足 2有效期已过
"code": 0, // 返回结果代码 0总行联行号查询有结果 1无结果
"msg": "ok", // 返回结果描述
"result": {
"bankcard": "95599**********" //银行卡号
"bankcode": "103100000026" //总行联行号
"bankname": "农业银行", //银行名称
"bankid": "01030000" //银行编码
"area": "北京 - 北京", //银行卡所在地区
"cardname": "金穗通宝卡(银联卡)", //卡名称
"cardtype": "借记卡", //卡类型
"tel": "95599", //银行电话
"iscorrect": 1, //卡号校验是否正确 1正确 0错误
}
"remain":19999 // API剩余次数
}
接口描述:通过银行名称查询联行号。
接口地址:http(s)://www.apisilo.com/api/cnaps/action=banktc
请求方式:get/post
返回格式:json
请求示例:http(s)://www.apisilo.com/api/cnaps/action=banktc&apikey=APIKEY&bankname=银行名称
说明:本站 APIKEY 除了可以放在 URL 或 POST 参数中的 apikey 外,也支持放在请求头 X-API-Key 中传递。
curl -s \ -H 'X-API-Key: APIKEY' \ 'http(s)://www.apisilo.com/api/cnaps/action=banktc&bankname=工商银行'
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| apikey | string | 是 | APIKEY,也支持通过请求头 X-API-Key 传递 |
| bankname | string | 是 | 银行名称 |
| 名称 | 类型 | 说明 |
|---|---|---|
| error_code | int | 错误码 |
| msg | string | 结果描述 |
| result | string | 返回结果 |
| 错误码 | 说明 |
|---|---|
| 0 | 查询成功 |
| 1 | API余额不足 |
| 2 | API有效期已过 |
{
"error_code": 0, // 返回错误码 0成功 1余额不足 2有效期已过
"msg": "ok", // 返回结果描述
"result": [
{
"bankname": "中国银行",// 银行名称
"province": "北京市",// 省
"city": "北京市",// 市
"bankcode": "104100000004",// 联行号
"addr": "北京市西城区复兴门内大街1号",// 银行地址
"tel": "010-66596688"// 银行电话
}
]
"remain":19999 // API剩余次数
}
接口描述:通过联行号反查银行开户行信息。
接口地址:http(s)://www.apisilo.com/api/cnaps/action=reverse
请求方式:get/post
返回格式:json
请求示例:http(s)://www.apisilo.com/api/cnaps/action=reverse&apikey=APIKEY&bankcode=联行号
说明:本站 APIKEY 除了可以放在 URL 或 POST 参数中的 apikey 外,也支持放在请求头 X-API-Key 中传递。
curl -s \ -H 'X-API-Key: APIKEY' \ 'http(s)://www.apisilo.com/api/cnaps/action=reverse&bankcode=102581000177'
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| apikey | string | 是 | APIKEY,也支持通过请求头 X-API-Key 传递 |
| bankcode | string | 是 | 联行号 |
| 名称 | 类型 | 说明 |
|---|---|---|
| error_code | int | 错误码 |
| msg | string | 结果描述 |
| result | string | 返回结果 |
| 错误码 | 说明 |
|---|---|
| 0 | 查询成功 |
| 1 | API余额不足 |
| 2 | API有效期已过 |
{
"error_code": 0, // 返回错误码 0成功 1余额不足 2有效期已过
"msg": "ok", // 返回结果描述
"result": {
"bankcode": "102581000177",// 联行号
"bankname": "中国工商银行",// 银行名称
"province": "广东省",// 省
"city": "广州市",// 市
"bankbranch": "中国工商银行股份有限公司广州开发区分行",// 开户行名称
"swiftcode": "ICBKCNBJGDG,ICBKCNBJGZU",// swiftcode
"addr": "广州市萝岗区科学城开创大道北山香路2号",// 银行地址
"tel": "020-32012885"// 银行电话
}
"remain":19999 // API剩余次数
}