---
title: "Google Scholar API: Free Alternatives That Work (Tested 2026)"
description: "Google doesn't offer a Scholar API. We tested the free alternatives: OpenAlex worked without a key, Semantic Scholar and arXiv returned 429s without keys or pacing, and web search with site: filters found papers. Code for each."
category: "guides"
url: https://keirolabs.cloud/blog/google-scholar-api
published: 2026-11-24
updated: 2026-11-24
---

# Google Scholar API: there isn't one. Here's what to use instead (tested)

## The 60-second version

**There is no official Google Scholar API.** Google doesn't offer one, and scraping Scholar runs into CAPTCHAs and Google's terms of service. The good news: free scholarly APIs cover most of what people want from Scholar, and we tested them.

| Option | Cost | Key | What happened in our test |
|---|---|---|---|
| **OpenAlex** | Free; $1 of API usage a day with a free key | Optional for light use | **Worked without a key:** titles, years, DOIs, citation counts, open-access PDF links |
| **Semantic Scholar API** | Free | Optional; recommended | **429 Too Many Requests on every keyless try** |
| **arXiv API** | Free | None | **429 on every try** from our server; it asks clients to go slowly |
| **Web search with `site:` filters** | Search API pricing | Search API key | **Worked:** `site:arxiv.org` queries returned paper pages |

**For most apps and research agents: use OpenAlex for metadata and citations, and a web search API for anything recent or outside the academic indexes.**

## Is there a Google Scholar API?

**No.** Google Scholar has no public API. The options people end up with:

- **Scraping Scholar yourself:** blocked quickly with CAPTCHAs, and against Google's terms.
- **Third-party "Scholar APIs":** scrape Scholar for you. They work, but you're paying for scraping, and the legal and reliability risk moves with you.
- **Open scholarly databases:** OpenAlex, Semantic Scholar, arXiv, Crossref. Free, built for programmatic access, and often richer data than Scholar shows.

**For most use cases, the open databases are the better choice anyway:** they return structured data (authors, institutions, references, citation counts) instead of a results page you have to parse.

## OpenAlex: the closest thing to a Scholar API

**OpenAlex is a free, open index of scholarly works, authors, institutions and venues.** All data is CC0 (public domain). Per its docs, casual use needs no key, a free account key raises your daily budget 10× to **$1 of API usage per day**, and the key is required for cursor paging past the first page.

```python
import os, requests

def openalex(query: str, n: int = 5) -> list[dict]:
    r = requests.get("https://api.openalex.org/works", params={
        "search": query, "per_page": n,
        "select": "title,publication_year,doi,cited_by_count,open_access"}, timeout=30)
    r.raise_for_status()
    return [{"title": w["title"], "year": w["publication_year"], "doi": w["doi"],
             "cited_by": w["cited_by_count"], "pdf": (w.get("open_access") or {}).get("oa_url")}
            for w in r.json()["results"]]

print(openalex("retrieval augmented generation", 3))
```

**What came back, without a key:**

```text
{'title': 'Active Retrieval Augmented Generation', 'year': 2023, 'doi': 'https://doi.org/10.18653/v1/2023.emnlp-main.495',
 'cited_by': 1918, 'pdf': 'https://aclanthology.org/2023.emnlp-main.495.pdf'}
{'title': 'Corrective Retrieval Augmented Generation', 'year': 2026, ..., 'cited_by': 772, ...}
{'title': 'Benchmarking Retrieval-Augmented Generation for Medicine', 'year': 2024, ..., 'cited_by': 912, ...}
```

**Use `select`** to request only the fields you need; it keeps responses small. Send your key as `api_key=` or as a bearer token once you need more volume.

## Semantic Scholar API

**Semantic Scholar's Academic Graph API covers papers, authors and citations,** with useful extras like open-access PDF links. The paper search endpoint:

```python
def semantic_scholar(query: str, n: int = 5) -> list[dict]:
    r = requests.get("https://api.semanticscholar.org/graph/v1/paper/search",
        params={"query": query, "limit": n, "fields": "title,year,citationCount,url,openAccessPdf"},
        headers={"x-api-key": os.environ["S2_API_KEY"]},     # request a free key from Semantic Scholar
        timeout=30)
    r.raise_for_status()
    return r.json().get("data", [])
```

**Get a key.** Without one, requests share a rate-limited pool with every other keyless user. In our test, four keyless attempts with backoff all returned `429 Too Many Requests`.

## arXiv API

**arXiv's API returns Atom XML** for searches across its preprints:

```python
import xml.etree.ElementTree as ET

def arxiv(query: str, n: int = 5) -> list[dict]:
    r = requests.get("https://export.arxiv.org/api/query",
        params={"search_query": f"all:{query}", "max_results": n, "sortBy": "relevance"}, timeout=30)
    r.raise_for_status()
    ns = {"a": "http://www.w3.org/2005/Atom"}
    return [{"title": " ".join(e.find("a:title", ns).text.split()),
             "published": e.find("a:published", ns).text[:10], "url": e.find("a:id", ns).text}
            for e in ET.fromstring(r.text).findall("a:entry", ns)]
```

**Go slowly.** arXiv asks API clients to space out requests, and from our server every request returned `429`. For anything beyond occasional lookups, cache results and pace your calls, or use OpenAlex, which indexes arXiv papers too.

## Web search for papers: the part Scholar was really good at

**Scholar's strength is breadth:** it finds papers, preprints, theses and PDFs wherever they're hosted. A web search API with `site:` filters gets close:

```python
def paper_search(query: str, n: int = 8) -> list[dict]:
    r = requests.post("https://api.keirolabs.cloud/api/v2/search/lite",
                      headers={"Authorization": f"Bearer {os.environ['KEIRO_API_KEY']}"},
                      json={"query": f"{query} site:arxiv.org OR site:aclanthology.org", "count": n}, timeout=30)
    r.raise_for_status()
    return r.json()["results"]
```

**The combined `site:` query above returned a mix of arXiv and ACL Anthology pages in our test, and `site:arxiv.org retrieval augmented generation survey` returned five arXiv paper pages** (titles and URLs; the snippets were empty for these results, so fetch the abstract page if you need text). Web search also finds what scholarly indexes miss: blog posts explaining papers, code repositories, conference pages and the newest preprints.

## Which should a research agent use?

**Give the agent two tools, and let it choose:**

| Tool | Use for |
|---|---|
| `scholar_search` (OpenAlex) | Finding papers, citation counts, authors, open-access PDFs |
| `web_search` (a search API) | Anything recent, non-academic sources, finding a specific PDF or page |

**Then read the papers, not just the metadata:** fetch the open-access PDF or abstract page for the top few results before the model writes anything. Building the agent loop itself is covered in [local deep research](/blog/local-deep-research) and [Claude deep research](/blog/claude-deep-research).

## Checklist

- **Don't scrape Google Scholar; there's no official API.**
- **Start with OpenAlex; get its free key when you scale.**
- **Get a Semantic Scholar key before relying on it.**
- **Pace arXiv calls and cache results.**
- **Add web search for breadth and recency.**

Keirolabs `/search/lite` handles the web half for $0.03 to $0.10 per 1,000 searches on plans, and `/extract` reads any paper page as clean text. New accounts get up to 2,000 free credits with no card ([get a key](https://platform.keirolabs.cloud/register)).
