Google學者API
最后更新于
最后更新于
端點
GET https://serpapi.abcproxy.com/search
描述
我們的Google學者 API 允許您從Google學者搜尋查詢中抓取 SERP 結果。該 API 可透過以下端點存取:
/search?engine=google_scholar
。使用者可以使用
GET
請求查詢以下內容:https://serpapi.abcproxy.com/search
。請造訪 以取得即時互動式展示。
curl -X GET "https://serpapi.abcproxy.com/search" \
-d "engine=google_scholar" \
-d "q=Coffee" \
-d "no_cache=false" \
-d "api_key=YOUR_API_KEY"
import requests
params = {
"engine": "google_scholar",
"q": "Coffee",
"no_cache": "false",
"api_key": "YOUR_API_KEY"
}
response = requests.get("https://serpapi.abcproxy.com/search", params=params)
print(response.json())
const axios = require('axios');
const params = {
engine: "google_scholar",
q: "Coffee",
no_cache: "false",
api_key: "YOUR_API_KEY"
};
axios.get("https://serpapi.abcproxy.com/search", { params })
.then(response => console.log(response.data));
GET /search?engine=google_scholar&q=Coffee&no_cache=false&api_key=YOUR_API_KEY HTTP/1.1
Host: serpapi.abcproxy.com
<?php
$client = new \GuzzleHttp\Client();
$response = $client->get('https://serpapi.abcproxy.com/search', [
'query' => [
'engine' => 'google_scholar',
'q' => 'Coffee',
'no_cache' => 'false',
'api_key' => 'YOUR_API_KEY'
]
]);
echo $response->getBody();
package main
import (
"net/http"
"io/ioutil"
"log"
)
func main() {
client := &http.Client{}
req, _ := http.NewRequest("GET", "https://serpapi.abcproxy.com/search", nil)
q := req.URL.Query()
q.Add("engine", "google_scholar")
q.Add("q", "Coffee")
q.Add("no_cache", "false")
q.Add("api_key", "YOUR_API_KEY")
req.URL.RawQuery = q.Encode()
resp, _ := client.Do(req)
body, _ := ioutil.ReadAll(resp.Body)
log.Println(string(body))
}
using System;
using System.Net.Http;
class Program
{
static async Task Main()
{
var client = new HttpClient();
var query = System.Web.HttpUtility.ParseQueryString(string.Empty);
query["engine"] = "google_scholar";
query["q"] = "Coffee";
query["no_cache"] = "false";
query["api_key"] = "YOUR_API_KEY";
var response = await client.GetAsync(
$"https://serpapi.abcproxy.com/search?{query}"
);
Console.WriteLine(await response.Content.ReadAsStringAsync());
}
}
import java.net.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
String url = "https://serpapi.abcproxy.com/search" +
"?engine=google_scholar" +
"&q=Coffee" +
"&no_cache=false" +
"&api_key=YOUR_API_KEY";
HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();
conn.setRequestMethod("GET");
BufferedReader in = new BufferedReader(
new InputStreamReader(conn.getInputStream())
);
String response = in.lines().collect(Collectors.joining());
System.out.println(response);
}
}
搜尋查詢
q
字符串
是
參數定義您要搜尋的查詢。您也可以在查詢中使用輔助工具,如:author:
或source:
。
使用cites
參數使q
變為可選。將cites
與q
一起使用會觸發在引用文章中的搜尋。
禁止將cluster
與q
和cites
參數一起使用。僅使用cluster
參數。
Coffee
進階 Google Scholar 參數
cites
字符串
否
參數定義文章的唯一 ID 以觸發被引用搜尋。使用 cites
將顯示 Google Scholar 中引用文件的列表。範例值:cites=1275980731835430123
。使用 cites
和 q
參數會觸發在引用文章中的搜尋。
cites=1275980731835430123
as_ylo
字符串
否
參數定義您希望包含結果的起始年份。(例如,如果您將 as_ylo 參數設為 2018
年,該年份之前的結果將被省略。)此參數可以與 as_yhi 參數結合使用。
2018
as_yhi
字符串
否
參數定義您希望包含結果的截止年份。(例如,如果您將 as_yhi 參數設為 2018
年,該年份之後的結果將被省略。)此參數可以與 as_ylo 參數結合使用。
2018
scisbd
字符串
否
參數定義去年新增的文章,按日期排序。可以設為 1
僅包含摘要,或 2
包含所有內容。預設值為 0
,表示文章按相關性排序。
1
cluster
字符串
否
參數定義文章的唯一 ID 以觸發所有版本搜尋。範例值:cluster=1275980731835430123
。禁止將 cluster
與 q
和 cites
參數一起使用。僅使用 cluster
參數。
cluster=1275980731835430123
本地化
lr
字符串
否
參數定義一種或多種語言來限制搜尋範圍。它使用 lang_{兩字母語言代碼}
來指定語言,使用 `
作為分隔符。(例如,
lang_fr
hl
字符串
否
en
分頁
start
數值
否
參數定義結果偏移量。它跳過給定數量的結果。用於分頁。(例如,0
(預設)是結果的第一頁,10
是結果的第二頁,20
是結果的第三頁,等等)。
10
num
數值
否
參數定義要返回的最大結果數,範圍從 1 到 20,預設為 10。
10
搜尋類型
as_sdt
字符串
否
-
進階過濾器
safe
字符串
否
參數定義成人內容的過濾等級。可以設為 active
或 off
,預設情況下 Google 會模糊顯示明確內容。
off
filter
字符串
否
參數定義「相似結果」和「省略結果」的過濾器是否開啟。可以設為 1
(預設)啟用這些過濾器,或 0
停用這些過濾器。
1
as_vis
字符串
否
參數定義您是否希望包含引用。可以設為 1
排除這些結果,或 0
(預設)包含它們。
1
as_rr
字符串
否
參數定義您是否希望僅顯示評論文章(這些文章包含主題評論,或討論您搜尋的作品或作者)。可以設為 1
啟用此過濾器,或 0
(預設)顯示所有結果。
1
Serpapi 參數
engine
字符串
是
將參數設為 google_scholar
以使用 Google Scholar API 引擎。
google_scholar
no_cache
佈爾值
否
參數將強制 SerpApi 取得結果,即使已存在快取版本。僅當查詢和所有參數完全相同時才提供快取。快取在 1 小時後過期。快取搜尋是免費的,不計入您每月的搜尋次數。可以設為 false
(預設)允許來自快取的結果,或 true
不允許來自快取的結果。
true
或 false
api_key
字符串
是
參數定義要使用的 SerpApi 私鑰。
123
回應體
{
"organic_results": [
{
"title": "The impact of coffee on health",
"result_id": "sWzmct-yYzgJ",
"link": "https://www.sciencedirect.com/science/article/pii/S0378512213000479",
"snippet": "… , where pressed ground coffee beans are used directly, in either espresso or coffee pot so … \nespresso or coffee pots, where boiled water is directly passed through pressed coffee powder …",
"publication_info": {
"summary": "A Cano-Marquina, JJ Tarín, A Cano - Maturitas, 2013 - Elsevier",
"authors": [
{
"link": "https//scholar.google.com/citations?user=nMS5yswAAAAJ&hl=zh-CN&oi=sra",
"author_id": "nMS5yswAAAAJ",
"name": "A Cano-Marquina"
}
]
},
"inline_links": [
{
"name": "Time Cited:528",
"link": "https//scholar.google.com/scholar?cites=4063287961593474225&as_sdt=2005&sciodt=0,5&hl=zh-CN"
},
],
"position": 1
},
{
"resources": [
{
"link": "https://www.thieme-connect.com/products/ejournals/pdf/10.1055/s-0043-115007.pdf",
"file_format": "[PDF]",
"name": " thieme-connect.com"
}
],
"inline_links": [
{
"name": "Time Cited:332",
"link": "https//scholar.google.com/scholar?cites=4227833794020660265&as_sdt=2005&sciodt=0,5&hl=zh-CN"
},
],
"position": 2,
"title": "The impact of coffee on health",
"result_id": "KVT-hW9IrDoJ",
"link": "https://www.thieme-connect.com/products/ejournals/html/10.1055/s-0043-115007",
"snippet": "… coffee, indicating that besides caffeine other components contribute to the health protecting \neffects. For adults consuming moderate amounts of coffee (… information about coffee on health…",
"publication_info": {
"summary": "K Nieber - Planta medica, 2017 - thieme-connect.com"
}
},
{
"title": "Functional properties of coffee and coffee by-products",
"result_id": "9WouRiFbIK4J",
"link": "https://www.sciencedirect.com/science/article/pii/S0963996911003449",
"snippet": "… roasted coffee … coffee, coffee beans and by-products in terms of the associated potential \nhealth benefits. The data in this review have been organized in sections according to the coffee …",
"publication_info": {
"summary": "P Esquivel, VM Jimenez - Food research international, 2012 - Elsevier",
"authors": [
{
"name": "P Esquivel",
"link": "https//scholar.google.com/citations?user=EpwJXskAAAAJ&hl=zh-CN&oi=sra",
"author_id": "EpwJXskAAAAJ"
},
]
},
"resources": [
{
"name": " uoregon.edu",
"link": "https://pages.uoregon.edu/chendon/coffee_literature/old_literature/2012%20Food%20Res.%20Int.,%20Uses%20for%20coffee%20waste.pdf",
"file_format": "[PDF]"
}
],
"inline_links": [
{
"name": "Time Cited:1276",
"link": "https//scholar.google.com/scholar?cites=12547128760323697397&as_sdt=2005&sciodt=0,5&hl=zh-CN"
},
],
"position": 3
},
{
"inline_links": [
{
"name": "Time Cited:252",
"link": "https//scholar.google.com/scholar?cites=3070577447314194755&as_sdt=2005&sciodt=0,5&hl=zh-CN"
},
],
"position": 4,
"title": "Components of coffee",
"result_id": "QwF9cuvhnCoJ",
"link": "https://www.researchgate.net/profile/Maurice-Arnaud/publication/311253694_Metabolism_of_caffeine_and_other_components_of_coffee/links/58f1d0cfa6fdcc11e569e8e8/Metabolism-of-caffeine-and-other-components-of-coffee.pdf",
"snippet": "The metabolism of coffee constituents such as trigonelline, chlorogenic acid with its two \ncomponents, caffeic and quinic acids, are also presented. Other aromatic compounds present in …",
"publication_info": {
"summary": "MJ Arnaud - Caffeine, coffee, and health, 1993 - researchgate.net"
},
"resources": [
{
"name": " researchgate.net",
"link": "https://www.researchgate.net/profile/Maurice-Arnaud/publication/311253694_Metabolism_of_caffeine_and_other_components_of_coffee/links/58f1d0cfa6fdcc11e569e8e8/Metabolism-of-caffeine-and-other-components-of-coffee.pdf",
"file_format": "[PDF]"
}
]
},
{
"inline_links": [
{
"link": "https//scholar.google.com/scholar?cites=11880518133867153220&as_sdt=2005&sciodt=0,5&hl=zh-CN",
"name": "Time Cited:593"
},
],
"position": 5,
"title": "All about coffee",
"result_id": "RAe9DEwU4KQJ",
"link": "https://books.google.com/books?hl=zh-CN&lr=&id=4O_RAAAAMAAJ&oi=fnd&pg=PP31&dq=Coffee&ots=QhgDMfmRdW&sig=FyCAWAgcxISEAUif8az3qc-41ZQ",
"snippet": "… a book on coffee. Subsequently he spent a year in travel among the coffee-producing countries… \nAmong the unique features of the book are the Coffee Thesaurus; the Coffee Chronology, …",
"publication_info": {
"summary": "WH Ukers - 1922 - books.google.com"
},
"resources": [
{
"name": " google.com",
"link": "https://books.google.com/books?hl=zh-CN&lr=&id=4O_RAAAAMAAJ&oi=fnd&pg=PP31&dq=Coffee&ots=QhgDMfmRdW&sig=FyCAWAgcxISEAUif8az3qc-41ZQ",
"file_format": "[HTML]"
}
]
},
{
"publication_info": {
"summary": "JH Bae, JH Park, SS Im, DK Song - Integrative medicine research, 2014 - Elsevier",
"authors": [
{
"author_id": "jfk9T2gAAAAJ",
"name": "SS Im",
"link": "https//scholar.google.com/citations?user=jfk9T2gAAAAJ&hl=zh-CN&oi=sra"
}
]
},
"resources": [
{
"link": "https://www.sciencedirect.com/science/article/pii/S2213422014000456",
"file_format": "[HTML]",
"name": " sciencedirect.com"
}
],
"inline_links": [
{
"name": "Time Cited:212",
"link": "https//scholar.google.com/scholar?cites=11096005482046107145&as_sdt=2005&sciodt=0,5&hl=zh-CN"
},
],
"position": 6,
"title": "Coffee and health",
"result_id": "CS4lXzLu_JkJ",
"link": "https://www.sciencedirect.com/science/article/pii/S2213422014000456",
"snippet": "… It has been told that coffee is a driving force for … to drink coffee, which suggests individual \nvariation to coffee intolerance. The aim of this review is to briefly summarize the effects of coffee …"
},
{
"position": 7,
"title": "Coffee",
"result_id": "F6FR6YN9nBsJ",
"link": "https://link.springer.com/chapter/10.1007/978-3-030-24733-1_23",
"snippet": "… with coffee plants. Coffee crop management plays an important role in the settlement and \nmaintenance of their populations. This chapter covers aspects related to the main coffee crop …",
"publication_info": {
"summary": "CF Carvalho, SM Carvalho, B Souza - 2019 - Springer",
"authors": [
{
"author_id": "70EjKtAAAAAJ",
"name": "SM Carvalho",
"link": "https//scholar.google.com/citations?user=70EjKtAAAAAJ&hl=zh-CN&oi=sra"
},
{
"link": "https//scholar.google.com/citations?user=GFIwzIsAAAAJ&hl=zh-CN&oi=sra",
"author_id": "GFIwzIsAAAAJ",
"name": "B Souza"
}
]
},
"inline_links": [
{
"name": "Time Cited:94",
"link": "https//scholar.google.com/scholar?cites=1989603140899545367&as_sdt=2005&sciodt=0,5&hl=zh-CN"
},
]
},
{
"snippet": "… coffee during brewing, but are mostly removed from coffee by … coffee, Turkish coffee, and \nFrench press (cafetiere) coffee … while filtered coffee, percolated coffee, and instant coffee contain …",
"publication_info": {
"summary": "JV Higdon, B Frei - Critical reviews in food science and nutrition, 2006 - Taylor & Francis",
"authors": [
{
"name": "B Frei",
"link": "https//scholar.google.com/citations?user=H_Fk05wAAAAJ&hl=zh-CN&oi=sra",
"author_id": "H_Fk05wAAAAJ"
}
]
},
"resources": [
{
"file_format": "[PDF]",
"name": " tandfonline.com",
"link": "https://www.tandfonline.com/doi/pdf/10.1080/10408390500400009"
}
],
"inline_links": [
{
"name": "Time Cited:1628",
"link": "https//scholar.google.com/scholar?cites=9616587587181684093&as_sdt=2005&sciodt=0,5&hl=zh-CN"
},
],
"position": 8,
"title": "Coffee and health: a review of recent human research",
"result_id": "fSVlrXX7dIUJ",
"link": "https://www.tandfonline.com/doi/abs/10.1080/10408390500400009"
},
{
"publication_info": {
"summary": "R Clarke, OG Vitzthum - 2008 - books.google.com",
"authors": [
{
"link": "https//scholar.google.com/citations?user=emScaM4AAAAJ&hl=zh-CN&oi=sra",
"author_id": "emScaM4AAAAJ",
"name": "R Clarke"
}
]
},
"inline_links": [
{
"name": "Time Cited:329",
"link": "https//scholar.google.com/scholar?cites=17336467632992178655&as_sdt=2005&sciodt=0,5&hl=zh-CN"
},
{
"name": "Related articles",
"link": "https//scholar.google.com/scholar?q=related:31GOrHWBl_AJ:scholar.google.com/&scioq=Coffee&hl=zh-CN&as_sdt=0,5"
},
],
"position": 9,
"title": "Coffee: recent developments",
"result_id": "31GOrHWBl_AJ",
"link": "https://books.google.com/books?hl=zh-CN&lr=&id=jIFY_Pz8LH0C&oi=fnd&pg=PR3&dq=Coffee&ots=ODIwWoorUH&sig=q5xXwYnYP-_I_us-SUD8MBFKKeY",
"snippet": "… The physiological effects of coffee drinking are considered in a fascinating chapter on coffee \nand health. Agronomic aspects of coffee breeding and growing are covered specifically in …"
},
{
"position": 10,
"title": "Coffee constituents",
"result_id": "xY3q9qnkN54J",
"link": "https://books.google.com/books?hl=zh-CN&lr=&id=fL2lSAMfdwcC&oi=fnd&pg=PT47&dq=Coffee&ots=AH1XtBGHos&sig=JklhRCIm2Yru2be-CKiGbfjAQz8",
"snippet": "… Since the opening of the first coffee house in Mecca at the end of the fifteenth century, coffee \nconsumption has greatly increased all around the world. In 2010, coffee production reached …",
"publication_info": {
"summary": "A Farah - Coffee: Emerging health effects and disease …, 2012 - books.google.com"
},
"resources": [
{
"name": " uoregon.edu",
"link": "https://pages.uoregon.edu/chendon/coffee_literature/old_literature/2012%20Coffee%20Emerging%20Health%20Effects%20and%20Disease%20Prevention,%20Coffee%20Constituents,%20Chapter%202.pdf",
"file_format": "[PDF]"
}
],
"inline_links": [
{
"name": "Time Cited:585",
"link": "https//scholar.google.com/scholar?cites=11400832400354872773&as_sdt=2005&sciodt=0,5&hl=zh-CN"
},
]
}
],
"related_searches": [
{
"name": "coffee shop",
"link": "https//scholar.google.com/scholar?hl=zh-CN&as_sdt=0,5&qsp=1&q=coffee+shop&qst=ib"
},
{
"name": "coffee consumption",
"link": "https//scholar.google.com/scholar?hl=zh-CN&as_sdt=0,5&qsp=2&q=coffee+consumption&qst=ib"
},
],
"pagination": {
"current": 1,
"next": "https//scholar.google.com/scholar?start=10&q=Coffee&hl=zh-CN&as_sdt=0,5",
"other_pages": {
"2": "https//scholar.google.com/scholar?start=10&q=Coffee&hl=zh-CN&as_sdt=0,5",
"3": "https//scholar.google.com/scholar?start=20&q=Coffee&hl=zh-CN&as_sdt=0,5",
"4": "https//scholar.google.com/scholar?start=30&q=Coffee&hl=zh-CN&as_sdt=0,5",
"5": "https//scholar.google.com/scholar?start=40&q=Coffee&hl=zh-CN&as_sdt=0,5",
"6": "https//scholar.google.com/scholar?start=50&q=Coffee&hl=zh-CN&as_sdt=0,5",
"7": "https//scholar.google.com/scholar?start=60&q=Coffee&hl=zh-CN&as_sdt=0,5",
"8": "https//scholar.google.com/scholar?start=70&q=Coffee&hl=zh-CN&as_sdt=0,5",
"9": "https//scholar.google.com/scholar?start=80&q=Coffee&hl=zh-CN&as_sdt=0,5",
"10": "https//scholar.google.com/scholar?start=90&q=Coffee&hl=zh-CN&as_sdt=0,5"
}
},
"search_metadata": {
"created_at": "2025-04-02 18:30:06",
"google_url": "https://scholar.google.com/scholar?filter=0&q=Coffee",
"raw_html_file": "https://webserp.abcproxy.com/files/dfc0e684cc948530/8e7c3998-3148-4d2a-9efa-44f666aacd99.html",
"xray_html_file": "https://webserp.abcproxy.com/files/dfc0e684cc948530/8e7c3998-3148-4d2a-9efa-44f666aacd99.xray",
"total_time_taken": "3.7064",
"id": "8e7c3998-3148-4d2a-9efa-44f666aacd99",
"json_endpoint": "https://webserp.abcproxy.com/files/dfc0e684cc948530/8e7c3998-3148-4d2a-9efa-44f666aacd99.json"
},
"search_parameters": {
"api_key": "YOUR_API_KEY",
"q": "Coffee",
"engine": "google_scholar",
"no_cache": true
},
"url": "https://scholar.google.com/scholar?filter=0&q=Coffee",
"search_information": {
"query_displayed": "Coffee"
}
}
回應欄位
search_parameters
對象
包含查詢參數與搜尋上下文
search_metadata
對象
包含時間與狀態資訊
search_information
對象
搜尋資訊參數
query_displayed
字符串
顯示查詢資訊參數
profiles[]
對象數組
配置檔資訊參數
organic_results[]
對象數組
自然搜尋結果資訊參數
related_searches[]
對象數組
相關搜尋資訊參數
pagination
對象
分頁資訊參數
常見錯誤
200
400
API 金鑰不可為空
200
401
參數錯誤
200
402
API 金鑰錯誤
200
403
餘額不足
200
404
扣款失敗
200
405
記錄使用次數失敗
200
406
不支援的引擎
200
407
網路錯誤
200
408
找不到檔案
200
409
限制參數錯誤
200
410
建構 URL 錯誤
200
411
查詢最近紀錄失敗
200
412
查找 JSON 失敗
200
413
取得 HTML 錯誤
200
414
HTML 為空
200
429
請求過多
錯誤範例
{
"code": 400,
"message": "API Key can not be empty"
}
參數定義用於 Google Scholar 搜尋的語言。這是一個兩字母語言代碼。(例如,en
表示英文,es
表示西班牙文,或 fr
表示法文)。前往 查看支援的 Google 語言完整列表。
參數可以作為搜尋類型或過濾器。
作為過濾器(僅在搜尋文章時有效):
0
- 排除專利(預設)。
7
- 包含專利。
作為搜尋類型:
4
- 選擇案例法(僅限美國法院)。這將選擇所有州和聯邦法院。
例如 as_sdt=4
- 選擇案例法(所有法院)
要選擇特定法院,請查看支援的 完整列表。
例如 as_sdt=4,33,192
- 4
是必需值,應始終位於第一位,33
選擇所有紐約法院,192
選擇稅務法院。
值必須用逗號(,
)分隔