Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIOpenAlex

    openalex.work

    One scholarly work by its OpenAlex id, DOI or PubMed id: authors and their institutions, where it was published, open-access status, citations, topics and abstract.

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

    Start it with POST /v1/scrapers/openalex.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 openalex.work
    FieldTypeDescription
    workrequiredstringThe work: its OpenAlex id (W2741809807), its DOI (10.7717/peerj.4375), its PubMed id as pmid:29456894, or its address on openalex.org or doi.org.Limit: at least 1 characters, at most 400 characters.
    • work is an OpenAlex id (W2741809807), a DOI (10.7717/peerj.4375), a PubMed id written pmid:29456894, or the work's address on openalex.org or doi.org.
    • Ids in the record are bare: id is W…, doi has no https://doi.org/ before it, an author's id is A… and orcid the sixteen characters.
    • Each author carries the institutions OpenAlex matched the work's affiliations to, and their countries. position is first, middle or last.
    • oa_status is gold, diamond, hybrid, green, bronze or closed; oa_url is the best free copy OpenAlex found. landing_page_url, pdf_url and license describe the place the work was published.
    • abstract is put back together from the word index OpenAlex stores and is null where it has none. fwci is the field-weighted citation impact, where 1 is the average of works of the same field, type and year.
    • An id OpenAlex has no work under ends failed with not_found, and costs nothing — 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 openalex.work
    FieldTypeNotes
    idstringOpenAlex's id of the work, e.g. W2741809807.
    urlstringThe work's page on openalex.org.
    doistring or nullThe work's DOI, e.g. 10.7717/peerj.4375. Null for a work without one.
    titlestring or nullThe work's title. Null for the few works catalogued without one.
    typestring or nullOpenAlex's type of work, e.g. article, preprint, review, book, book-chapter, dissertation.
    publication_yearinteger or nullThe year the work was published.
    publication_datestring or nullThe day the work was published, YYYY-MM-DD. Where only a year is known OpenAlex gives 1 January.
    languagestring or nullThe language OpenAlex detected for the work, as a two-letter code.
    authorsarray of objectThe authors, in the work's order.
    name (in authors[])stringThe author's name, as OpenAlex displays it.
    id (in authors[])string or nullOpenAlex's id of the author, e.g. A5048491430.
    orcid (in authors[])string or nullThe author's ORCID iD, e.g. 0000-0003-1613-5981, when OpenAlex knows one.
    position (in authors[])string or nullWhere the author stands in the author list: first, middle or last.
    is_corresponding (in authors[])boolean or nullTrue when the work names this author as its corresponding author.
    institutions (in authors[])array of stringThe institutions OpenAlex matched this author's affiliations on the work to, by name.
    countries (in authors[])array of stringThe countries of those affiliations, as two-letter codes.
    sourcestring or nullWhere the work was published: the journal, repository, conference or book series.
    source_typestring or nullWhat kind of place that is: journal, repository, conference, ebook platform, book series.
    publisherstring or nullThe organisation behind that source.
    issnstring or nullThe source's linking ISSN (ISSN-L).
    volumestring or nullThe volume.
    issuestring or nullThe issue.
    first_pagestring or nullThe first page, or the article number.
    last_pagestring or nullThe last page.
    is_open_accessboolean or nullTrue when OpenAlex found a copy anyone can read without paying.
    oa_statusstring or nullThe kind of open access: gold, diamond, hybrid, green, bronze, or closed.
    oa_urlstring or nullThe address of the best free copy OpenAlex found.
    landing_page_urlstring or nullThe work's page at its publisher or repository.
    pdf_urlstring or nullThe address of a PDF at that place, when OpenAlex has one.
    licensestring or nullThe licence of that copy, e.g. cc-by.
    cited_by_countinteger or nullHow many works in OpenAlex cite this one.
    referenced_works_countinteger or nullHow many works this one cites.
    fwcinumber or nullThe field-weighted citation impact: citations relative to works of the same field, type and year, where 1 is average.
    is_retractedboolean or nullTrue when the work has been retracted.
    primary_topicstring or nullThe topic OpenAlex assigns the work first, e.g. Academic Publishing and Open Access.
    fieldstring or nullThe field that topic belongs to, e.g. Social Sciences, Computer Science.
    topicsarray of stringEvery topic OpenAlex assigns the work, best match first.
    keywordsarray of stringThe keywords OpenAlex assigns the work.
    abstractstring or nullThe abstract as text, put back together from OpenAlex's word index. Null where OpenAlex has none.
    pmidstring or nullThe work's PubMed id, when it has one.
    pmcidstring or nullThe work's PubMed Central id, e.g. PMC5815332, when it has one.
    updated_atstring (date-time) or nullWhen OpenAlex last changed its record of the work, in UTC.
    fetched_atstring (date-time)When OpenAlex 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/openalex.work/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"work":"W2741809807"}}'
    
    # 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("openalex.work", {"work": "W2741809807"})
    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("openalex.work", { work: "W2741809807" });
    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, "openalex.work", map[string]any{"work": "W2741809807"})
    	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("openalex.work", Map.of("work", "W2741809807"));
            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 openalex.work --input work=W2741809807

    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": {
        "work": "W2741809807"
      }
    }

    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": "openalex.work",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "work": "W2741809807"
      },
      "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": [
        {
          "id": "W2741809807",
          "url": "https://openalex.org/W2741809807",
          "doi": "10.7717/peerj.4375",
          "title": "The state of OA: a large-scale analysis of the prevalence and impact of Open Access articles",
          "type": "article",
          "publication_year": 2018,
          "publication_date": "2018-02-13",
          "language": "en",
          "authors": [
            {
              "name": "Heather Piwowar",
              "id": "A5048491430",
              "orcid": "0000-0003-1613-5981",
              "position": "first",
              "is_corresponding": true,
              "institutions": [
                "OpenAlex"
              ],
              "countries": [
                "CA"
              ]
            },
            {
              "name": "Jason R Priem",
              "id": "A5023888391",
              "orcid": "0000-0001-6187-6610",
              "position": "middle",
              "is_corresponding": true,
              "institutions": [
                "OpenAlex"
              ],
              "countries": [
                "CA"
              ]
            }
          ],
          "source": "PeerJ",
          "source_type": "journal",
          "publisher": "PeerJ, Inc.",
          "issn": "2167-8359",
          "volume": "6",
          "issue": null,
          "first_page": "e4375",
          "last_page": "e4375",
          "is_open_access": true,
          "oa_status": "gold",
          "oa_url": "https://doi.org/10.7717/peerj.4375",
          "landing_page_url": "https://doi.org/10.7717/peerj.4375",
          "pdf_url": null,
          "license": "cc-by",
          "cited_by_count": 1704,
          "referenced_works_count": 47,
          "fwci": 420.0552,
          "is_retracted": false,
          "primary_topic": "Academic Publishing and Open Access",
          "field": "Social Sciences",
          "topics": [
            "Academic Publishing and Open Access",
            "scientometrics and bibliometrics research",
            "Publishing and Scholarly Communication"
          ],
          "keywords": [
            "open access",
            "Crossref DOIs",
            "Web of Science"
          ],
          "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]",
          "pmid": "29456894",
          "pmcid": "PMC5815332",
          "updated_at": "2026-11-18T13:11:19.462570Z",
          "fetched_at": "2026-11-19T18:07:41.044897Z"
        }
      ],
      "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: keywords: 11 items, the first 3 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 OpenAlex scrapers are in their own section there.