Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    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.

    Inputs of crossref.works
    FieldTypeDescription
    queryrequiredstringWhat 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.
    typestringOnly 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_resultsintegerWorks a page, at most 100.Limit: 1 to 100. Default: 20.
    pageintegerThe page of results, from 1. Crossref serves the first 10,000 results of a search this way.Limit: at least 1. Default: 1.
    • query takes 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 sort published or cited, every work that matches one of them is put in that order, so the first works can be far from the search, and under published a work deposited with a date in the future comes first. Keep relevance to search a topic; narrow a sorted search with type.
    • type is one of Crossref's types of work: journal-article, book-chapter, proceedings-article, posted-content (preprints), book, monograph, report, dissertation and the like. One it does not have ends failed with invalid_query.
    • A record is what the work's publisher deposited, so many have no abstract, no affiliations and no license_urls. language is not part of a search result and is null here; crossref.work returns it.
    • One run reads one page: max_results works. Crossref serves the first 10,000 results of a search this way. A search nothing matches ends ok with 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.

    Record fields of crossref.works
    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.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=3

    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": {
        "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.

    JSON
    {
      "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.

    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": 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.