# Crossref DOI Lookup & Scholarly Works Search (`klyve1/crossref-doi-lookup`) Actor

Look up DOIs or search scholarly works with the official Crossref REST API: title, authors, journal, publisher, dates, citation counts, references count, license, abstract, links. Bulk and fast.

- **URL**: https://apify.com/klyve1/crossref-doi-lookup.md
- **Developed by:** [Nico Klyve](https://apify.com/klyve1) (community)
- **Categories:** Education, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 work returneds

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

## Crossref DOI Lookup & Scholarly Works Search

Get clean metadata for **scholarly works** from **Crossref**, the official DOI registry used by most publishers. Look up a list of DOIs, or search more than 160 million journal articles, books, chapters, conference papers, preprints and datasets, and get titles, authors, journal, publisher, dates, **citation counts**, references count, license, abstract and full-text links in one table.

### Who uses it

- **Researchers and librarians**: complete or check a bibliography from a list of DOIs, export it to Excel or a reference manager.
- **Research intelligence and R\&D teams**: find the most cited works on a topic since a given year.
- **Publishers and universities**: monitor publications, citation counts and licenses of their own output.
- **AI and data teams**: build literature datasets with abstracts for search, RAG or classification.

### Example output

```json
{
  "doi": "10.1038/nature14539",
  "url": "https://doi.org/10.1038/nature14539",
  "title": "Deep learning",
  "type": "journal-article",
  "authors": ["Yann LeCun", "Yoshua Bengio", "Geoffrey Hinton"],
  "containerTitle": "Nature",
  "publisher": "Springer Science and Business Media LLC",
  "volume": "521",
  "issue": "7553",
  "pages": "436-444",
  "issn": ["0028-0836", "1476-4687"],
  "publishedDate": "2015-05-27",
  "year": 2015,
  "citedByCount": 79726,
  "referencesCount": 103,
  "language": "en",
  "license": "https://www.springer.com/tdm",
  "fullTextLinks": ["http://www.nature.com/articles/nature14539.pdf", "http://www.nature.com/articles/nature14539"],
  "abstract": null,
  "error": null
}
```

`citedByCount` is the number of citations Crossref knows of (from other works with a DOI). Rows from the search also carry the `query`. A DOI that Crossref does not know comes back with an `error` and is free.

### Input

| Field | What it does | Default |
|---|---|---|
| `dois` | DOIs to look up, one per line (bare, `doi:` or `https://doi.org/` form) | empty |
| `query` | Bibliographic search: title words, authors, journal... | empty |
| `maxResults` | Maximum works returned by the search (up to 5000) | 50 |
| `sort` | `relevance`, `published` (newest first) or `is-referenced-by-count` (most cited first) | relevance |
| `fromYear`, `toYear` | Publication year range for the search | none |
| `type` | Crossref type filter: `journal-article`, `book-chapter`, `proceedings-article`, `posted-content`, `dataset`... | none |
| `includeAbstract` | Add the abstract when the publisher deposited one | true |

Give DOIs, a query, or both.

### Pricing

Pay per result: **$0.001 per work returned**. DOIs not found and errors are free.

### Good to know

- Data comes live from the official Crossref REST API. Crossref metadata is open (abstracts remain the publishers' text: use them in line with their terms).
- Abstracts and affiliations are only present when the publisher deposited them, so they are often missing for older works.
- DOIs registered with other agencies (DataCite for many datasets, for example) are not in Crossref.

# Actor input Schema

## `dois` (type: `array`):

DOIs, one per line. Bare DOIs (10.1038/nature12373), doi: prefixes and https://doi.org/ links are all accepted.

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

Optional bibliographic search (title words, authors, journal, year...). Results come after the DOI lookups.

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

Maximum number of works returned by the search query (up to 5000).

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

relevance = best match first. published = newest first. is-referenced-by-count = most cited first.

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

Optional. Only keep search results published in or after this year.

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

Optional. Only keep search results published in or before this year.

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

Optional Crossref type filter for the search, for example journal-article, book-chapter, proceedings-article, posted-content (preprints), dataset.

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

Add the abstract when the publisher deposited one with Crossref.

## Actor input object example

```json
{
  "dois": [
    "10.1038/nature14539",
    "https://doi.org/10.1145/3065386"
  ],
  "query": "large language models education",
  "maxResults": 10,
  "sort": "relevance",
  "includeAbstract": true
}
```

# Actor output Schema

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

All rows produced by the 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 = {
    "dois": [
        "10.1038/nature14539",
        "https://doi.org/10.1145/3065386"
    ],
    "query": "large language models education",
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("klyve1/crossref-doi-lookup").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 = {
    "dois": [
        "10.1038/nature14539",
        "https://doi.org/10.1145/3065386",
    ],
    "query": "large language models education",
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("klyve1/crossref-doi-lookup").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 '{
  "dois": [
    "10.1038/nature14539",
    "https://doi.org/10.1145/3065386"
  ],
  "query": "large language models education",
  "maxResults": 10
}' |
apify call klyve1/crossref-doi-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,klyve1/crossref-doi-lookup"
        }
    }
}
```

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/YqR8dnaDfEiELcw7K/builds/RHEi2IONTf5fBZLwJ/openapi.json
