EverySearch 学术与专利 API

POST

接口健康状态

24h 健康值
正常
  • 健康 / 正常
  • 可用
  • 少量可用
  • 基本不可用
正常

24 小时趋势

30 天趋势

学术文献搜索。kind=patents 切到专利检索(公开号、申请人、发明人、申请与公开日期)

单价 $0.69 / 千次(每次 $0.000694),失败和空结果都不收费。

AI 提示词

#
请帮我用 EveryInfra 的「学术与专利」接口写一个调用脚本。

接口约定:
- 请求:POST https://api.everyinfra.com/api/v1/search,请求头 Authorization: Bearer <API Key>;Key 从环境变量 EVERYINFRA_API_KEY 读取,不要写进代码。
- 请求体里 tool 填 scholar,参数放在 params 里。
- 必填参数:
  - q:查询词。
- 可选参数:
  - num:返回的论文或专利条数,最多 10 条,超过按 10 返回。
  - kind:papers 查论文,patents 查专利。(可选值:papers / patents)
- 示例请求体:
{
  "tool": "scholar",
  "params": {
    "q": "coffee",
    "num": 3
  }
}
- 计费:单价 $0.69 / 千次(每次 $0.000694),失败和空结果都不收费。
- 返回 422 时,按错误信息里的候选参数和允许值修正;返回 429 或 503 时,按 Retry-After 等待后重试。

写代码前,先问清楚我要处理多少个、结果存成什么格式,再把方案和大概花费讲给我确认。

请求参数

#
参数名位置类型必填默认值说明
Authorizationheaderstring是-Bearer 加你的 API Key。在控制台创建;不要放进网址或代码仓库。
toolbodystring是scholar工具名,固定值。
qbody.paramsstring是-查询词。
numbody.paramsinteger (1–10)否10返回的论文或专利条数,最多 10 条,超过按 10 返回。
kindbody.paramsstring (enum)否paperspapers 查论文,patents 查专利。允许值paperspatents

代码示例

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/search' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "tool": "scholar",
  "params": {
    "q": "coffee",
    "num": 3
  }
}'

OpenAPI 定义 (JSON)示例从环境变量 EVERYINFRA_API_KEY 读取 Key,复制出去的代码不含你的 Key。

响应示例

#
2026年10月25日 02:28(北京时间)用上方代码示例的参数真实调用所得。results 与 count 是那次的真实返回,已隐去名字、账号、头像、主页链接、联系方式等个人信息,列表只保留前 2 条;id、billing、quota 每次调用都不同,只给结构。
json
{  "id": "req_…",  "tool": "scholar",  "results": [    {      "title": "The impact of coffee on health",      "url": "https://www.thieme-connect.com/products/all/doi/10.1055/s-0043-115007",      "snippet": "… coffee, indicating that besides caffeine other components contribute to the health protecting effects. For adults consuming moderate amounts of coffee (… information about coffee on health…"    },    {      "title": "The impact of coffee on health",      "url": "https://www.sciencedirect.com/science/article/pii/S0378512213000479",      "snippet": "OBJECTIVE: Coffee is a beverage used worldwide. It includes a wide array of components that can have potential implication on health. We have reviewed publications on the impact of …"    }  ],  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

错误与计费

#
401
缺少 Key 或 Key 无效。
402
余额不足,先充值。
422
参数名或取值不对,按错误信息给的候选改;不扣费。
429
超过每分钟请求上限,按 Retry-After 等待后再试。
503
暂时无法完成,预扣的费用退回;结果未知时先核对,不要直接重发。
200 空结果
没有数据,不扣费。

错误码

Google Analytics 同意才加载 隐私