# OpenAlex Works Search – Papers, Citations, Open Access (`adamplaenitz/openalex-works-search`) Actor

Search 250M+ scholarly works in OpenAlex (CC0 open data) by keyword, year, open access, type, institution, topic or journal ISSN – or look up a DOI list. Flat rows with DOI, venue, citation count, OA status/URL, topics, authors (name/ORCID) and optional abstract.

- **URL**: https://apify.com/adamplaenitz/openalex-works-search.md
- **Developed by:** [Adam Plänitz](https://apify.com/adamplaenitz) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 works

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 Works Search – Papers, Citations, Open Access

**Search about 296 million scholarly works in [OpenAlex](https://openalex.org) – the open catalogue of the world's research – by keyword and filters (year, open access, work type, institution, topic, journal ISSN, language, citations), or look up a list of DOIs. Every work becomes one flat row with title, DOI, year, venue, publisher, citation count, open-access status and link, topics, keywords, authors (name, ORCID, OpenAlex ID) and, optionally, the abstract. Ready for CSV, Excel, a reference manager or a database.**

### What does it do?

- **Search and filter** – full-text search (title, abstract and full text, or title / title and abstract only) combined with filters:
  publication years, open access only or OA status (diamond, gold, green, hybrid, bronze, closed), work type (article, review, preprint, book chapter, dataset …), institutions (OpenAlex ID or ROR), topics, legacy concepts, journal ISSNs, languages, minimum citations, retracted works excluded by default. Any further [OpenAlex filter](https://help.openalex.org/api/filtering/) can be added as raw text.
- **Sort** by relevance, most cited, newest or oldest.
- **DOI / ID lookup** – resolves a list of DOIs (`10.1038/…`, `doi:…`, `https://doi.org/…`) or OpenAlex work IDs (`W…`) in input order, 50 per request. Unknown entries come back as free rows with an `error`.
- **Abstract** (optional) – rebuilt as plain text from OpenAlex' inverted abstract index.
- **Authors** are listed only as in the bibliographic record: display name, ORCID and OpenAlex author ID. The Actor does not output e-mail addresses, raw affiliation strings or corresponding-author flags and does not query author profiles. Affiliated **institutions** (name, ROR, country) are listed per work.

### Who is it for?

- **Researchers, librarians and students** building literature lists or systematic-review screening sets.
- **Research offices and analysts** measuring output and open-access share of an institution or topic.
- **Publishers, funders and consultants** tracking citations and OA status of a set of DOIs.
- **Developers and data teams** feeding a database, dashboard or LLM pipeline with clean bibliographic metadata.

### How to use it

**Most-cited works about large language models since 2024 (default input):** search term `large language models`, from year `2024`, sort `Most cited`, max works `50`.

**Open-access heat-pump articles from an institution:** search term `heat pump`, years `2022`–`2024`, open access only, type `article`, institutions `https://ror.org/042nb2s44`.

**Everything in one topic, newest first:** no search term, topics `T10181`, sort `Newest first` (a filter-only list costs a tenth of a search in OpenAlex' budget).

**Enrich a DOI list:** mode `Look up DOIs / OpenAlex IDs`, paste DOIs.

#### OpenAlex API key (optional, recommended for larger runs)

OpenAlex works without a key, but then all requests from the same server IP share a small free daily budget (about 100 searches or 1,000 filter-only pages of 100 works per day) and paging stops at 10,000 results per search. With your **free [OpenAlex API key](https://openalex.org/settings/api)** in the secret input field you get your own $1/day free budget (about 1,000 searches or 10,000 filter pages = up to 1 million works) and unlimited cursor paging. The key is only sent to OpenAlex. Single DOI / ID lookups are free in OpenAlex' budget; if the list budget is spent, the lookup mode automatically switches to (slower) single lookups.

### Input

| Field | Example | Notes |
|---|---|---|
| Mode | `search` / `ids` | |
| Search term | `large language models`, `"heat pump" AND efficiency` | empty = filters only |
| Search in | `all` / `title` / `title_and_abstract` | |
| From year / To year | `2020` / `2024` | |
| Open access only, OA status | `true`, `gold, diamond` | |
| Work types | `article, review` | |
| Institutions | `I136199984`, `042nb2s44` | OpenAlex or ROR IDs |
| Topics / Concepts | `T10181` / `C41008148` | |
| Journal ISSNs | `0028-0836` | |
| Languages | `en, de` | |
| Minimum citations | `10` | |
| Exclude retracted works | `true` | |
| Additional OpenAlex filter | `authorships.countries:DE,has_fulltext:true` | raw syntax |
| Sort by | `relevance` / `cited` / `newest` / `oldest` | |
| DOIs / OpenAlex work IDs | `10.1038/nature12373`, `W2159974629` | lookup mode |
| Include abstract | `false` | |
| Max works | `1000` | search mode; max 10,000 without key |
| OpenAlex API key | – | optional, secret |

A run without any search term or filter uses the example above.

### Output example (one work, shortened)

```json
{
  "openalexId": "W4376167329",
  "doi": "10.48550/arxiv.2305.06161",
  "title": "StarCoder: may the source be with you!",
  "publicationYear": 2023,
  "publicationDate": "2023-05-09",
  "type": "article",
  "language": "en",
  "venue": "Transactions on machine learning research",
  "venueType": "journal",
  "issn": ["2835-8856"],
  "citedByCount": 1961,
  "fwci": 273.89,
  "isOa": true,
  "oaStatus": "diamond",
  "oaUrl": "https://openreview.net/forum?id=KoFOg41haE",
  "license": "cc-by",
  "authorNames": "Li, Raymond; Loubna Ben Allal; …",
  "authorCount": 67,
  "authors": [{ "name": "Li, Raymond", "orcid": null, "openalexId": null, "position": "first" }],
  "institutions": [{ "name": "University of Vermont", "openalexId": "I111236770", "ror": "https://ror.org/0155zta11", "countryCode": "US", "type": "education" }],
  "countries": ["US", "CA", "DE", "GB", "…"],
  "primaryTopic": "Software Engineering Research",
  "primaryField": "Computer Science",
  "topics": [{ "id": "T10260", "name": "Software Engineering Research", "subfield": "Information Systems", "field": "Computer Science", "domain": "Physical Sciences", "score": 0.989 }],
  "keywords": ["StarCoder", "code large language models"],
  "openalexUrl": "https://openalex.org/W4376167329",
  "source": "OpenAlex",
  "dataLicense": "CC0 1.0 (OpenAlex data, https://openalex.org)",
  "accessDate": "2026-11-19"
}
```

Further fields: `publisher`, `issnL`, `volume`, `issue`, `pages`, `referencedWorksCount`, `isRetracted`, `pdfUrl`, `landingPageUrl`, `abstract` (if enabled); in lookup mode also `input`. A `RUN-SUMMARY` record in the key-value store shows the filter used, total matches, works saved, not-found identifiers and the OpenAlex credits used.

### Pricing and speed

See the **Pricing** tab for the current price. You pay per work saved; not-found identifiers and error rows are free. A search page of 100 works takes about 1–2 seconds, so 1,000 works take well under a minute; DOI lists are resolved 50 per request.

### Data source, licence and privacy

- **Source:** [OpenAlex](https://openalex.org) by OurResearch, via the [OpenAlex API](https://help.openalex.org/api/).
- **Licence:** OpenAlex data is released under **[CC0](https://creativecommons.org/publicdomain/zero/1.0/)** (no rights reserved); attribution is appreciated, each row carries `source` and `dataLicense`. **Abstracts** are off by default: they come from publishers and may be protected by copyright – check before republishing them.
- **API usage:** OpenAlex charges API usage against a daily budget (see above); the Actor reports the credits used in the run summary and stops cleanly when the budget is spent.
- **Privacy:** authors appear only as in the bibliographic record (name, ORCID, OpenAlex author ID). No e-mail addresses, contact data or author profiles are collected.
- This Actor is an independent tool and is **not affiliated with or endorsed by OpenAlex or OurResearch**.

### Limits

- Without an API key: shared daily budget per server IP and at most 10,000 results per search; when the budget is spent the run stops with a clear message (results saved so far are kept).
- OpenAlex metadata is compiled automatically from Crossref, PubMed, repositories and publishers; citation counts, OA status and topic tags can differ from other databases and change over time.
- Search terms cannot contain commas (they are replaced by spaces).

Questions or feature requests? Please open an issue in the **Issues** tab.

# Actor input Schema

## `mode` (type: `string`):

search = find works by search term and/or filters. ids = look up a list of DOIs or OpenAlex work IDs.

## `searchQuery` (type: `string`):

Words to search for, e.g. "large language models", "CRISPR off-target", "heat pump efficiency". Supports AND, OR, NOT and "quoted phrases". Leave empty to list works by filters only (cheaper for the OpenAlex budget).

## `searchIn` (type: `string`):

all = title, abstract and full text (OpenAlex default). title = title only. title_and_abstract = title and abstract.

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

First publication year to include, e.g. 2020.

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

Last publication year to include. Empty = up to today.

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

Only works with a free-to-read version (any OA status except closed).

## `oaStatus` (type: `array`):

Only works with these open-access statuses: diamond, gold, green, hybrid, bronze, closed. Empty = all.

## `types` (type: `array`):

Only these OpenAlex work types. Empty = all types.

## `institutions` (type: `array`):

Only works with at least one author affiliated with one of these institutions. Use OpenAlex institution IDs (I136199984) or ROR IDs / links (042nb2s44, https://ror.org/042nb2s44).

## `topics` (type: `array`):

OpenAlex topic IDs, e.g. T10181 (Natural Language Processing Techniques). Find IDs on openalex.org or in the `topics` column of a previous run.

## `concepts` (type: `array`):

OpenAlex concept IDs, e.g. C41008148 (Computer science). Concepts are OpenAlex' older subject tags; topics are recommended.

## `sourceIssns` (type: `array`):

Only works published in journals/sources with these ISSNs, e.g. 0028-0836 (Nature).

## `languages` (type: `array`):

Two-letter language codes of the work, e.g. en, de, fr. Empty = all.

## `minCitations` (type: `integer`):

Only works cited at least this many times.

## `excludeRetracted` (type: `boolean`):

Leave out works that OpenAlex marks as retracted.

## `extraFilter` (type: `string`):

Raw OpenAlex filter syntax added to the filters above, e.g. has_fulltext:true,funders.id:F4320306076 or authorships.countries:DE. See the OpenAlex filter documentation.

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

relevance (only with a search term), most cited, newest or oldest first.

## `identifiers` (type: `array`):

Mode "Look up DOIs / OpenAlex IDs": DOIs (10.1038/nature12373, doi:…, https://doi.org/…) or OpenAlex work IDs (W2159974629). Results keep the input order; unknown entries are returned as free rows with an error.

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

Add the abstract as plain text (rebuilt from OpenAlex' inverted index). Abstracts can be subject to the publisher's copyright – check before republishing them.

## `maxItems` (type: `integer`):

Upper limit of works per run in search mode. Without an API key at most 10,000 (OpenAlex only allows page paging up to 10,000 results without a key).

## `apiKey` (type: `string`):

Your free OpenAlex API key (openalex.org/settings/api). Without a key, the Actor uses OpenAlex' keyless access: a small daily budget shared by everyone on the same server IP and at most 10,000 results per search. With a key: your own $1/day free budget and unlimited cursor paging.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "large language models",
  "searchIn": "all",
  "fromYear": 2024,
  "openAccessOnly": false,
  "excludeRetracted": true,
  "sort": "cited",
  "includeAbstract": false,
  "maxItems": 50
}
```

# Actor output Schema

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

One row per scholarly work (plus free rows for identifiers that were not found).

## `summary` (type: `string`):

Filter used, total matches, works saved, not-found identifiers and OpenAlex credit usage.

# 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 = {
    "searchQuery": "large language models",
    "fromYear": 2024,
    "sort": "cited",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("adamplaenitz/openalex-works-search").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 = {
    "searchQuery": "large language models",
    "fromYear": 2024,
    "sort": "cited",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("adamplaenitz/openalex-works-search").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 '{
  "searchQuery": "large language models",
  "fromYear": 2024,
  "sort": "cited",
  "maxItems": 50
}' |
apify call adamplaenitz/openalex-works-search --silent --output-dataset

```

## MCP server setup

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

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/VdXEpH6a3ANgWDkM5/builds/L3yUw0Hg6Zdj2uJoi/openapi.json
