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": []
}
}
}