| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| pic | file/string | 是 | 营业执照图片文件 POST上传,支持传base64格式的图片内容 JPG识别率略高 |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| name | string | 公司名称 |
| creditno | string | 信用代码 |
| legalperson | string | 法人 |
| regcapital | string | 注册资本 |
| regdate | string | 注册日期 |
| enddate | string | 营业终止日期 |
| regaddress | string | 注册地址 |
| scope | string | 经营范围 |
| regorgan | string | 登记机关 |
<?php
require_once 'curl.func.php';
$appkey = 'your_appkey_here';//你的appkey
$url = "https://api.binstd.com/businesslicenserecognition/recognize?appkey=$appkey";
$post = array(
'pic'=>base64_encode(file_get_contents('sfz1.jpg')), //'@'.realpath('11.jpg')
);
$result = curlOpen($url, array('post'=>$post, 'isupfile'=>true));
$jsonarr = json_decode($result, true);
if($jsonarr['status'] != 0)
{
echo $jsonarr['msg'];
exit();
}
$result = $jsonarr['result'];
echo $result['name'].' '.$result['creditno'].' '.$result['legalperson'].' '.$result['regcapital'].'
';
echo $result['regdate'].' '.$result['enddate'].' '.$result['regaddress'].' '.$result['scope'].'
';
echo $result['regorgan'];
{
"status": "0",
"msg": "ok",
"result": {
"name": "杭州网尚科技有限公司",
"creditno": "91330106070976527B",
"legalperson": "刘攀登",
"regcapital": "伍佰万",
"regdate": "2013年06月28日",
"enddate": "2013年06月28日至2033年06月27日",
"regaddress": "杭州市转塘街道双流643号E3-1-59室",
"scope": "手机网络研发,手机客户端的开发,手机移动网络的技术咨询,电子商务、电子产品的技术咨询、技术服务,汽车事务代理(除保险代理业务)。",
"regorgan": "杭州市西湖区市场监督管理局(之江工商分局)"
}
}
| 代号 | 说明 |
|---|---|
| 201 | 图片为空 |
| 202 | 图片格式错误 |
| 208 | 识别失败 |
| 210 | 没有信息 |
| 代号 | 说明 |
|---|---|
| 101 | APPKEY为空或不存在 |
| 102 | APPKEY已过期 |
| 103 | APPKEY无请求此数据权限 |
| 104 | 请求超过次数限制 |
| 105 | IP被禁止 |
| 106 | IP请求超过限制 |
| 107 | 接口维护中 |
| 108 | 接口已停用 |
| 名称 | 权限 | 价格 | |
|---|---|---|---|
| 免费套餐 | 5次 | 免费 | |
| Level1 | 2000次 | 200.00元 | |
| Level2 | 5000次 | 450.00元 | |
| Level3 | 10000次 | 870.00元 |
开通账号: