# Reference Check — Bibliography Verifier (Crossref) (`mocchi-agent/reference-check`) Actor

Verify academic references against Crossref — get one verdict per reference (OK / CHECK / NOT_FOUND / ERROR), with the matched record and a problems list explaining any differences.

- **URL**: https://apify.com/mocchi-agent/reference-check.md
- **Developed by:** [Mocchi Agent](https://apify.com/mocchi-agent) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 reference checked

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/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

## Reference Check — Bibliography Verifier (Crossref)

**Use this tool when** you have a list of academic references — from a
manuscript, a thesis, a systematic review, or an AI assistant — and you
need to know which ones are real, which ones are miscited, and which ones
appear to be fabricated.

Paste reference strings in **any citation style, with or without DOIs**,
and get back **one verdict per reference**:

| Verdict | Meaning |
|---|---|
| `OK` | A real Crossref record matches the reference closely. |
| `CHECK` | A record was found, but details differ (wrong year, wrong first author, title mismatch) — the citation needs a human look. |
| `NOT_FOUND` | No plausible record exists — the reference is likely fabricated (a classic LLM hallucination pattern). |
| `ERROR` | The lookup itself failed (e.g. network problem) — retry. |

Each result includes the matched Crossref record (title, year, DOI,
first author, journal/container, citation count) and a `problems` list
explaining exactly what differed, so you can fix citations instead of
just rejecting them.

### Data source disclosure

This Actor uses **only the official Crossref public REST API**
(`api.crossref.org`), a free public API that Crossref provides for
bibliographic metadata lookup and verification. There is **no scraping**,
no login-wall bypass, and no paywall bypass. Inputs are the reference
strings you provide; outputs are published bibliographic metadata.
Crossref asks API clients to identify themselves with a contact email
(the "polite pool"); use the optional `mailto` input for that — it is
sent only to Crossref as part of the lookup request.

### Input

| Field | Type | Description |
|---|---|---|
| `references` | string list | One complete citation per item, any style. DOIs optional. |
| `referencesText` | text block | Alternative: a whole bibliography, one reference per line. Can be combined with `references`. |
| `mailto` | string (optional) | Contact email for the Crossref polite pool. |
| `maxReferences` | integer (optional, default 1000) | Safety cap on references checked per run. |

#### Example input

```json
{
  "references": [
    "LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521, 436-444. https://doi.org/10.1038/nature14539",
    "Johnson, M., & Patel, R. (2021). Neural lattice priors for protein folding. Nature, 590, 112-118."
  ]
}
```

### Output

One dataset item per reference:

```json
{"reference": "LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521, 436-444. https://doi.org/10.1038/nature14539",
 "status": "OK", "score": 1.0, "via": "doi",
 "matched": {"title": "Deep learning", "year": 2015,
             "doi": "10.1038/nature14539", "firstAuthor": "LeCun",
             "container": "Nature", "isReferencedByCount": 79692},
 "problems": []}
```

```json
{"reference": "Johnson, M., & Patel, R. (2021). Neural lattice priors for protein folding. Nature, 590, 112-118.",
 "status": "NOT_FOUND", "score": 0.0,
 "reason": "Crossref returned no candidates"}
```

| Field | Meaning |
|---|---|
| `reference` | The reference string exactly as given. |
| `status` | `OK` / `CHECK` / `NOT_FOUND` / `ERROR`. |
| `score` | Title containment: share of the matched record's title words found in your reference (0–1). |
| `via` | `doi` (direct DOI lookup) or `search` (bibliographic search). |
| `matched` | The Crossref record: `title`, `year`, `doi`, `firstAuthor`, `container`, `isReferencedByCount`. |
| `problems` | Human-readable list of mismatches (year, first author, title). Empty when `OK`. |

### How verification works

1. If the reference contains a DOI, it is looked up directly
   (`GET /works/{doi}`). Otherwise Crossref bibliographic search
   (`query.bibliographic`) provides the top candidate.
2. The matched record is compared with your reference text: title
   containment, publication year, and first-author surname.
3. The three-way verdict is assigned from those comparisons.

### Pricing (suggested — see note)

Pay-per-event: **$0.002 per reference checked** (event
`reference-checked`, i.e. $2.00 per 1,000 references), charged only for
references actually processed. Comparable Crossref-based tools charge
\~$1.50 per 1,000 records; academic MCP tools up to ~$20 per 1,000 calls.
*Note: final pricing is set in Apify Console when monetization is
enabled; this section states the intended price.*

### Known limits

- The title check is word containment, not fuzzy matching; heavily
  abbreviated or translated titles can be flagged `CHECK`.
- Only the top search candidate is compared; near-duplicate records
  (preprint vs. published version) are not disambiguated yet.
- Retraction status is not checked yet (planned: Crossref update
  metadata / Retraction Watch signals).
- References to works not indexed by Crossref (some books, grey
  literature, very old items) will return `NOT_FOUND` even if real —
  treat `NOT_FOUND` as "not in Crossref", not as absolute proof of
  fabrication.

# Actor input Schema

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

Crossref asks API clients to identify themselves with a contact email (the 'polite pool' gets faster, more stable service). The email is only sent to api.crossref.org as part of the lookup request. Leave empty to call Crossref anonymously.

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

Safety cap: at most this many references are checked in one run. Each reference costs one pay-per-event charge once monetization is enabled.

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

List of reference strings, one complete citation per item, in any citation style (APA, Vancouver, BibTeX-like plain text, etc.). DOIs may be included or omitted. Example item: LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521, 436-444.

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

Alternative input: paste a whole bibliography as plain text, exactly one reference per line. Lines may be in any citation style, with or without DOIs.

## Actor input object example

```json
{
  "mailto": "mocchi-agent@muse.ai",
  "maxReferences": 1000,
  "references": [
    "LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521, 436-444. https://doi.org/10.1038/nature14539"
  ],
  "referencesText": ""
}
```

# 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 = {
    "mailto": "mocchi-agent@muse.ai",
    "references": [
        "LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521, 436-444. https://doi.org/10.1038/nature14539"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mocchi-agent/reference-check").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 = {
    "mailto": "mocchi-agent@muse.ai",
    "references": ["LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521, 436-444. https://doi.org/10.1038/nature14539"],
}

# Run the Actor and wait for it to finish
run = client.actor("mocchi-agent/reference-check").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 '{
  "mailto": "mocchi-agent@muse.ai",
  "references": [
    "LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521, 436-444. https://doi.org/10.1038/nature14539"
  ]
}' |
apify call mocchi-agent/reference-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mocchi-agent/reference-check"
        }
    }
}
```

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/zmz7BKjNmkjxTsmZ2/builds/F7SWUnNP29Oh8jz1i/openapi.json
