接口地址: /image-search/search-id
请求方式: get
返回格式: application/json
Parameter | Type | Required | Description | Sample |
url | string | true | 图像的URL | https://img2.baidu.com/it/u=3901385603,500927275&fm=253&fmt=auto&app=138&f=JPEG?w=680&h=434 |
loc | string | false | LOC分类(洛迦诺分类号)是针对外观设计专利的通用分类体系
搜索任意层级的分类号,多个分类号可以用逻辑符AND/OR/NOT连接 | (01-01 OR 01-02) |
assignees | string | false | 申请(专利权)人 | 华为 |
legal_status | string | false | 专利的法律状态
1: 公开 2: 实质审查 3: 授权 8: 避重授权 11: 撤回 13: 驳回 14: 全部撤销 15: 期限届满 16: 未缴年费 21: 权利恢复 22: 权利终止 23: 部分无效 24: 申请终止 30: 放弃 222: PCT国际公布 223: PCT进入指定国(指定期内) 224: PCT进入指定国(指定期满) 225: PCT未进指定国,可以多选,多个内容项之间用英文,隔开。 | 3,2 |
country | string | false | 专利受理局(国家/组织/地区代码)
输入国家代码进行检索结果筛选,国家代码请参照https://analytics.zhihuiya.com/status,可以多选,多个内容项之间用英文,隔开。 | CN,US |
simple_legal_status | string | false | 专利的简单法律状态
0:失效 1:有效 2:审中 220:PCT指定期满 221:PCT指定期内 999:未确认,可以多选,多个内容项之间用英文,隔开。 | 1,2 |
main_field | string | false | 专利主要字段
主要字段包括标题、摘要、权利要求、说明书、公开号、申请号、申请人、发明人和IPC/UPC/LOC分类号 | car |
apply_start_time | string | false | 专利申请起始时间,格式:yyyyMMdd | 20100101 |
apply_end_time | string | false | 专利申请截止时间,格式:yyyyMMdd
| 20200101 |
public_start_time | string | false | 专利公开起始时间,格式:yyyyMMdd | 20100101 |
public_end_time | string | false | 专利公开截止时间,格式:yyyyMMdd | 20200101 |
limit | integer | true | 返回专利条数, 1 <= limit <= 100,默认为10 | 10 |
field | string | false | field支持APD,PBD,ISD | PBD |
order | string | false | order支持desc,asc。默认desc | desc |
curl -X GET "https://connect.zhihuiya.com/image-search/search-id?url=https%3A%2F%2Fimg2.baidu.com%2Fit%2Fu%3D3901385603%2C500927275%26fm%3D253%26fmt%3Dauto%26app%3D138%26f%3DJPEG%3Fw%3D680%26h%3D434&loc=%2801-01%20OR%2001-02%29&assignees=%E5%8D%8E%E4%B8%BA&legal_status=3%2C2&country=CN%2CUS&simple_legal_status=1%2C2&main_field=car&apply_start_time=20100101&apply_end_time=20200101&public_start_time=20100101&public_end_time=20200101&limit=10&field=PBD&order=desc&apikey="
-H "Content-Type:application/json"
-H "authorization:Bearer {token}"
-H "X-PatSnap-Version:{version}"
const axios = require('axios');
const options = {
url: "https://connect.zhihuiya.com/image-search/search-id",
method: "GET",
headers: {
'Content-Type': 'application/json',
'authorization': 'Bearer {token}',
'X-PatSnap-Version': '{version}',
},
params: {
'url': 'https://img2.baidu.com/it/u=3901385603,500927275&fm=253&fmt=auto&app=138&f=JPEG?w=680&h=434',
'loc': '(01-01 OR 01-02)',
'assignees': '华为',
'legal_status': '3,2',
'country': 'CN,US',
'simple_legal_status': '1,2',
'main_field': 'car',
'apply_start_time': '20100101',
'apply_end_time': '20200101',
'public_start_time': '20100101',
'public_end_time': '20200101',
'limit': '10',
'field': 'PBD',
'order': 'desc',
'apikey': '',
},
};
axios(options).then(res => {
console.log(res.data)
}).catch(err => {
console.log(err)
})
import requests
url = "https://connect.zhihuiya.com/image-search/search-id"
params = {
"url": "https://img2.baidu.com/it/u=3901385603,500927275&fm=253&fmt=auto&app=138&f=JPEG?w=680&h=434",
"loc": "(01-01 OR 01-02)",
"assignees": "华为",
"legal_status": "3,2",
"country": "CN,US",
"simple_legal_status": "1,2",
"main_field": "car",
"apply_start_time": "20100101",
"apply_end_time": "20200101",
"public_start_time": "20100101",
"public_end_time": "20200101",
"limit": "10",
"field": "PBD",
"order": "desc",
"apikey": ""
}
payload = None
headers = {
"Content-Type": "application/json",
"authorization": "Bearer {token}",
"X-PatSnap-Version": "{version}"
}
response = requests.request("GET", url, params=params, data=payload, headers=headers)
print(response.text)
public static void main(String[] args) {
String host = "https://connect.zhihuiya.com";
String path = "/image-search/search-id";
Map headers = new HashMap();
headers.put("Content-Type", "application/json");
headers.put("authorization", "Bearer {token}");
headers.put("X-PatSnap-Version", "{version}");
Map querys = new HashMap();
querys.put("url", "https://img2.baidu.com/it/u=3901385603,500927275&fm=253&fmt=auto&app=138&f=JPEG?w=680&h=434");
querys.put("loc", "(01-01 OR 01-02)");
querys.put("assignees", "华为");
querys.put("legal_status", "3,2");
querys.put("country", "CN,US");
querys.put("simple_legal_status", "1,2");
querys.put("main_field", "car");
querys.put("apply_start_time", "20100101");
querys.put("apply_end_time", "20200101");
querys.put("public_start_time", "20100101");
querys.put("public_end_time", "20200101");
querys.put("limit", "10");
querys.put("field", "PBD");
querys.put("order", "desc");
querys.put("apikey", "");
try {
/**
* Important Tips:
* Please Download HttpUtils From
* https://github.com/aliyun/api-gateway-demo-sign-java/blob/master/src/main/java/com/aliyun/api/gateway/demo/util/HttpUtils.java
*
* Please refer to the corresponding dependence:
* https://github.com/aliyun/api-gateway-demo-sign-java/blob/master/pom.xml
*/
HttpResponse response = HttpUtils.doGet(host, path, null, headers, querys);
System.out.println(EntityUtils.toString(response.getEntity()));
} catch (Exception e) {
e.printStackTrace();
}
}
Parameter | Type | Description | Sample |
error_msg | string | 错误信息 | The request parameter format is incorrect! |
data | object | 响应数据 | no sample |
error_code | integer | 错误代码 | 0 |
status | boolean | 状态 | false |
Parameter | Type | Description | Sample |
patent_messages | array | 相似专利信息 | Please check the form: PatentMessage |
search_id | string | 检索任务ID | C8C1EC5B3B068562CEFA779B7CC9C7F5-1-D |
total_search_result_count | integer | 检索结果数 | 100 |
Parameter | Type | Description | Sample |
patent_id | string | 相似专利ID | 002853ca-7b58-4b11-8142-7525a466491e |
patent_pn | string | 相似专利号 | HK04110995S |
title | string | 专利名称 | 智能手表 |
url | string | 相似的专利附图 | https://img2.baidu.com/it/u=3901385603,500927275&fm=253&fmt=auto&app=138&f=JPEG?w=680&h=434 |
score | number | 相似度分数(仅当按照相似度排序时有效,即请求参数field置空) | 0.99 |
error_code | Description |
0 | 请求成功 |
68300004 | 请求参数异常! |
68300005 | 查询Api失败! |
68300006 | 解析基本存取错误! |
68300007 | 存在错误的请求! |
68300008 | 服务中断异常,请稍后再试! |
68300010 | 文件不符合上传规范! |
67200001 | API整体限流错误! |
67200002 | 用户调用请求限流限制错误! |
67200003 | 申请token的key和secret不正确或者状态错误! |
67200004 | 无权限或该接口的套餐已超过系统设置的上限! |
67200005 | 账户余额不足,调用失败! |
67200006 | 客户端已过期,调用失败! |
{
"data": {
"patent_messages": [
{
"patent_id": "002853ca-7b58-4b11-8142-7525a466491e",
"score": 0.99,
"patent_pn": "HK04110995S",
"title": "智能手表",
"url": "https://img2.baidu.com/it/u=3901385603,500927275&fm=253&fmt=auto&app=138&f=JPEG?w=680&h=434"
}
],
"total_search_result_count": 100,
"search_id": "C8C1EC5B3B068562CEFA779B7CC9C7F5-1-D"
},
"error_code": 0,
"status": true
}