# OpenAlex Scholarly Works Scraper (`hipersoft/openalex-scraper`) Actor

Search 250M+ academic papers via OpenAlex: title, abstract, authors, institutions, venue, citation count, DOI, open-access status and topics. Filter by year, type and open access. For research, R\&D and lit reviews. No setup.

- **URL**: https://apify.com/hipersoft/openalex-scraper.md
- **Developed by:** [Hipersoft](https://apify.com/hipersoft) (community)
- **Categories:** AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0005 / work scraped

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## OpenAlex Scholarly Works Scraper — 250M+ papers, citations & abstracts, structured JSON

Search the open catalog of scholarly works via the **OpenAlex API** and get back clean, structured JSON for every paper — title, reconstructed abstract, authors and their institutions, venue, publisher, citation count, DOI, open-access status and research topics. Filter by publication year, work type and open access, and collect thousands of works per search term. Ideal for literature reviews, R\&D scouting, bibliometrics and building research datasets.

![OpenAlex Scholarly Works Scraper input — search terms, year range and work type in the Apify Console](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/openalex-scraper-input.png?v=2)

### Features

- 🔎 **Multi-term search** — pass any number of `searchTerms` (matched against title, abstract and fulltext); each term runs separately and results are deduped by OpenAlex work ID.
- 📅 **Year filtering** — bound results with `fromYear` and `toYear` to focus on a publication window (0 = no bound).
- 🔓 **Open-access filter** — flip `openAccessOnly` to keep only OA works, and get `oaStatus` plus a direct `oaUrl` for each.
- 🗂️ **Work-type filter** — narrow to `article`, `preprint`, `review`, `book-chapter`, `dataset` and more via `workType`.
- 📝 **Reconstructed abstracts** — toggle `includeAbstract` to rebuild readable abstract text from OpenAlex's inverted index.
- 👥 **Rich authorship** — every author with their affiliated institutions, plus a ready-to-read `authorsList` string and `authorCount`.
- 📈 **Bibliometrics built in** — citation counts, referenced-works counts, venue, publisher and research `topics` on every record; scale to `maxResultsPerSearch` up to 10,000.

### What you get

![OpenAlex Scholarly Works Scraper output example — papers with authors, citations and abstracts as structured JSON](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/openalex-scraper-output.png?v=5)

Each dataset row is one scholarly work:

```json
{
  "searchTerm": "machine learning",
  "title": "Deep Residual Learning for Image Recognition",
  "doi": "https://doi.org/10.1109/cvpr.2016.90",
  "openAlexId": "https://openalex.org/W2194775991",
  "publicationYear": 2016,
  "publicationDate": "2016-06-01",
  "type": "article",
  "language": "en",
  "citedByCount": 210453,
  "referencedWorksCount": 38,
  "authorsList": "Kaiming He; Xiangyu Zhang; Shaoqing Ren; Jian Sun",
  "authors": [
    { "name": "Kaiming He", "institutions": ["Microsoft Research"] }
  ],
  "authorCount": 4,
  "venue": "IEEE Conference on Computer Vision and Pattern Recognition",
  "publisher": "IEEE",
  "isOpenAccess": true,
  "oaStatus": "green",
  "oaUrl": "https://arxiv.org/pdf/1512.03385",
  "topics": ["Deep Learning", "Image Classification"],
  "url": "https://doi.org/10.1109/cvpr.2016.90",
  "abstract": "Deeper neural networks are more difficult to train..."
}
```

#### Output schema

| Field | Type | Description |
|-------|------|-------------|
| `searchTerm` | string | The search term that returned this work. |
| `title` | string | Title of the scholarly work. |
| `doi` | string (URL) | DOI link for the work. |
| `openAlexId` | string (URL) | OpenAlex identifier URL for the work. |
| `publicationYear` | integer | Year the work was published. |
| `publicationDate` | string | Full publication date. |
| `type` | string | Work type (e.g. `article`, `preprint`, `review`). |
| `language` | string | Language code of the work. |
| `citedByCount` | integer | Number of works that cite this one. |
| `referencedWorksCount` | integer | Number of works this one references. |
| `authorsList` | string | Semicolon-separated list of author names. |
| `authors` | array | Authors with their affiliated institutions. |
| `authorCount` | integer | Number of authors on the work. |
| `venue` | string | Journal, conference or venue name. |
| `publisher` | string | Publisher of the work. |
| `isOpenAccess` | boolean | Whether the work is open access. |
| `oaStatus` | string | Open-access status (e.g. `green`, `gold`, `closed`). |
| `oaUrl` | string (URL) | Direct link to the open-access full text. |
| `topics` | array | Research topics associated with the work. |
| `url` | string (URL) | Canonical link to the work. |
| `abstract` | string | Reconstructed abstract text (when `includeAbstract` is on). |

### Input

```json
{
  "searchTerms": ["crispr gene editing", "large language models"],
  "fromYear": 2020,
  "toYear": 0,
  "openAccessOnly": false,
  "workType": "article",
  "maxResultsPerSearch": 50,
  "includeAbstract": true
}
```

| Field | Description |
| --- | --- |
| `searchTerms` | Terms to search across title, abstract and fulltext. One search per term. |
| `fromYear` / `toYear` | Publication-year bounds; 0 means no lower/upper bound. |
| `openAccessOnly` | Keep only open-access works. |
| `workType` | Optional type filter (e.g. `article`, `preprint`, `review`, `dataset`). |
| `maxResultsPerSearch` | Maximum works per search term (1–10,000). |
| `includeAbstract` | Reconstruct and include each paper's abstract text. |

### Use cases

- Run a systematic literature review and export a structured, citation-ranked corpus.
- Map the most-cited authors, institutions and venues for a research topic.
- Track emerging preprints and open-access work in a fast-moving field.
- Build training or RAG datasets of abstracts and metadata for research tooling.

### Pricing

Pay-per-event: you're billed a small amount per run and per item scraped — you only pay for what you get. See the **Pricing** tab for current rates.

### FAQ

**How many papers can I scrape per run?**
Up to 10,000 works per search term via `maxResultsPerSearch`, and you can pass multiple `searchTerms` in one run, so a single run can collect tens of thousands of works (deduped by OpenAlex work ID).

**Is scraping OpenAlex legal?**
Yes. OpenAlex is a fully open catalog of scholarly metadata, and this Actor reads only those openly available records through the official API and returns them as-is.

**What format is the output?**
Structured JSON — one row per scholarly work — exportable as JSON, CSV or Excel. Each record includes title, reconstructed abstract, authors with institutions, venue, publisher, citation count, DOI and open-access status.

**Can I filter by year or open access?**
Yes. Bound results with `fromYear`/`toYear`, keep only open-access works with `openAccessOnly`, and narrow to a specific `workType` such as `article`, `preprint`, `review` or `dataset`.

**Can I integrate this with other tools?**
The OpenAlex Scholarly Works Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JavaScript/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

### Related Actors

Building a bibliometrics or literature dataset? These other hipersoft scrapers work well alongside this one:

- [Crossref Scraper](https://apify.com/hipersoft/crossref-scraper) — DOIs, citation counts and metadata from 150M+ registered works
- [Semantic Scholar Scraper](https://apify.com/hipersoft/semantic-scholar-scraper) — papers with citation and influential-citation metrics
- [arXiv Papers Scraper](https://apify.com/hipersoft/arxiv-scraper) — preprints with full abstracts and PDF links
- [PubMed Scraper](https://apify.com/hipersoft/pubmed-scraper) — biomedical literature, abstracts and MeSH terms

### Notes

This Actor uses the public OpenAlex API and returns that catalog's own metadata as-is, over openly available records. It is an independent tool and is not affiliated with, endorsed by, or sponsored by OpenAlex or OurResearch.

# Actor input Schema

## `searchTerms` (type: `array`):

Search academic works matching these terms (title, abstract, fulltext).

## `fromYear` (type: `integer`):

Only include works published in this year or later. 0 = no lower bound.

## `toYear` (type: `integer`):

Only include works published in this year or earlier. 0 = no upper bound.

## `openAccessOnly` (type: `boolean`):

Only include open-access works.

## `workType` (type: `string`):

Optional filter, e.g. article, preprint, review, book-chapter, dataset. Empty = all.

## `maxResultsPerSearch` (type: `integer`):

Maximum works to collect per search term.

## `includeAbstract` (type: `boolean`):

Reconstruct and include the paper abstract.

## Actor input object example

```json
{
  "searchTerms": [
    "crispr gene editing",
    "large language models"
  ],
  "fromYear": 0,
  "toYear": 0,
  "openAccessOnly": false,
  "workType": "",
  "maxResultsPerSearch": 50,
  "includeAbstract": true
}
```

# Actor output Schema

## `results` (type: `string`):

All dataset items produced by this run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [
        "machine learning"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/openalex-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searchTerms": ["machine learning"] }

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/openalex-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "machine learning"
  ]
}' |
apify call hipersoft/openalex-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hipersoft/openalex-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3qxTWgdAStCT624B2/builds/6pok1fzBy2rWd2bxa/openapi.json
