请求支持 POST 和 GET 两种方法,字符编码为 utf-8 ,支持全天24小时发送。
https://api.ihuyi.com/idcard/entcopy/Submit.json
| 参数名称 | 参数值描述 | 示例 | 类型 | 必填 |
| Content-Type | 内容类型,固定值 | application/x-www-form-urlencoded | string | 是 |
| 参数名称 | 参数值描述 | 示例 | 类型 | 必填 |
| account | APIID(用户中心【认证核验】-【企业信息验证】-【产品总览】查看) | xxxxxxxx | string | 是 |
| password | 1、APIKEY(用户中心【认证核验】-【企业信息验证】-【产品总览】查看) 2、动态密码(生成动态密码方式请看该文档末尾的说明) |
xxxxxxxxx | string | 是 |
| ent_name | 企业名称(ent_name、ent_code、organization_code、reg_no四选一传递) | 上海************有限公司 | string | 否 |
| ent_code | 社会信用代码(ent_name、ent_code、organization_code、reg_no四选一传递) | 913****** | string | 否 |
| organization_code | 组织机构代码(ent_name、ent_code、organization_code、reg_no四选一传递) | 403925****** | string | 否 |
| reg_no | 注册号(ent_name、ent_code、organization_code、reg_no四选一传递) | 403925****** | string | 否 |
| year | 公布年份(格式为yyyy) | 2024 | string | 否 |
| copyright_type | 著作权类型代码(P:著作权;S:软件著作权) | P | string | 否 |
| reg_num | 登记号 | 403925****** | string | 否 |
| copyright_name | 作品名称(支持模糊搜索) | **著作 | string | 否 |
| owner | 著作权人(支持模糊搜索) | 张 | string | 否 |
| page_index | 页码,默认第一页 | 1 | string | 否 |
| page_size | 每页条数(默认50条,最大50条) | 50 | string | 否 |
| time | Unix时间戳(10位整型数字,当使用动态密码方式时为必填) | 1623643787 | string | 否 |
| 参数名称 | 参数值描述 | 示例 | 类型 | 必返 |
| code | 返回值为2时,表示提交成功 | 2|1 | int | |
| msg | 提交结果描述 | 查询成功|查询失败 | string | |
| idcardid | 当提交成功后,此字段为流水号,否则为0或空 | 16236437872836|0 | string | |
| result | 认证结果 | object | ||
| total | 总数 | 1 | string | |
| lists[] | 数据列表 | array | ||
| entityName | 企业名称 | 上海市************ | string | |
| copyrightType | 著作权类型 | 软件著作权证书 | string | |
| copyrightTypeCode | 著作权类型代码(P:著作权;S:软件著作权) | S | string | |
| registrationNum | 登记号 | 2017******* | string | |
| categoryType | 分类号 | string | ||
| copyrightName | 软件全称 | ***软件 | string | |
| copyrightNameAbbr | 作品简称 | string | ||
| copyrightOwner | 著作权人 | 上海市***********公司 | string | |
| copyrightOwnerType | 著作权人类型 | E | string | |
| author | 作者 | string | ||
| relatedEntity | 关联企业 | [{"item":"2141***","name":"上海******公司","by":"ByName","type":"E"}] | string | |
| version | 版本号 | V1.0 | string | |
| finishDate | 创作完成日期 | 2017-03-08T00:00:00 | string | |
| publishDate | 首次发表日期 | 2017-07-12T00:00:00 | string | |
| registrationDate | 登记批准日期 | 2017-12-13T00:00:00 | string | |
| publishYear | 公布年份 | 2017 | string | |
| state | 状态 | 登记 | string | |
| stateDate | 日期 | string | ||
| powerScope | 权利范围 | 全部权利 | string | |
| powerGainMethod | 权利取得方式 | 原始取得 | string | |
| isHistory | 是否历史 | 0 | string |
| code | msg |
| 0 | 未知错误 |
| 1 | 提交失败 |
| 2 | 提交成功 |
| 400 | 非法ip访问 |
| 401 | 帐号不能为空 |
| 402 | 密码不能为空 |
| 403 | 应用不存在 |
| 404 | 姓名不能为空 |
| 4041 | 姓名格式不正确(2-10个中文汉字) |
| 406 | 企业名称、统代、组织机构代码、工商注册号四选一 |
| 407 | 每页条数最大50 |
| 4061 | 身份证格式不正确 |
| 405 | API ID 或 API KEY 不正确 |
| 4050 | 账号被冻结 |
| 40501 | 动态密码已过期 |
| 40502 | 动态密码校验失败 |
| 40505 | 没有签定合同 |
| 4051 | 剩余条数不足 |
| 4052 | 访问 ip 与备案 ip 不符 |
| 4086 | 通道无效 |
| 4010 | 通道错误 |
| 4201 | 查询无结果 |
| 4202 | 查询失败 |
| 4203 | 参数有误或者不支持查询关键字,请检查 |
https://api.ihuyi.com/idcard/entcopy/Submit.json?account=xxxxxxxx&password=xxxxxxxxx&ent_name=上海************有限公司&ent_code=913******&organization_code=403925******®_no=403925******&year=2024©right_type=P®_num=403925******©right_name=**著作&owner=张&page_index=1&page_size=50&time=1623643787
示例(成功)
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>2</code><msg>查询成功</msg><idcardid>16236437872836</idcardid><result><total>1</total><lists><list><entityName>上海市************</entityName><copyrightType>软件著作权证书</copyrightType><copyrightTypeCode>S</copyrightTypeCode><registrationNum>2017*******</registrationNum><categoryType></categoryType><copyrightName>***软件</copyrightName><copyrightNameAbbr></copyrightNameAbbr><copyrightOwner>上海市***********公司</copyrightOwner><copyrightOwnerType>E</copyrightOwnerType><author></author><relatedEntity>[{"item":"2141***","name":"上海******公司","by":"ByName","type":"E"}]</relatedEntity><version>V1.0</version><finishDate>2017-03-08T00:00:00</finishDate><publishDate>2017-07-12T00:00:00</publishDate><registrationDate>2017-12-13T00:00:00</registrationDate><publishYear>2017</publishYear><state>登记</state><stateDate></stateDate><powerScope>全部权利</powerScope><powerGainMethod>原始取得</powerGainMethod><isHistory>0</isHistory></list><list><entityName>上海市************</entityName><copyrightType>软件著作权证书</copyrightType><copyrightTypeCode>S</copyrightTypeCode><registrationNum>2017*******</registrationNum><categoryType></categoryType><copyrightName>***软件</copyrightName><copyrightNameAbbr></copyrightNameAbbr><copyrightOwner>上海市***********公司</copyrightOwner><copyrightOwnerType>E</copyrightOwnerType><author></author><relatedEntity>[{"item":"2141***","name":"上海******公司","by":"ByName","type":"E"}]</relatedEntity><version>V1.0</version><finishDate>2017-03-08T00:00:00</finishDate><publishDate>2017-07-12T00:00:00</publishDate><registrationDate>2017-12-13T00:00:00</registrationDate><publishYear>2017</publishYear><state>登记</state><stateDate></stateDate><powerScope>全部权利</powerScope><powerGainMethod>原始取得</powerGainMethod><isHistory>0</isHistory></list><list><entityName>上海市************</entityName><copyrightType>软件著作权证书</copyrightType><copyrightTypeCode>S</copyrightTypeCode><registrationNum>2017*******</registrationNum><categoryType></categoryType><copyrightName>***软件</copyrightName><copyrightNameAbbr></copyrightNameAbbr><copyrightOwner>上海市***********公司</copyrightOwner><copyrightOwnerType>E</copyrightOwnerType><author></author><relatedEntity>[{"item":"2141***","name":"上海******公司","by":"ByName","type":"E"}]</relatedEntity><version>V1.0</version><finishDate>2017-03-08T00:00:00</finishDate><publishDate>2017-07-12T00:00:00</publishDate><registrationDate>2017-12-13T00:00:00</registrationDate><publishYear>2017</publishYear><state>登记</state><stateDate></stateDate><powerScope>全部权利</powerScope><powerGainMethod>原始取得</powerGainMethod><isHistory>0</isHistory></list></lists></result></SubmitResult>
{ "code":
2
, "msg":
"查询成功"
, "idcardid":
"16236437872836"
, "result":
{ "total":
"1"
, "lists":
[ { "entityName":
"上海市************"
, "copyrightType":
"软件著作权证书"
, "copyrightTypeCode":
"S"
, "registrationNum":
"2017*******"
, "categoryType":
""
, "copyrightName":
"***软件"
, "copyrightNameAbbr":
""
, "copyrightOwner":
"上海市***********公司"
, "copyrightOwnerType":
"E"
, "author":
""
, "relatedEntity":
"[{\"item\":\"2141***\",\"name\":\"上海******公司\",\"by\":\"ByName\",\"type\":\"E\"}]"
, "version":
"V1.0"
, "finishDate":
"2017-03-08T00:00:00"
, "publishDate":
"2017-07-12T00:00:00"
, "registrationDate":
"2017-12-13T00:00:00"
, "publishYear":
"2017"
, "state":
"登记"
, "stateDate":
""
, "powerScope":
"全部权利"
, "powerGainMethod":
"原始取得"
, "isHistory":
"0"
}
, { "entityName":
"上海市************"
, "copyrightType":
"软件著作权证书"
, "copyrightTypeCode":
"S"
, "registrationNum":
"2017*******"
, "categoryType":
""
, "copyrightName":
"***软件"
, "copyrightNameAbbr":
""
, "copyrightOwner":
"上海市***********公司"
, "copyrightOwnerType":
"E"
, "author":
""
, "relatedEntity":
"[{\"item\":\"2141***\",\"name\":\"上海******公司\",\"by\":\"ByName\",\"type\":\"E\"}]"
, "version":
"V1.0"
, "finishDate":
"2017-03-08T00:00:00"
, "publishDate":
"2017-07-12T00:00:00"
, "registrationDate":
"2017-12-13T00:00:00"
, "publishYear":
"2017"
, "state":
"登记"
, "stateDate":
""
, "powerScope":
"全部权利"
, "powerGainMethod":
"原始取得"
, "isHistory":
"0"
}
, { "entityName":
"上海市************"
, "copyrightType":
"软件著作权证书"
, "copyrightTypeCode":
"S"
, "registrationNum":
"2017*******"
, "categoryType":
""
, "copyrightName":
"***软件"
, "copyrightNameAbbr":
""
, "copyrightOwner":
"上海市***********公司"
, "copyrightOwnerType":
"E"
, "author":
""
, "relatedEntity":
"[{\"item\":\"2141***\",\"name\":\"上海******公司\",\"by\":\"ByName\",\"type\":\"E\"}]"
, "version":
"V1.0"
, "finishDate":
"2017-03-08T00:00:00"
, "publishDate":
"2017-07-12T00:00:00"
, "registrationDate":
"2017-12-13T00:00:00"
, "publishYear":
"2017"
, "state":
"登记"
, "stateDate":
""
, "powerScope":
"全部权利"
, "powerGainMethod":
"原始取得"
, "isHistory":
"0"
}
]
}
}
示例(失败)
<?xml version="1.0" encoding="utf-8"?><SubmitResult><code>1</code><msg>查询失败</msg></SubmitResult> {"code":1,"msg":"查询失败"}
$account = 'xxxxxxxx';
$password = 'xxxxxxxxx';
$app = 'entcopy'; //固定值
$ent_name = '上海************有限公司';
$ent_code = '913******';
$time = '1623643787';
$password=md5($account.$password.$app.$ent_name.$ent_code.$time);
$password=md5('xxxxxxxxxxxxxxxxxentcopy上海************有限公司913******1623643787');
//注意:所有字符编码统一为UTF-8