联系我们
免费注册
[P009]相似外观专利图像检索V2公开
图像搜索支持通过图像URL搜寻相似外观专利,生成专利检索任务ID,并支持最多返回100条专利检索结果
注意:支持常用图像格式(jpg,png),文件小于4M。获得的相似图片路径有效期为9小时(32400秒),过期后会清空; Search ID生成后,建议在20分钟内进行专利获取; 当前接口最多支持返回Top100条,如需要更多检索结果,可以根据返回的search_id调用【[P009]相似外观专利获取V2】接口获取; 如需使用本地图片检索,可以先调用【[P010]专利图像相似检索】接口上传图像,获得公网可以访问的Url

基本信息

接口地址: /image-search/search-id

请求方式: get

返回格式: application/json

登录后即可调试接口,点击 登录/注册

接口说明文档下载

请求参数

query
ParameterTypeRequiredDescriptionSample
urlstringtrue
图像的URL
https://img2.baidu.com/it/u=3901385603,500927275&fm=253&fmt=auto&app=138&f=JPEG?w=680&h=434
locstringfalse
LOC分类(洛迦诺分类号)是针对外观设计专利的通用分类体系 搜索任意层级的分类号,多个分类号可以用逻辑符AND/OR/NOT连接
(01-01 OR 01-02)
assigneesstringfalse
申请(专利权)人
华为
legal_statusstringfalse
专利的法律状态 1: 公开 2: 实质审查 3: 授权 8: 避重授权 11: 撤回 13: 驳回 14: 全部撤销 15: 期限届满 16: 未缴年费 21: 权利恢复 22: 权利终止 23: 部分无效 24: 申请终止 30: 放弃 222: PCT国际公布 223: PCT进入指定国(指定期内) 224: PCT进入指定国(指定期满) 225: PCT未进指定国,可以多选,多个内容项之间用英文,隔开。
3,2
countrystringfalse
专利受理局(国家/组织/地区代码) 输入国家代码进行检索结果筛选,国家代码请参照https://analytics.zhihuiya.com/status,可以多选,多个内容项之间用英文,隔开。
CN,US
simple_legal_statusstringfalse
专利的简单法律状态 0:失效 1:有效 2:审中 220:PCT指定期满 221:PCT指定期内 999:未确认,可以多选,多个内容项之间用英文,隔开。
1,2
main_fieldstringfalse
专利主要字段 主要字段包括标题、摘要、权利要求、说明书、公开号、申请号、申请人、发明人和IPC/UPC/LOC分类号
car
apply_start_timestringfalse
专利申请起始时间,格式:yyyyMMdd
20100101
apply_end_timestringfalse
专利申请截止时间,格式:yyyyMMdd
20200101
public_start_timestringfalse
专利公开起始时间,格式:yyyyMMdd
20100101
public_end_timestringfalse
专利公开截止时间,格式:yyyyMMdd
20200101
limitintegertrue
返回专利条数, 1 <= limit <= 100,默认为10
10
fieldstringfalse
field支持APD,PBD,ISD
PBD
orderstringfalse
order支持desc,asc。默认desc
desc

请求示例

  • Curl
  • NodeJs
  • Python
  • Java
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();
    }
}
复制

返回参数

CommonResponse
ParameterTypeDescriptionSample
error_msgstring
错误信息
The request parameter format is incorrect!
dataobject
响应数据
no sample
error_codeinteger
错误代码
0
statusboolean
状态
false
ImageSearchResponseNew
ParameterTypeDescriptionSample
patent_messagesarray
相似专利信息
Please check the form: PatentMessage
search_idstring
检索任务ID
C8C1EC5B3B068562CEFA779B7CC9C7F5-1-D
total_search_result_countinteger
检索结果数
100
PatentMessage
ParameterTypeDescriptionSample
patent_idstring
相似专利ID
002853ca-7b58-4b11-8142-7525a466491e
patent_pnstring
相似专利号
HK04110995S
titlestring
专利名称
智能手表
urlstring
相似的专利附图
https://img2.baidu.com/it/u=3901385603,500927275&fm=253&fmt=auto&app=138&f=JPEG?w=680&h=434
scorenumber
相似度分数(仅当按照相似度排序时有效,即请求参数field置空)
0.99

返回状态码

error_codeDescription
0请求成功
68300004请求参数异常!
68300005查询Api失败!
68300006解析基本存取错误!
68300007存在错误的请求!
68300008服务中断异常,请稍后再试!
68300010文件不符合上传规范!
67200001API整体限流错误!
67200002用户调用请求限流限制错误!
67200003申请token的key和secret不正确或者状态错误!
67200004无权限或该接口的套餐已超过系统设置的上限!
67200005账户余额不足,调用失败!
67200006客户端已过期,调用失败!

返回示例

  • json
{
    "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
}
复制