|
注册
首页
联系我们

专利数据检索 [P001]检索式统计专利量

[P001]检索式统计专利量公开
V1
可以通过标准的PatSnap检索式查询搜索我们的全球专利数据库, 得到不同检索式统计的专利量,需要了解关于PatSnap搜索语法的信息,请参阅https://analytics.zhihuiya.com/search_helper。

基本信息

接口地址: /search/patent/query-search-count

请求方式: post

返回格式: application/json

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

接口说明文档下载

请求参数

body
QuerySearchCountRequest
ParameterTypeRequiredDescriptionSample
collapse_orderstringfalse
选择专利去重的排序顺序,如果collapse_type等于APNO,collapse_by等于APD或PBD,collapse_order的有效值应该为OLDEST或LATEST
LATEST
collapse_bystringfalse
选择专利去重的排序字段,如:APD按申请日排序、PBD按公开日排序、AUTHORITY按受理局排序,以及SCORE按照查询相关性排序
PBD
collapse_typestringfalse
选择专利去重条件,如:ALL不去重、APNO按申请号去重、DOCDB按简单同族去重、INPADOC按inpadoc同族去重,以及EXTEND按patsnap同族去重,空值默认为ALL
DOCDB
query_textstringtrue
请输入Analytics检索式,最大长度为1500字符。
TACD: virtual reality

请求示例

  • Curl
  • NodeJs
  • Python
  • Java
curl -X POST "https://connect.zhihuiya.com/search/patent/query-search-count?apikey="
-H "Content-Type:application/json"
-H "authorization:Bearer {token}"
-d '{"query_text":"TACD: virtual reality","collapse_by":"PBD","collapse_type":"DOCDB","collapse_order":"LATEST"}'
const axios = require('axios');
const options = {
    url: "https://connect.zhihuiya.com/search/patent/query-search-count",
    method: "POST",
    headers: {
        'Content-Type': 'application/json',
        'authorization': 'Bearer {token}',
    },
    params: {
        'apikey': '',
    },
    data: {
        "query_text": "TACD: virtual reality",
        "collapse_by": "PBD",
        "collapse_type": "DOCDB",
        "collapse_order": "LATEST"
    }
};
axios(options).then(res => {
    console.log(res.data)
}).catch(err => {
    console.log(err)
})
import requests
url = "https://connect.zhihuiya.com/search/patent/query-search-count"

params = {
    "apikey": ""
}

payload = {
    "query_text": "TACD: virtual reality",
    "collapse_by": "PBD",
    "collapse_type": "DOCDB",
    "collapse_order": "LATEST"
}

headers = {
    "Content-Type": "application/json",
    "authorization": "Bearer {token}"
}

response = requests.request("POST", url, params=params, json=payload, headers=headers)

print(response.text)
public static void main(String[] args) {
    String host = "https://connect.zhihuiya.com";
    String path = "/search/patent/query-search-count";

    Map headers = new HashMap();
    headers.put("Content-Type", "application/json");
    headers.put("authorization", "Bearer {token}");

    Map querys = new HashMap();
    querys.put("apikey", "");
    JSONObject dataBody = (JSONObject)JSON.parse("{\"query_text\":\"TACD: virtual reality\",\"collapse_by\":\"PBD\",\"collapse_type\":\"DOCDB\",\"collapse_order\":\"LATEST\"}");

    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.doPost(host, path, null, headers, querys, dataBody.toJSONString());
        System.out.println(EntityUtils.toString(response.getEntity()));
    } catch (Exception e) {
        e.printStackTrace();
    }
}
复制

返回参数

CommonResponse
ParameterTypeRequiredDescriptionSample
data
objectfalse
响应数据
no sample
status
booleantrue
状态
false
error_msg
stringfalse
错误信息
The request parameter format is incorrect!
error_code
integertrue
错误代码
0
SearchPatentCountResponse
ParameterTypeRequiredDescriptionSample
total_search_result_count
integerfalse
检索到的结果数
1000

返回状态码

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

返回示例

  • json
{
    "data": {
        "total_search_result_count": 1000
    },
    "status": true,
    "error_code": 0
}
复制
[P002]检索式检索专利