Call it
curl https://api.peume.com/v1/call/search-google-scholar-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"mode": "search",
"hl": "en",
"scisbd": "0",
"as_sdt": "0",
"filter": "1",
"as_vis": "0"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-google-scholar-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"mode": "search",
"hl": "en",
"scisbd": "0",
"as_sdt": "0",
"filter": "1",
"as_vis": "0"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-google-scholar-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"mode": "search",
"hl": "en",
"scisbd": "0",
"as_sdt": "0",
"filter": "1",
"as_vis": "0"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: search-google-scholar-2.
Parameters
modeRequiredstringWhich Google Scholar operation to run. Each mode uses different required fields. Defaults to 'search'.
search · cite · author_profile · author_articles · author_citation · author_co_authors
Example: search
qstringFree-text query for mode=search. Supports advanced operators like author:smith or source:nature. Required for mode=search unless 'cites' or 'cluster' is provided.
citesstringFor mode=search only. Article identifier used to look up papers that cite this article. Combine with 'q' to search within citing papers. Mutually exclusive with 'cluster'.
clusterstringFor mode=search only. Article cluster identifier used to fetch all versions of a paper. Mutually exclusive with 'q' and 'cites'.
result_idstringFor mode=cite only. The result_id (cluster id) of the Google Scholar paper to fetch citation formats for. Obtain from an organic_results entry of mode=search.
author_idstringFor mode=author_profile, author_articles, author_citation, and author_co_authors. The Google Scholar author identifier (e.g., 'LSsXyncAAAAJ'). Obtain from a publication_info.authors entry of mode=search or from a Google Scholar profile URL.
citation_idstringFor mode=author_citation only. The citation_id of the specific article in the author's profile (obtain from articles[].citation_id of mode=author_articles).
hlstringLanguage for the user interface and result display. Applies to all modes. Optional.
en · es · fr · de · it · pt · ja · ko · zh-CN · zh-TW · ru · ar …
Example: en
lrstringFor mode=search only. Restrict results to specific languages. Use 'lang_xx' codes separated by '|', e.g. 'lang_en' or 'lang_en|lang_fr'.
as_ylointegerFor mode=search only. Earliest publication year to include (e.g., 2010).
as_yhiintegerFor mode=search only. Latest publication year to include (e.g., 2024).
scisbdstringFor mode=search only. Recency sort: 0 = relevance (default), 1 = abstracts only from the last year sorted by date, 2 = everything from the last year sorted by date.
0 · 1 · 2
Example: 0
as_sdtstringFor mode=search only. Controls what types of results to include. Common values: '0' exclude patents (default), '7' include patents, '4' case law (US courts).
0 · 7 · 4
Example: 0
safestringFor mode=search only. Safe search filter. Use 'active' to enable or 'off' to disable.
active · off
filterstringFor mode=search only. 1 = enable the similar/omitted-results filter (default), 0 = disable it.
0 · 1
Example: 1
as_visstringFor mode=search only. 0 = include citations in results (default), 1 = exclude citations.
0 · 1
Example: 0
as_rrstringFor mode=search only. 1 = restrict to review articles, 0 = all article types (default).
0 · 1
Example: 0
sortstringFor mode=author_profile and author_articles. 'title' sorts alphabetically, 'pubdate' sorts by publication date (newest first). Omit for the default citation-count sort.
title · pubdate
max_pagesintegerFor mode=search and author_articles only. Maximum number of result pages to fetch. Use 0 for no limit. Defaults to 1.
Example: 1
numintegerFor mode=search (1-20) and mode=author_articles (1-100). Page size for paginated modes. Defaults to 10 for search, 20 for author_articles.
