# OpenAlex Scraper — Research & Academic Papers, Citations (`ponderable_hydrometer/openalex-works`) Actor

OpenAlex scraper for research papers, academic papers and scholarly articles. Search 250M+ works for literature reviews: title, DOI, year, venue, citation count, open access status, PDF link, authors, institutions, topics, abstract. Filter by year; sort by citations.

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

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Scraper — Research & Academic Papers, Citations

**Research papers and scholarly articles on any topic, with citation counts and free PDF links.** OpenAlex indexes over 250 million scholarly works, the open successor to Microsoft Academic. Use it for literature reviews, to track a field, or to find the most cited papers on a subject. Free API, no key needed.

### What you can do with it

- **Literature review**: search a topic, sort by citations and export title, DOI, abstract and venue.
- **Find open-access PDFs**: switch on `openAccessOnly` and use `pdfUrl` for the free full text.
- **Track a field over time**: limit by `fromYear` and `toYear` and sort by newest.
- **Map institutions and topics** around a subject from the `institutions` and `topics` fields.
- **Feed a RAG pipeline or an AI agent** with titles and abstracts.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `query` | string | `large language models` when empty | Search words. |
| `fromYear` | integer | `0` | Earliest publication year (0 = no limit). |
| `toYear` | integer | `0` | Latest publication year (0 = no limit). |
| `openAccessOnly` | boolean | `false` | Only works with a free full text. |
| `sort` | string | `relevance` | `relevance`, `cited_by_count` (most cited first) or `publication_date` (newest first). |
| `maxResults` | integer | `1000` | Stop after this many works. |

Input example:

```json
{
  "query": "graph neural networks",
  "fromYear": 2022,
  "openAccessOnly": true,
  "sort": "cited_by_count",
  "maxResults": 100
}
```

### What you get

One row per work: `id`, `doi`, `title`, `year`, `publicationDate`, `type`, `venue`, `citedBy`, `openAccess`, `oaStatus`, `pdfUrl`, `authors`, `institutions`, `topics`, `language`, `abstract`.

### Output sample

```json
{
  "id": "https://openalex.org/W2626778328",
  "doi": "https://doi.org/10.48550/arxiv.1706.03762",
  "title": "Attention Is All You Need",
  "year": 2017,
  "publicationDate": "2017-06-12",
  "type": "preprint",
  "venue": "arXiv",
  "citedBy": 152311,
  "openAccess": true,
  "oaStatus": "green",
  "pdfUrl": "https://arxiv.org/pdf/1706.03762",
  "authors": [
    "Ashish Vaswani",
    "Noam Shazeer"
  ],
  "institutions": [
    "Google (United States)"
  ],
  "topics": [
    "Natural Language Processing Techniques"
  ],
  "language": "en",
  "abstract": "The dominant sequence transduction models are based on…"
}
```

### Use it from the API or an AI agent

Start a run and read the papers back in one HTTP call:

```bash
curl -X POST "https://api.apify.com/v2/acts/ponderable_hydrometer~openalex-works/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"query": "graph neural networks", "sort": "cited_by_count", "maxResults": 25}'
```

AI agents can call it through the Apify MCP server: `https://mcp.apify.com?tools=ponderable_hydrometer/openalex-works`.

### Limits and good to know

- **Works only.** The Actor searches papers and other scholarly works; it does not return author profiles or institution records as separate rows.
- **Abstracts** are rebuilt from OpenAlex's word index and are missing for some publishers (`abstract` is then `null`).
- `topics` lists up to the first three topics per work. `authors` are the published bylines of the papers.
- Filters are year range and open access only; there is no filter by journal, author or citation threshold. Use the dataset to filter further.
- `pdfUrl` is the best open-access location OpenAlex knows; it is empty for closed works.
- Data is CC0; cite OpenAlex if you publish results. This Actor is not affiliated with OpenAlex.

### FAQ

**Is it an alternative to Google Scholar?** It covers the same kind of ground (papers, citations, DOIs), but it is a different database, and it does not return Google Scholar's citation formats or author profiles.

**How many papers per run?** Whatever `maxResults` says; OpenAlex is read in pages of up to 200 works.

**What does an empty query do?** It searches for "large language models", so set `query` explicitly.

### Pricing

Pay per result — **$0.50 per 1,000 results** (one work = one result), plus Apify's standard per-run start event ($0.00005 per GB of memory, so a fraction of a cent per run). No subscription.

# Actor input Schema

## `query` (type: `string`):

Words to search in titles and abstracts, e.g. "large language models".

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

0 = no limit.

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

0 = no limit.

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

Only works with a free full text.

## `sort` (type: `string`):

Order of results.

## `maxResults` (type: `integer`):

Stop after this many works.

## Actor input object example

```json
{
  "query": "",
  "fromYear": 0,
  "toYear": 0,
  "openAccessOnly": false,
  "sort": "relevance",
  "maxResults": 25
}
```

# Actor output Schema

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

All rows produced by this run, as JSON.

# 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 = {
    "maxResults": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("ponderable_hydrometer/openalex-works").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 = { "maxResults": 25 }

# Run the Actor and wait for it to finish
run = client.actor("ponderable_hydrometer/openalex-works").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 '{
  "maxResults": 25
}' |
apify call ponderable_hydrometer/openalex-works --silent --output-dataset

```

## MCP server setup

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

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/iczmaN5ZczdzSvl7h/builds/wE2Jc6HfrrcjOdcuo/openapi.json
