# Crossref DOI Metadata, Citations & BibTeX Resolver (`regenerative_cornice/crossref-doi-citation-resolver`) Actor

Resolve DOIs or search 150M+ Crossref academic works via the official Crossref REST API. Extracts authors, journals, citation counts, funders, licenses, and APA 7th & BibTeX citations for literature reviews, RAG pipelines, n8n workflows, and AI agents (MCP).

- **URL**: https://apify.com/regenerative_cornice/crossref-doi-citation-resolver.md
- **Developed by:** [John Erlbacher](https://apify.com/regenerative_cornice) (community)
- **Categories:** AI, Developer tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 doi citation resolveds

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

## Crossref DOI Metadata, Citations & BibTeX Resolver

Resolve lists of Digital Object Identifiers (DOIs) or search **150M+ scholarly journal articles, conference papers, preprints, book chapters, datasets, and monographs** directly through the official **Crossref Public REST API** (`https://api.crossref.org/works` and `/works/{doi}`).

Designed for **academic & R\&D teams, systematic literature reviews, citation verification pipelines, reference management automation, RAG knowledge bases, n8n workflows, and AI agents using Model Context Protocol (MCP)**.

Because this Actor communicates directly with Crossref's official REST API using a compliant **`User-Agent` with `mailto:`** for Crossref's fast **Polite Pool**, runs execute in seconds with **zero API keys required, zero HTML scraping, zero proxy overhead, and 100% deterministic APA 7th & BibTeX formatting**.

***

### Key Capabilities

- **Dual Mode — Direct DOI Resolution & Bibliographic Search:** Pass an explicit list of DOIs (`10.1038/nature14539`, `https://doi.org/...`, `doi:...`) to enrich known papers via `/works/{doi}`, run open-ended keyword searches across 150M+ publications via cursor-paginated `/works?query=...`, or combine both in a single deduplicated run.
- **Crossref Polite Pool Speed & Resilience:** Automatically sends a Crossref-compliant Polite Pool `User-Agent` header (`mailto:`), paces requests politely, handles transient `429`/`5xx` responses with backoff, and gracefully skips `404` invalid DOIs without billing or aborting your batch.
- **Deterministic APA 7th Edition Citations:** Generates clean, publication-ready APA 7th citations handling single authors, 2–20 author lists, the 21+ author ellipsis rule, organizational/consortium authors, hyphenated given names, journal volume/issue/page layouts, conference proceedings, book chapters, and canonical `https://doi.org/` links.
- **LaTeX-Safe BibTeX Generation:** Produces ready-to-import `@article`, `@inproceedings`, `@incollection`, `@book`, `@phdthesis`, `@techreport`, and `@misc` BibTeX entries with deterministic ASCII citation keys (e.g., `lecun2015deep`, `akiba2019optuna`), proper `and`-joined authors, `--` page ranges, and escaped LaTeX special characters (`\&`, `\%`, `\_`, `\#`).
- **Complete Research & Impact Signals:** Captures Crossref citation counts (`isReferencedByCount`), outgoing reference counts (`referencesCount`), ISSNs, funding agencies (`funderNames`), publisher license URLs (`licenseUrl`), normalized ISO-like publication dates, and cleaned HTML/JATS-stripped titles and venues.

***

### Input Configuration

#### Example 1: Resolve a Batch of DOIs

```json
{
  "dois": [
    "10.1038/nature14539",
    "10.1145/3292500.3330701"
  ],
  "searchQuery": "",
  "maxItems": 10
}
```

#### Example 2: Search Crossref by Topic & Citation Impact

```json
{
  "dois": [],
  "searchQuery": "retrieval augmented generation large language models",
  "workType": "journal-article",
  "sortBy": "is-referenced-by-count",
  "fromPubYear": 2022,
  "maxItems": 25
}
```

#### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `dois` | `array<string>` | `["10.1038/nature14539", "10.1145/3292500.3330701"]` | DOIs or `doi.org` URLs to resolve directly via `/works/{doi}`. Set to `[]` for search-only runs. |
| `searchQuery` | `string` | `""` | Keyword, paper title, or author search query across 150M+ Crossref records via `/works`. |
| `maxItems` | `integer` | `10` | Maximum total Crossref records to output (`1`–`1000`). |
| `workType` | `string` | `"ALL"` | Optional Crossref type filter in search mode (`journal-article`, `proceedings-article`, `book-chapter`, `posted-content`, `book`, `monograph`, `dataset`, `report`). |
| `sortBy` | `string` | `"relevance"` | Sort order in search mode: `relevance`, `is-referenced-by-count`, `published`, `issued`, or `deposited`. |
| `fromPubYear` | `integer` | `0` | Optional minimum publication year in search mode (`from-pub-date:YYYY`). Set to `0` for all years. |
| `mailto` | `string` | `""` | Optional contact email included in the Polite Pool `User-Agent` header. Uses a compliant built-in default if omitted. |

***

### Output Dataset Schema

Every resolved publication is stored in the default Apify dataset as a clean, normalized JSON object:

```json
{
  "doi": "10.1038/nature14539",
  "title": "Deep learning",
  "authors": [
    "Yann LeCun",
    "Yoshua Bengio",
    "Geoffrey Hinton"
  ],
  "journal": "Nature",
  "publisher": "Springer Science and Business Media LLC",
  "publishedDate": "2015-05-27",
  "type": "journal-article",
  "isReferencedByCount": 79717,
  "referencesCount": 103,
  "issn": [
    "0028-0836",
    "1476-4687"
  ],
  "funderNames": [],
  "licenseUrl": "https://www.springer.com/tdm",
  "apaCitation": "LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521(7553), 436-444. https://doi.org/10.1038/nature14539",
  "bibtexCitation": "@article{lecun2015deep,\n  author = {LeCun, Yann and Bengio, Yoshua and Hinton, Geoffrey},\n  title = {Deep learning},\n  journal = {Nature},\n  publisher = {Springer Science and Business Media LLC},\n  year = {2015},\n  volume = {521},\n  number = {7553},\n  pages = {436--444},\n  issn = {0028-0836},\n  doi = {10.1038/nature14539},\n  url = {https://doi.org/10.1038/nature14539}\n}",
  "doiUrl": "https://doi.org/10.1038/nature14539",
  "volume": "521",
  "issue": "7553",
  "pages": "436-444",
  "extractedAt": "2026-11-22T18:45:00Z"
}
```

***

### Pay-Per-Event Pricing (`doi-resolved`)

This Actor uses transparent Apify **Pay-Per-Event (PPE)** billing:

- **Event name:** `doi-resolved` — charged once per resolved Crossref publication pushed to your dataset, deduplicated via a deterministic idempotency key (`doi-<clean_doi>`).
- **Unresolved `404` DOIs and zero-match searches are never billed** for `doi-resolved` events.
- **Hard budget protection:** The Actor checks `event_charge_limit_reached` on every record and halts cleanly the instant your configured spend limit is reached.

***

### Automate Citation Verification & BibTeX Export in n8n

Build a zero-hallucination **Research Citation Enricher** workflow in n8n:

1. **Webhook / Airtable / Notion Trigger** — Receive a list of DOIs or paper titles extracted from draft manuscripts or grant proposals.
2. **HTTP Request (Apify Run-Sync Dataset Items)** — `POST` to:
   ```text
   https://api.apify.com/v2/acts/<YOUR_USERNAME>~crossref-doi-citation-resolver/run-sync-get-dataset-items?token={{$env.APIFY_TOKEN}}
   ```
   JSON Body:
   ```json
   {
     "dois": ["10.1038/nature14539", "10.1145/3292500.3330701"],
     "maxItems": 20
   }
   ```
3. **Downstream Formatter** — Write verified `apaCitation`, `bibtexCitation`, `isReferencedByCount`, `funderNames`, and `licenseUrl` back into Notion, Zotero, Google Sheets, or your `.bib` repository.

***

### Use with AI Agents & Model Context Protocol (MCP)

Eliminate hallucinated academic references by giving **Claude Desktop, Cursor, Windsurf, or custom LangGraph / OpenAI agents** direct access to live Crossref verification via the official Apify MCP Server:

```json
{
  "mcpServers": {
    "apify-crossref": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "<YOUR_USERNAME>/crossref-doi-citation-resolver"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

**Example Agent Prompts:**

- *"Resolve DOIs `10.1038/nature14539` and `10.1145/3292500.3330701`, compare their citation counts, and output a ready-to-compile `.bib` block plus APA 7th references."*
- *"Search Crossref for the 15 most-cited journal articles on CRISPR base editing published since 2021 and list their journals, funders, licenses, and APA citations."*
- *"Verify every DOI in this literature review draft and flag any that do not resolve in Crossref."*

***

### Data Source & Attribution

All bibliographic records, citation counts, funding data, and license links are retrieved directly from the official **Crossref Public REST API** (`https://api.crossref.org/`). Crossref metadata is provided without restriction for discovery, citation verification, and scholarly infrastructure.

# Actor input Schema

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

List of DOIs or DOI URLs to resolve directly via /works/{doi} (e.g., "10.1038/nature14539", "https://doi.org/10.1145/3292500.3330701"). Leave empty when running a keyword-only search via searchQuery.

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

Optional keyword, title, or author search query across 150M+ Crossref works via /works?query=... (e.g., "transformer attention mechanisms", "CRISPR gene editing"). Can be used alone or combined with explicit DOIs.

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

Maximum total number of resolved Crossref works to extract (1 to 1000).

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

Optional Crossref publication type filter applied when searchQuery is set.

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

Sort order applied when searching Crossref with searchQuery.

## `fromPubYear` (type: `integer`):

Optional minimum publication year (e.g., 2020) applied in search mode via Crossref from-pub-date filter. Set to 0 for no lower date bound.

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

Optional contact email included in the HTTP User-Agent header to route requests into Crossref's fast Polite Pool. Uses a built-in default polite email if omitted.

## Actor input object example

```json
{
  "dois": [
    "10.1038/nature14539",
    "10.1145/3292500.3330701"
  ],
  "searchQuery": "",
  "maxItems": 10,
  "workType": "ALL",
  "sortBy": "relevance",
  "fromPubYear": 0,
  "mailto": ""
}
```

# Actor output Schema

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

Structured overview table of resolved Crossref DOI metadata and citations.

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

All resolved Crossref DOI records in the default dataset.

# 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",
        "10.1145/3292500.3330701"
    ],
    "searchQuery": "",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("regenerative_cornice/crossref-doi-citation-resolver").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",
        "10.1145/3292500.3330701",
    ],
    "searchQuery": "",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("regenerative_cornice/crossref-doi-citation-resolver").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",
    "10.1145/3292500.3330701"
  ],
  "searchQuery": "",
  "maxItems": 10
}' |
apify call regenerative_cornice/crossref-doi-citation-resolver --silent --output-dataset

```

## MCP server setup

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

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/VwfqKHNwSBYLWNx8m/builds/O2TaoP98gm7Z7ZODC/openapi.json
