# Crossref Works Scraper: Scholarly Metadata & DOIs (`plainkitbin/crossref-works`) Actor

Fetch scholarly work metadata (DOI, title, journal, publisher, publication date, citation counts) from the public Crossref REST API as structured JSON rows. Not affiliated with Crossref REST API (scholarly metadata, DOIs, open citations; CC0 factual data).

- **URL**: https://apify.com/plainkitbin/crossref-works.md
- **Developed by:** [PlainKit bin](https://apify.com/plainkitbin) (community)
- **Categories:** Education, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 crossref work records

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/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 Works Scraper: Scholarly Metadata, DOIs and Citation Counts

Librarians, research-intelligence teams, bibliometrics analysts, literature-review writers, publishers, and developers who feed reference managers or knowledge graphs need scholarly metadata as clean rows instead of hand-built API calls. One run returns up to 1,000 works from the public Crossref REST API for a search phrase, a work type and a publication date window: one row per work with its DOI, title, journal or container, publisher, publication date, cited-by count, reference count, ISSN and DOI link.

Typical jobs: build a reading list for a topic, track new journal articles in a date window, rank works by how often they are cited, check which publisher or journal carries a topic, or load DOIs into a citation graph.

The price is **$0.001** per delivered work row under the `FREE` tier on Apify Pay-Per-Event (event name: `crossref-work`).
This Actor is an independent tool and is not affiliated with Crossref REST API (scholarly metadata, DOIs, open citations; CC0 factual data).
It needs no API key and no account at the data provider.

### Output Row Fields

Each delivered row contains 10 fields copied from the Crossref response:

- `doi`: the DOI of the work (for example `10.1007/s11192-025-05297-z`)
- `title`: first title of the work
- `type`: Crossref work type (`journal-article`, `book-chapter`, `proceedings-article`, ...)
- `container_title`: first journal, book or proceedings title that holds the work
- `publisher`: publisher name as registered at Crossref
- `published_date`: issued date as `YYYY-MM-DD`, `YYYY-MM` or `YYYY`, depending on what Crossref holds
- `cited_by_count`: number of works that cite this one, as counted by Crossref
- `references_count`: number of references deposited for this work
- `issn`: first ISSN of the container, empty when none is registered
- `url`: DOI link of the work

#### Example Output

```json
{
  "cited_by_count": 107,
  "container_title": "JAMA Network Open",
  "doi": "10.1001/jamanetworkopen.2024.20496",
  "issn": "2574-3805",
  "published_date": "2024-07-08",
  "publisher": "American Medical Association (AMA)",
  "references_count": 27,
  "title": "Performance of a Large Language Model in Screening Citations",
  "type": "journal-article",
  "url": "https://doi.org/10.1001/jamanetworkopen.2024.20496"
}
```

If Crossref refuses a call (HTTP 401, 403 or 429), the run ends with one extra row of type `status` and reason code `STATUS_CROSSREF_REFUSED` in the `doi` field. That row is never charged. Rows delivered before the refusal stay delivered and charged.

### Pricing and Charging

- Event name: `crossref-work`
- Pricing model: Apify Pay-Per-Event
- Tier prices:
  - FREE: $0.001 per event
  - BRONZE: $0.0009 per event
  - SILVER: $0.0008 per event
  - GOLD: $0.0006968 per event
  - PLATINUM: $0.0006968 per event
  - DIAMOND: $0.0006668 per event

Each work row is pushed first to the dataset and charged right after a successful push.
A refused charge halts work immediately and that row remains delivered and uncharged; a reached spending limit halts work after that row was charged.
Failed requests produce 0 charges and push no data.
Restart safety: if a run is restarted or resumed by the platform, already delivered works are recognized by DOI and never pushed or charged twice.

### Input Parameters

| Field | Type | Description | Default |
| --- | --- | --- | --- |
| `search` | String | Free-text search over scholarly works. | `""` |
| `work_type` | String (select) | Keep one Crossref work type, for example `journal-article`. | `""` |
| `date_from` | String | Earliest publication date, `YYYY-MM-DD`. | `""` |
| `date_to` | String | Latest publication date, `YYYY-MM-DD`. | `""` |
| `sort` | String (select) | `published` (newest first) or `is-referenced-by-count` (most cited first). | `""` |
| `max_items` | Integer (1-1000) | Maximum number of works to output. | `10` |

#### Example Input

```json
{
  "search": "open citations",
  "work_type": "journal-article",
  "date_from": "2024-01-01",
  "sort": "is-referenced-by-count",
  "max_items": 10
}
```

### Crossref Data Terms & Limitations

Data is read from the public Crossref REST API at `api.crossref.org` without a key.
Crossref states that almost all of its metadata is reusable without restriction, with the exception of abstracts; this Actor does not request abstracts or author names.

- The Actor spaces its requests one second apart, the rate that the public pool announces, and makes at most one request per 50 rows.
- Transient server errors are retried a bounded number of times; HTTP 401, 403 and 429 are never retried.
- Redirects are never followed.
- Crossref holds only what publishers deposit: some works have no cited-by count above zero, no ISSN, or only a year as the date.
- Deep result lists are capped by the API at 10,000 rows per query, so narrow the date window for larger pulls.

# Actor input Schema

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

Free-text search over scholarly works (title, authors, journal and similar fields at Crossref). Leave empty for no text filter.

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

Crossref work type to keep. Leave empty for all types.

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

Keep works published on or after this date (format: YYYY-MM-DD). Leave empty for no lower bound.

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

Keep works published on or before this date (format: YYYY-MM-DD). Leave empty for no upper bound.

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

Sort newest or most cited first. Leave empty for Crossref's default order.

## `max_items` (type: `integer`):

Maximum number of works to output (prefilled default 10, hard upper bound 1000).

## Actor input object example

```json
{
  "search": "open citations",
  "work_type": "journal-article",
  "date_from": "",
  "date_to": "",
  "sort": "",
  "max_items": 10
}
```

# Actor output Schema

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

Dataset items produced by this 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 = {
    "search": "open citations",
    "work_type": "journal-article",
    "date_from": "",
    "date_to": "",
    "sort": "",
    "max_items": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainkitbin/crossref-works").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 = {
    "search": "open citations",
    "work_type": "journal-article",
    "date_from": "",
    "date_to": "",
    "sort": "",
    "max_items": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("plainkitbin/crossref-works").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 '{
  "search": "open citations",
  "work_type": "journal-article",
  "date_from": "",
  "date_to": "",
  "sort": "",
  "max_items": 10
}' |
apify call plainkitbin/crossref-works --silent --output-dataset

```

## MCP server setup

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

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/h1yEKWbpIC5hydviK/builds/aoRdV1mUd2a7FbBxB/openapi.json
