The efficient, reliable, and developer-friendly way to use the Google Scholar API.
Actor page: apify.com/johnvc/google-scholar-api Input schema: apify.com/johnvc/google-scholar-api/input-schema
The Google Scholar API returns academic search results, citation formats, and author profiles as clean, structured JSON. A single mode parameter dispatches to six endpoints: search papers, get citation formats for a paper, or pull an author's profile, articles, citations, and co-authors. Each search result carries the title, authors, publication summary, cited-by count, versions, and links. Built for literature reviews, citation analysis, research dashboards, and AI agent workflows.
- Python 3.11 or higher
- An Apify account and API key (get a free key here)
-
Clone the repository
git clone https://github.com/johnisanerd/Apify-Google-Scholar-API.git cd Apify-Google-Scholar-API -
Install dependencies with UV
# Install UV if you do not have it: curl -LsSf https://astral.sh/uv/install.sh | sh # Install project dependencies: uv sync
-
Configure your API key
cp .env.example .env # Edit .env and add your Apify API key # Get your free API key at: https://apify.com?fpr=9n7kx3
-
Run the example
uv run python google-scholar-api-example.py
export APIFY_API_TOKEN="your_api_key_here"
uv run python google-scholar-api-example.py| Mode | What it returns | Key input |
|---|---|---|
search |
Papers for a query, one row per paper | q (or cites, cluster) |
cite |
Citation formats (MLA, APA, and more) for a paper | result_id |
author_profile |
An author's profile and metrics | author_id |
author_articles |
An author's article list | author_id |
author_citation |
One article from an author's profile | author_id, citation_id |
author_co_authors |
An author's co-authors | author_id |
Six endpoints, one Actor. Search, citation formats, and four author endpoints, all selected with a single mode.
Rich search results. Each paper comes back with title, authors (with author IDs), publication summary, cited-by total, versions, and links to citing and related pages.
Author graphs. Resolve an author_id to a profile, the full article list, a single citation, or the co-author network.
Precise filtering. Restrict by year range (as_ylo, as_yhi), language, review-articles-only, and result type (articles, case law, or include patents).
Predictable, pay-per-use pricing. Billing is per query (per page on paginated modes), with a small per-run fee.
Easy to automate. Call it from Python in a few lines, or load it as an MCP tool so assistants like Claude and Cursor can run literature searches for you on demand.
- Paper search with year, language, and type filters
- Citation-format lookup for any result
- Author profile, articles, citation, and co-author endpoints
- Pagination on search and author-articles modes
- Optional patents and case-law results via
as_sdt
- One row per paper in search mode, with a stable
result_id - Authors as structured entries with
author_idfor chaining - Cited-by and versions counts on every result
- Search parameters echoed on every row
{
"mode": "search",
"q": "machine learning",
"as_ylo": 2020,
"num": 10
}{
"mode": "cite",
"result_id": "EQ8shYj8Ai8J"
}{
"mode": "author_articles",
"author_id": "rSVIHasAAAAJ",
"sort": "pubdate"
}| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
mode |
str |
Yes | search |
search, cite, author_profile, author_articles, author_citation, author_co_authors. |
q |
str |
for search | - | Query; supports operators like author:smith, source:nature. |
cites / cluster |
str |
no | - | Article ID for citing papers / all versions (search mode). |
result_id |
str |
for cite | - | Paper cluster ID (from a search result). |
author_id |
str |
for author modes | - | Google Scholar author ID, e.g. rSVIHasAAAAJ. |
citation_id |
str |
for author_citation | - | Specific article ID in an author's profile. |
hl |
str |
no | en |
Interface language. |
as_ylo / as_yhi |
int |
no | - | Earliest / latest publication year (search mode). |
as_sdt |
str |
no | 0 |
0 exclude patents, 7 include patents, 4 case law. |
num |
int |
no | 10 |
Results per page (search 1-20, author_articles 1-100). |
max_pages |
int |
no | 1 |
Pages to fetch (search and author_articles). |
A real search for machine learning returns one row per paper (the snippet is present but trimmed here).
{
"_mode": "search",
"search_parameters": { "mode": "search", "q": "machine learning", "num": 5, "max_pages": 1 },
"position": 1,
"result_id": "EQ8shYj8Ai8J",
"paper_title": "Machine learning",
"link": "https://books.google.com/books?id=ctM-EAAAQBAJ",
"publication_info": {
"summary": "ZH Zhou - 2021 - books.google.com",
"authors": [
{ "name": "ZH Zhou", "author_id": "rSVIHasAAAAJ", "link": "https://scholar.google.com/citations?user=rSVIHasAAAAJ" }
]
},
"inline_links": {
"cited_by_total": 3793,
"versions_total": 7,
"cited_by_link": "https://scholar.google.com/scholar?cites=...",
"versions_link": "https://scholar.google.com/scholar?cluster=..."
}
}Each paper row carries the paper_title, a snippet, structured publication_info (summary plus authors with their author_id), resources (PDF links when available), and inline_links with cited-by and versions counts and links. The author_id values chain into the author modes.
You can load the Google Scholar API as an MCP tool so assistants call it for you. The MCP server URL preloads just this one Actor:
https://mcp.apify.com/?tools=actors,docs,johnvc/google-scholar-api
Authenticate with OAuth in the browser when offered, or with your Apify API token (the same APIFY_API_TOKEN used by the Python example). Get a token at https://console.apify.com/settings/integrations and a free Apify account at https://apify.com?fpr=9n7kx3 .
Cowork is the desktop app's automation mode. To give it the Google Scholar API as a tool, add the Apify MCP server as a connector.
- Open the Claude desktop app and go to Settings → Connectors (or Settings → Developer → Edit Config to edit
claude_desktop_config.jsondirectly).- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- Add the Apify MCP server, preloaded with only this Actor:
{
"mcpServers": {
"apify": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.apify.com/?tools=actors,docs,johnvc/google-scholar-api"
]
}
}
}- Restart the app. When Cowork first calls the tool, complete the OAuth prompt in your browser, or add your Apify API token in the connector settings to skip OAuth.
- In a Cowork chat, confirm the tool is available and ask it to run the Google Scholar API.
Download the desktop app and start a free trial: https://claude.ai/referral/uIlpa7nPLg More help: https://docs.apify.com/platform/integrations/claude-desktop
Claude Code is the command-line tool. Add the Actor's MCP server with one command:
claude mcp add --transport http apify \
"https://mcp.apify.com/?tools=actors,docs,johnvc/google-scholar-api"To use a token instead of browser OAuth:
claude mcp add --transport http apify \
"https://mcp.apify.com/?tools=actors,docs,johnvc/google-scholar-api" \
--header "Authorization: Bearer YOUR_APIFY_TOKEN"Then verify with claude mcp list, or run /mcp inside a session. Ask Claude Code to call the Google Scholar API.
Try Claude Code free: https://claude.ai/referral/uIlpa7nPLg Claude Code MCP docs: https://code.claude.com/docs/en/mcp
On claude.ai you add Apify as a connector, then enable just this Actor's tool.
- Go to Settings → Connectors → Browse connectors and search for Apify MCP server. Install it (enable or update if prompted).
- When connecting, authenticate with your Apify API token, and enable the tool
johnvc/google-scholar-api. - In any chat, open + → Connectors and turn on Apify.
- Alternatively, choose Add custom connector and paste the full MCP URL
https://mcp.apify.com/?tools=actors,docs,johnvc/google-scholar-api, using OAuth when prompted. - Ask Claude to run the Google Scholar API.
Open Claude on the web: https://claude.ai/referral/uIlpa7nPLg
Cursor reads MCP servers from a project file at .cursor/mcp.json.
- In your project, create
.cursor/mcp.json:
{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com/?tools=actors,docs,johnvc/google-scholar-api"
}
}
}- If you prefer token auth over browser OAuth, add a header:
{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com/?tools=actors,docs,johnvc/google-scholar-api",
"headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
}
}
}- Open Cursor → Settings → MCP and confirm the apify server is connected (green dot).
- In Composer or Chat, ask Cursor to call the Google Scholar API.
New to Cursor? Get it here: https://cursor.com/referral?code=XQP4VBLI3NNX
ChatGPT connects to the Apify MCP server through Developer mode (available on ChatGPT Pro, Plus, Business, Enterprise, and Education plans).
- Click your profile icon, then go to Settings > Apps. If you do not see a Create app button, open Advanced settings and enable Developer mode.
- Click Create app and fill out the form:
- Name: Apify
- MCP Server URL:
https://mcp.apify.com/?tools=actors,docs,johnvc/google-scholar-api - Authentication: OAuth
- Click Create and authorize the connection with Apify.
- To use the app in a conversation, click + in the chat, choose Developer mode, and select Apify.
More help: https://docs.apify.com/platform/integrations/mcp
Use the Google Scholar API to power literature reviews, citation analysis, and research dashboards with reliable, structured results.
Ready-to-run examples on the Apify Store.
Open a ready-to-send prompt about the Google Scholar Actor in the AI of your choice:
- 💬 ChatGPT
- 🧠 Claude
- 🔍 Perplexity
- 🅒 Copilot
This example repo is part of Alpha OSINT, toolset of financial and operations data sources and APIs. See the Google Scholar source page for related tools and use cases. For support or requests for this actor, please start a ticket directly on our support page.
Last Updated: 2026.11.15





