API Hop 文档
Google Scholar 接口参考
搜索 Google Scholar 学术文章、作者资料、引用和判例。
并发上限
AI 与 Data 分别共享账户级并发槽位,默认 5 AI / 2 Data,订阅套餐可调整上限。接口单独配置仍受分类总上限约束。达到任一上限返回 HTTP 429;异步任务执行结束前占用槽位。
GET /v1/google-scholar/search GET /v1/google-scholar/author GET /v1/google-scholar/case-law GET /v1/google-scholar/cite 搜索 Google Scholar 学术文章、作者资料、引用和判例。
认证与计费
默认每次成功请求 $0.0003(300 credits)。 使用 API Hop API Key。可用性取决于已启用网关和密钥权限。每次成功请求的价格以当前目录和账户显示为准,账户专属价格优先。成功的空结果也计费,失败请求释放预占额度。超时为 60 秒,不自动重试或翻页,结算失败不会重复调用上游。
Authorization: Bearer YOUR_API_KEY仅接受查询参数,不接受请求体。拒绝未知、重复、空值或无效参数,已说明的 geo 和 gprop 空值除外。仅支持 JSON,不自动翻页或重试。AND 表示同时提供,OR 表示任一,XOR 表示二选一,NOT 表示不能提供,=> 表示需要。标识和新闻令牌应从最新响应复制;示例不代表真实测试结果。每次成功查询分别计费。
Google Scholar: 搜索学术文章
GET https://api.apihop.ai/v1/google-scholar/search
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
query | string | 搜索词; query: optional | machine learning |
language | string | 语言; language: optional | - |
page | integer | 页码(从 1 开始); page: optional; min: 1; max: 101 | 1 |
device | string | 设备; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不归档响应产物; zero_trace: optional | true |
cites | string | 被引用文章标识列表 (cites); cites: optional; ^[1-9][0-9]{0,19}(?:,[1-9][0-9]{0,19}){0,19}$ | - |
cluster | string | 文章版本聚类标识 (cluster); cluster: optional; ^[1-9][0-9]{0,19}$ | - |
as_ylo | integer | 发表年份边界 (as_ylo); as_ylo: optional; min: 1; max: 9999 | 1 |
as_yhi | integer | 发表年份边界 (as_yhi); as_yhi: optional; min: 1; max: 9999 | 1 |
scisbd | integer | 学术文章筛选 (scisbd); scisbd: optional; min: 0; max: 2 | 0 |
filter | integer | 学术文章筛选 (filter); filter: optional; min: 0; max: 1 | 0 |
as_vis | integer | 学术文章筛选 (as_vis); as_vis: optional; min: 0; max: 1 | 0 |
as_rr | integer | 学术文章筛选 (as_rr); as_rr: optional; min: 0; max: 1 | 0 |
start | integer | 原生结果偏移量 (start); start: optional; min: 0; max: 1000 | 0 |
num | integer | 每页结果数 (num); 默认值: 10; num: optional; min: 1; max: 20 | 1 |
lr | string | 文献语言筛选 (lr); lr: optional; UTF-8 bytes: 1024 | - |
as_sdt | string | 文章类型或法院筛选 (as_sdt); 示例: 4,33,192; as_sdt: optional; UTF-8 bytes: 1024; ^[0-9]{1,8}(?:,[0-9]{1,6})*$ | - |
safe | string | 学术文章筛选 (safe); safe: optional; active, off | active |
校验规则
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/NOT (page AND start)as_ylo <= as_yhi; cluster => NOT (query OR cites); identifiers remain strings to preserve numeric precisionscisbd: 0 = relevance, 1 = recent abstracts, 2 = recent articles; filter: 1 = filter similar results; as_vis: 1 = exclude citation-only records; as_rr: 1 = review articles onlyquery OR cites OR cluster: required
示例
curl --get "https://api.apihop.ai/v1/google-scholar/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=machine learning"Google Scholar: 查询作者资料
GET https://api.apihop.ai/v1/google-scholar/author
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
id | string | 搜索结果中的标识 (id); id: REQUIRED | qc6CJjYAAAAJ |
language | string | 语言; language: optional | - |
page | integer | 页码(从 1 开始); page: optional; min: 1; max: 1000 | 1 |
sort_by | string | 排序; sort_by: optional; year, citations, pubdate, title | year |
device | string | 设备; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不归档响应产物; zero_trace: optional | true |
view_op | string | 作者资料查询模式 (view_op); view_op: optional; view_citation, list_colleagues | view_citation |
citation_id | string | 作者文章完整标识 (citation_id); citation_id: optional; ^[A-Za-z0-9_-]{12}:[A-Za-z0-9_-]{1,100}$ | - |
start | integer | 原生结果偏移量 (start); start: optional; min: 0; max: 10000 | 0 |
num | integer | 每页结果数 (num); num: optional; min: 1; max: 100 | 1 |
校验规则
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/NOT (page AND start)view_op = view_citation <=> citation_id; citation_id prefix before colon must equal idid, citation_id: copy from fresh author search/profile results; list_colleagues selects co-authors
示例
curl --get "https://api.apihop.ai/v1/google-scholar/author" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=qc6CJjYAAAAJ"Google Scholar: 搜索判例
GET https://api.apihop.ai/v1/google-scholar/case-law
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
query | string | 搜索词; query: optional | Brown v Board of Education |
language | string | 语言; language: optional | - |
page | integer | 页码(从 1 开始); page: optional; min: 1; max: 101 | 1 |
device | string | 设备; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不归档响应产物; zero_trace: optional | true |
cites | string | 被引用文章标识列表 (cites); cites: optional; ^[1-9][0-9]{0,19}(?:,[1-9][0-9]{0,19}){0,19}$ | - |
cluster | string | 文章版本聚类标识 (cluster); cluster: optional; ^[1-9][0-9]{0,19}$ | - |
as_ylo | integer | 发表年份边界 (as_ylo); as_ylo: optional; min: 1; max: 9999 | 1 |
as_yhi | integer | 发表年份边界 (as_yhi); as_yhi: optional; min: 1; max: 9999 | 1 |
scisbd | integer | 学术文章筛选 (scisbd); scisbd: optional; min: 0; max: 2 | 0 |
filter | integer | 学术文章筛选 (filter); filter: optional; min: 0; max: 1 | 0 |
as_vis | integer | 学术文章筛选 (as_vis); as_vis: optional; min: 0; max: 1 | 0 |
as_rr | integer | 学术文章筛选 (as_rr); as_rr: optional; min: 0; max: 1 | 0 |
start | integer | 原生结果偏移量 (start); start: optional; min: 0; max: 1000 | 0 |
num | integer | 每页结果数 (num); 默认值: 10; num: optional; min: 1; max: 20 | 1 |
lr | string | 文献语言筛选 (lr); lr: optional; UTF-8 bytes: 1024 | - |
as_sdt | string | 文章类型或法院筛选 (as_sdt); 示例: 4,33,192; as_sdt: optional; UTF-8 bytes: 1024; ^[0-9]{1,8}(?:,[0-9]{1,6})*$ | - |
safe | string | 学术文章筛选 (safe); safe: optional; active, off | active |
case_id | string | 判决书标识 (case_id); case_id: optional; ^[1-9][0-9]{0,19}$ | - |
校验规则
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/NOT (page AND start)as_ylo <= as_yhi; cluster => NOT (query OR cites); identifiers remain strings to preserve numeric precisionscisbd: 0 = relevance, 1 = recent abstracts, 2 = recent articles; filter: 1 = filter similar results; as_vis: 1 = exclude citation-only records; as_rr: 1 = review articles onlycase_id OR query OR cites OR cluster: requiredcase_id => only case_id, language, device, zero_trace; NOT search filters or paginationas_sdt: 4 OR 4,court_id[,court_id...]
示例
curl --get "https://api.apihop.ai/v1/google-scholar/case-law" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=Brown v Board of Education"Google Scholar: 查询引用格式
GET https://api.apihop.ai/v1/google-scholar/cite
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
id | string | 搜索结果中的标识 (id); id: REQUIRED; ^[A-Za-z0-9_-]{12}$ | p7YVSi5UNiMJ |
language | string | 语言; language: optional | - |
device | string | 设备; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不归档响应产物; zero_trace: optional | true |
校验规则
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/id: copy from a fresh Scholar search result; illustrative sample IDs do not prove availability
示例
curl --get "https://api.apihop.ai/v1/google-scholar/cite" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=p7YVSi5UNiMJ"响应与错误
保留原生 JSON 响应和数字精度。下方仅为空成功结果示例,不是真实调用。HTTP 400 表示输入无效;401 需要认证;402 余额不足;403 不可用或无权限;405 方法不支持;429 限流;5xx 服务或上游故障。请保留 X-Request-Id 以便排查。
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}