Scraper APICrossref
crossref.works
The works Crossref lists for a search: DOI, title, authors, journal or book, publisher, dates, citation count, abstract and licence.
- Id
crossref.works- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/crossref.works/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
queryrequired | string | What to search for: words from a title, an author's name, a journal, or a whole citation.Limit: at least 1 characters, at most 500 characters. |
type | string | Only works of this Crossref type, e.g. journal-article, book-chapter, proceedings-article, posted-content, book.Limit: matches ^[a-z][a-z-]{2,40}$. |
sort | "relevance" | "published" | "cited" | The order: relevance (best match first), published (newest first) or cited (most cited first).Default: "relevance". |
max_results | integer | Works a page, at most 100.Limit: 1 to 100. Default: 20. |
page | integer | The page of results, from 1. Crossref serves the first 10,000 results of a search this way.Limit: at least 1. Default: 1. |
querytakes words from a title, an author's name, a journal, or a whole citation pasted in: Crossref matches them against every part of a record, best match first.- Crossref matches any of the words. With
sortpublishedorcited, every work that matches one of them is put in that order, so the first works can be far from the search, and underpublisheda work deposited with a date in the future comes first. Keeprelevanceto search a topic; narrow a sorted search withtype. typeis one of Crossref's types of work:journal-article,book-chapter,proceedings-article,posted-content(preprints),book,monograph,report,dissertationand the like. One it does not have endsfailedwithinvalid_query.- A record is what the work's publisher deposited, so many have no
abstract, noaffiliationsand nolicense_urls.languageis not part of a search result and isnullhere;crossref.workreturns it. - One run reads one page:
max_resultsworks. Crossref serves the first 10,000 results of a search this way. A search nothing matches endsokwith zero records — see the reasons of this family.
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
doi | string | The work's DOI, e.g. 10.1038/nature14539. |
url | string | The DOI as an address: https://doi.org/<doi>. |
type | string or null | Crossref's type of work, e.g. journal-article, book-chapter, proceedings-article, posted-content (a preprint), monograph. |
title | string or null | The work's title. Null for the few records deposited without one. |
subtitle | string or null | The subtitle, when one was deposited. |
authors | array of object | The authors, in the deposited order. |
name (in authors[]) | string | The author's name: given name then family name, or the organisation's name for an author that is one. |
given (in authors[]) | string or null | The given name, as deposited. |
family (in authors[]) | string or null | The family name, as deposited. |
orcid (in authors[]) | string or null | The author's ORCID iD, e.g. 0000-0002-1825-0097, when the publisher deposited one. |
affiliations (in authors[]) | array of string | The affiliations deposited for this author, as written. |
container_title | string or null | What the work appeared in: the journal, the book or the proceedings. |
publisher | string or null | The publisher's name. |
published | string or null | The publication date as deposited: 2015-05-27, or 2015-05 or 2015 where no day or month was given. |
published_print | string or null | The date of the print edition, in the same form. |
published_online | string or null | The date of online publication, in the same form. |
volume | string or null | The volume. |
issue | string or null | The issue. |
page | string or null | The page range, as deposited, e.g. 436-444; for a journal without pages, the article number. |
issn | array of string | The ISSNs of the journal or series. |
isbn | array of string | The ISBNs of the book. |
language | string or null | The language code deposited, e.g. en. |
abstract | string or null | The abstract as text, where the publisher deposited one. |
subjects | array of string | The subject names on the record. Empty for most works. |
reference_count | integer or null | How many references the work's record lists. |
cited_by_count | integer or null | How many works registered with Crossref cite this one. |
license_urls | array of string | The addresses of the licences deposited for the work, e.g. http://creativecommons.org/licenses/by/4.0/. |
funders | array of object | The funders the work acknowledges, as deposited. |
name (in funders[]) | string | The funder's name, as deposited. |
doi (in funders[]) | string or null | The funder's DOI in the Funder Registry, e.g. 10.13039/100000001. |
awards (in funders[]) | array of string | The award or grant numbers deposited for this funder. |
resource_url | string or null | Where the DOI leads: the work's page at its publisher. |
pdf_url | string or null | The address of a PDF the publisher deposited for the work. It may need a subscription to open. |
fetched_at | string (date-time) | When Crossref was asked, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/crossref.works/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"query":"open access prevalence impact piwowar","max_results":3}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("crossref.works", {
"query": "open access prevalence impact piwowar",
"max_results": 3,
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("crossref.works", {
query: "open access prevalence impact piwowar",
max_results: 3,
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "crossref.works", map[string]any{"query": "open access prevalence impact piwowar", "max_results": 3})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("crossref.works", Map.of("query", "open access prevalence impact piwowar", "max_results", 3));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run crossref.works --input 'query=open access prevalence impact piwowar' --input max_results=3Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"query": "open access prevalence impact piwowar",
"max_results": 3
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "crossref.works",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"query": "open access prevalence impact piwowar",
"max_results": 3
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"doi": "10.7717/peerj.4375",
"url": "https://doi.org/10.7717/peerj.4375",
"type": "journal-article",
"title": "The state of OA: a large-scale analysis of the prevalence and impact of Open Access articles",
"subtitle": null,
"authors": [
{
"name": "Heather Piwowar",
"given": "Heather",
"family": "Piwowar",
"orcid": null,
"affiliations": [
"Impactstory, Sanford, NC, USA"
]
},
{
"name": "Jason Priem",
"given": "Jason",
"family": "Priem",
"orcid": null,
"affiliations": [
"Impactstory, Sanford, NC, USA"
]
}
],
"container_title": "PeerJ",
"publisher": "PeerJ",
"published": "2018-02-13",
"published_print": null,
"published_online": "2018-02-13",
"volume": "6",
"issue": null,
"page": "e4375",
"issn": [
"2167-8359"
],
"isbn": [],
"language": null,
"abstract": "Despite growing interest in Open Access (OA) to scholarly literature, there is an unmet need for large-scale, up-to-date, and reproducible studies assessing the prevalence and characteristics of OA. We address this need using oaDOI, an open … [truncated]",
"subjects": [],
"reference_count": 52,
"cited_by_count": 888,
"license_urls": [
"http://creativecommons.org/licenses/by/4.0/"
],
"funders": [],
"resource_url": "https://peerj.com/articles/4375",
"pdf_url": "https://peerj.com/articles/4375.pdf",
"fetched_at": "2026-11-19T18:07:39.829370Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
authors: 9 items, the first 2 shown. - Shortened:
abstract: 1,630 characters, the first 240 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Crossref scrapers are in their own section there.