# Crossref Citation and Retraction Checker (`hopeful_crabgrass/crossref-retraction-checker`) Actor

Checks a list of DOIs against the Crossref REST API for a matching record and for retraction, correction, or expression-of-concern flags from Retraction Watch via Crossref. Does not call paid APIs or return abstracts or author names.

- **URL**: https://apify.com/hopeful_crabgrass/crossref-retraction-checker.md
- **Developed by:** [Juan Marcos](https://apify.com/hopeful_crabgrass) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00005 / actor start

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 Citation and Retraction Checker

Checks a list of DOIs against the Crossref REST API for a matching record and for retraction, correction, or expression-of-concern flags from Retraction Watch via Crossref.

### What it does

You pass DOIs. The Actor looks up each item at `https://api.crossref.org` only (it does not call the DOI Foundation handle API, and it does not fetch publisher HTML). It returns a match status, a Crossref work when one is found, and any retraction-style flags Crossref exposes through `updated-by`.

v1 is DOI-only. Input that does not contain a DOI is returned as `unparsed` and is not billed. Rows are pushed as they are fetched.

It does not return abstracts, full text, author names, ORCID identifiers, affiliations, or Retraction Watch reason or notes fields.

`matchScore` for a successful DOI lookup is Crossref’s work score, which is typically `1.0`.

no flag on this DOI does not rule out a retraction recorded on another DOI for the same work.

### Input

| Field | Default | Description |
| --- | --- | --- |
| `references` | (required) | Array of DOI strings, or `{doi,title,year}` objects. A string or object with no DOI is `unparsed`. Trailing punctuation on a DOI is stripped. Non-numeric years such as “in press” are ignored, not treated as errors. |
| `maxReferences` | `200` | Hard cap on the number of input references |

### Output

`status` is one of `matched`, `mismatch`, `no-record`, `unparsed`.

For a non-none retraction flag, `wording` is exactly of the form: `Crossref/Retraction Watch record shows: retracted/corrected/concern, source, date`. `asOf` is the check timestamp. `attribution` is `Retraction Watch via Crossref`. Each row also includes an integrity note stating that the Actor reports Crossref/Retraction Watch records and does not invent a retraction status.

### Pricing

Pay-per-event. The primary event is `reference-checked` at **$0.008** per DOI looked up, including no-record and mismatch. Unparsed (non-DOI) rows are written with no charge. The platform also bills a synthetic `apify-actor-start` event automatically; this Actor does not call `Actor.charge()` for that event. If the user sets a maximum total charge, the Actor stops when a charge is refused or the remaining budget cannot cover another billed result.

### Support

Contact via the Apify Store Issues tab.

# Actor input Schema

## `references` (type: `array`):

One DOI per item: a string containing a DOI, or an object with a doi field (title and year are optional and used only to flag a mismatch). Input that does not contain a DOI is returned as unparsed and is not billed. Do not paste paragraphs. No author fields are required or used.

## `maxReferences` (type: `integer`):

Hard cap. Default 200, maximum 2000. There is no unlimited mode.

## Actor input object example

```json
{
  "references": [
    "10.1016/S0140-6736(97)11096-0",
    "10.1038/nature01411",
    "10.1038/s41586-021-03819-2"
  ],
  "maxReferences": 5
}
```

# Actor output Schema

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

No description

# 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 = {
    "references": [
        "10.1016/S0140-6736(97)11096-0",
        "10.1038/nature01411",
        "10.1038/s41586-021-03819-2"
    ],
    "maxReferences": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("hopeful_crabgrass/crossref-retraction-checker").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 = {
    "references": [
        "10.1016/S0140-6736(97)11096-0",
        "10.1038/nature01411",
        "10.1038/s41586-021-03819-2",
    ],
    "maxReferences": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("hopeful_crabgrass/crossref-retraction-checker").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 '{
  "references": [
    "10.1016/S0140-6736(97)11096-0",
    "10.1038/nature01411",
    "10.1038/s41586-021-03819-2"
  ],
  "maxReferences": 5
}' |
apify call hopeful_crabgrass/crossref-retraction-checker --silent --output-dataset

```

## MCP server setup

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

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/HhWHi8dB1jbdJ6BBF/builds/QMOqhHOGTLb7bXqnK/openapi.json
