Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APICrossref

    crossref.work

    One work by its DOI, as registered with Crossref: title, authors, journal or book, publisher, dates, citation count, abstract, licence and funders.

    Id
    crossref.work
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/crossref.work/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.

    Inputs of crossref.work
    FieldTypeDescription
    doirequiredstringThe work's DOI, e.g. 10.1038/nature14539, or its address (https://doi.org/10.1038/nature14539).Limit: at least 1 characters, at most 400 characters.
    • doi is the DOI (10.1038/nature14539), with or without doi: before it, or its address at doi.org. Upper and lower case are the same DOI.
    • published is the date as far as it was deposited: 2015-05-27, 2015-05 or 2015. published_print and published_online are given where the publisher deposited them separately.
    • cited_by_count counts the works registered with Crossref that cite this one. reference_count is the length of the work's reference list; the list itself is not returned.
    • resource_url is where the DOI leads. pdf_url is a PDF the publisher named, which may need a subscription to open.
    • A DOI that is not registered with Crossref ends failed with not_found, and costs nothing. DOIs of other registration agencies, which most DOIs of research data are, end the same way — 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.

    Record fields of crossref.work
    FieldTypeNotes
    doistringThe work's DOI, e.g. 10.1038/nature14539.
    urlstringThe DOI as an address: https://doi.org/<doi>.
    typestring or nullCrossref's type of work, e.g. journal-article, book-chapter, proceedings-article, posted-content (a preprint), monograph.
    titlestring or nullThe work's title. Null for the few records deposited without one.
    subtitlestring or nullThe subtitle, when one was deposited.
    authorsarray of objectThe authors, in the deposited order.
    name (in authors[])stringThe author's name: given name then family name, or the organisation's name for an author that is one.
    given (in authors[])string or nullThe given name, as deposited.
    family (in authors[])string or nullThe family name, as deposited.
    orcid (in authors[])string or nullThe author's ORCID iD, e.g. 0000-0002-1825-0097, when the publisher deposited one.
    affiliations (in authors[])array of stringThe affiliations deposited for this author, as written.
    container_titlestring or nullWhat the work appeared in: the journal, the book or the proceedings.
    publisherstring or nullThe publisher's name.
    publishedstring or nullThe publication date as deposited: 2015-05-27, or 2015-05 or 2015 where no day or month was given.
    published_printstring or nullThe date of the print edition, in the same form.
    published_onlinestring or nullThe date of online publication, in the same form.
    volumestring or nullThe volume.
    issuestring or nullThe issue.
    pagestring or nullThe page range, as deposited, e.g. 436-444; for a journal without pages, the article number.
    issnarray of stringThe ISSNs of the journal or series.
    isbnarray of stringThe ISBNs of the book.
    languagestring or nullThe language code deposited, e.g. en.
    abstractstring or nullThe abstract as text, where the publisher deposited one.
    subjectsarray of stringThe subject names on the record. Empty for most works.
    reference_countinteger or nullHow many references the work's record lists.
    cited_by_countinteger or nullHow many works registered with Crossref cite this one.
    license_urlsarray of stringThe addresses of the licences deposited for the work, e.g. http://creativecommons.org/licenses/by/4.0/.
    fundersarray of objectThe funders the work acknowledges, as deposited.
    name (in funders[])stringThe funder's name, as deposited.
    doi (in funders[])string or nullThe funder's DOI in the Funder Registry, e.g. 10.13039/100000001.
    awards (in funders[])array of stringThe award or grant numbers deposited for this funder.
    resource_urlstring or nullWhere the DOI leads: the work's page at its publisher.
    pdf_urlstring or nullThe address of a PDF the publisher deposited for the work. It may need a subscription to open.
    fetched_atstring (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.work/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"doi":"10.7717/peerj.4375"}}'
    
    # 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.work", {"doi": "10.7717/peerj.4375"})
    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.work", { doi: "10.7717/peerj.4375" });
    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.work", map[string]any{"doi": "10.7717/peerj.4375"})
    	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.work", Map.of("doi", "10.7717/peerj.4375"));
            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.work --input doi=10.7717/peerj.4375

    Install 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:

    JSON
    {
      "input": {
        "doi": "10.7717/peerj.4375"
      }
    }

    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.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "crossref.work",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "doi": "10.7717/peerj.4375"
      },
      "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.

    JSON
    {
      "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": "en",
          "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.822029Z"
        }
      ],
      "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.