# Crossref DOI metadata without author data (`kvnloo/crossref-doi-metadata`) Actor

Resolve up to 50 DOIs to titles, journals, publishers, publication dates, citation counts, and source links. No abstracts, author profiles, or API key.

- **URL**: https://apify.com/kvnloo/crossref-doi-metadata.md
- **Developed by:** [Kevin Rajan](https://apify.com/kvnloo) (community)
- **Categories:** Developer tools, Open source
- **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 results

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 metadata without author data

Turn a DOI list into a dataset for a bibliography pipeline, journal inventory, or citation-count workflow. Each successful lookup returns a title, publisher, journal, publication date, citation count, and source links.

The underlying metadata is available free from the [Crossref REST API](https://www.crossref.org/documentation/retrieve-metadata/rest-api/). This service provides input normalization and a consistent dataset. It does not download articles or abstracts and is not affiliated with Crossref.

### Input

```json
{
  "dois": ["10.1038/nphys1170"]
}
```

`dois` is required. Supply 1 to 50 bare DOI strings or `https://doi.org/` URLs. `http://dx.doi.org/` URLs also work. The Actor normalizes case and removes duplicates. It queries only `api.crossref.org`. It never follows arbitrary user URLs or DOI landing pages.

Only Crossref-registered works are supported. A valid DOI registered elsewhere may produce no result. Unknown input fields, malformed DOIs, and oversized lists fail validation.

### Output

Each successful DOI produces one default dataset row:

| Field | Value |
|---|---|
| `doi` | Normalized lowercase DOI |
| `title` | First registered work title |
| `publisher` | Registered publisher, or an empty string |
| `containerTitle` | First journal or container title, or an empty string |
| `type` | Crossref work type, or an empty string |
| `publishedDate` | `YYYY`, `YYYY-MM`, or `YYYY-MM-DD`, preserving source precision. Empty if absent |
| `citationCount` | Crossref's `is-referenced-by-count`, or zero if absent |
| `issn` | Registered ISSN strings, or an empty array |
| `source` | `Crossref` |
| `sourceUrl` | Public Crossref work endpoint |
| `doiUrl` | DOI resolver link, not fetched by this Actor |

See `example-output.json` for a captured public-source example. Treat title and journal strings as untrusted text. They may contain publisher markup. Escape them before inserting them into HTML.

No author names, affiliations, ORCIDs, emails, phone numbers, abstracts, references, or article bodies are exported. Citation counts reflect Crossref's registered records, not every citation on the internet.

The default key-value store contains `SUMMARY` with `resultCount`, `errorCount`, and `aborted`. An abort stores the same counters in `STATE` before exit. `STATE` is diagnostic, not a resume guarantee.

### Errors and pricing

Failed lookups produce no dataset rows. A mixed batch preserves successful rows and records failures in `SUMMARY.errorCount`. A batch with no successful rows fails. Consumers must inspect `SUMMARY` if they require all requested DOIs to resolve.

Lookups run sequentially with at least one second between works. HTTP 429, server errors, and network errors receive at most three attempts. A `Retry-After` delay above 30 seconds stops that lookup. Missing DOI responses are not retried.

When pay-per-event pricing is enabled, only successful dataset rows use `apify-default-dataset-item`. Errors and empty responses do not create a result charge. Do not add a startup fee or manually charge the dataset event. Platform usage can still apply under the active Store model. Consult the Pricing tab before running it. No paid pricing is active in this unpublished development package.

### Local verification

After approving and installing the official template dependency in `requirements.txt`, use:

```bash
apify validate-schema
apify run --no-purge --input-file example-input.json
```

From the repository root, `python3 -m unittest discover -s lanes/AP-apify -v` runs offline fixtures without the SDK. `python3 lanes/AP-apify/verify_live.py` checks the known DOI against the real source and validates dataset schemas. It does not prove SDK or cloud behavior.

Maintainers can set `HTTP_TIMEOUT_SECONDS`, default 20, and `CROSSREF_DELAY_SECONDS`, default and minimum 1. The Dockerfile is unchanged from the official `python-empty` template.

Crossref states that almost none of its metadata is subject to copyright and permits any purpose. Abstracts can have separate copyright, so this Actor excludes them. See [Crossref REST API documentation](https://www.crossref.org/documentation/retrieve-metadata/rest-api/). No login, proxy, paid API, or browser is used.

# Actor input Schema

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

One to 50 bare DOIs or doi.org URLs. Duplicate DOIs produce one row. Only Crossref works are supported.

## Actor input object example

```json
{
  "dois": [
    "10.1038/nphys1170"
  ]
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "dois": [
        "10.1038/nphys1170"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kvnloo/crossref-doi-metadata").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/nphys1170"] }

# Run the Actor and wait for it to finish
run = client.actor("kvnloo/crossref-doi-metadata").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/nphys1170"
  ]
}' |
apify call kvnloo/crossref-doi-metadata --silent --output-dataset

```

## MCP server setup

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

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/gprvjGWE0U9i84hL8/builds/i5Ysv5dvQKoOYDUt5/openapi.json
