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.
| Field | Type | Description |
|---|---|---|
workrequired | string | The 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. |
workis an OpenAlex id (W2741809807), a DOI (10.7717/peerj.4375), a PubMed id writtenpmid:29456894, or the work's address on openalex.org or doi.org.- Ids in the record are bare:
idisW…,doihas nohttps://doi.org/before it, an author'sidisA…andorcidthe sixteen characters. - Each author carries the institutions OpenAlex matched the work's affiliations to, and their countries.
positionisfirst,middleorlast. oa_statusisgold,diamond,hybrid,green,bronzeorclosed;oa_urlis the best free copy OpenAlex found.landing_page_url,pdf_urlandlicensedescribe the place the work was published.abstractis put back together from the word index OpenAlex stores and isnullwhere it has none.fwciis 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
failedwithnot_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.
| Field | Type | Notes |
|---|---|---|
id | string | OpenAlex's id of the work, e.g. W2741809807. |
url | string | The work's page on openalex.org. |
doi | string or null | The work's DOI, e.g. 10.7717/peerj.4375. Null for a work without one. |
title | string or null | The work's title. Null for the few works catalogued without one. |
type | string or null | OpenAlex's type of work, e.g. article, preprint, review, book, book-chapter, dissertation. |
publication_year | integer or null | The year the work was published. |
publication_date | string or null | The day the work was published, YYYY-MM-DD. Where only a year is known OpenAlex gives 1 January. |
language | string or null | The language OpenAlex detected for the work, as a two-letter code. |
authors | array of object | The authors, in the work's order. |
name (in authors[]) | string | The author's name, as OpenAlex displays it. |
id (in authors[]) | string or null | OpenAlex's id of the author, e.g. A5048491430. |
orcid (in authors[]) | string or null | The author's ORCID iD, e.g. 0000-0003-1613-5981, when OpenAlex knows one. |
position (in authors[]) | string or null | Where the author stands in the author list: first, middle or last. |
is_corresponding (in authors[]) | boolean or null | True when the work names this author as its corresponding author. |
institutions (in authors[]) | array of string | The institutions OpenAlex matched this author's affiliations on the work to, by name. |
countries (in authors[]) | array of string | The countries of those affiliations, as two-letter codes. |
source | string or null | Where the work was published: the journal, repository, conference or book series. |
source_type | string or null | What kind of place that is: journal, repository, conference, ebook platform, book series. |
publisher | string or null | The organisation behind that source. |
issn | string or null | The source's linking ISSN (ISSN-L). |
volume | string or null | The volume. |
issue | string or null | The issue. |
first_page | string or null | The first page, or the article number. |
last_page | string or null | The last page. |
is_open_access | boolean or null | True when OpenAlex found a copy anyone can read without paying. |
oa_status | string or null | The kind of open access: gold, diamond, hybrid, green, bronze, or closed. |
oa_url | string or null | The address of the best free copy OpenAlex found. |
landing_page_url | string or null | The work's page at its publisher or repository. |
pdf_url | string or null | The address of a PDF at that place, when OpenAlex has one. |
license | string or null | The licence of that copy, e.g. cc-by. |
cited_by_count | integer or null | How many works in OpenAlex cite this one. |
referenced_works_count | integer or null | How many works this one cites. |
fwci | number or null | The field-weighted citation impact: citations relative to works of the same field, type and year, where 1 is average. |
is_retracted | boolean or null | True when the work has been retracted. |
primary_topic | string or null | The topic OpenAlex assigns the work first, e.g. Academic Publishing and Open Access. |
field | string or null | The field that topic belongs to, e.g. Social Sciences, Computer Science. |
topics | array of string | Every topic OpenAlex assigns the work, best match first. |
keywords | array of string | The keywords OpenAlex assigns the work. |
abstract | string or null | The abstract as text, put back together from OpenAlex's word index. Null where OpenAlex has none. |
pmid | string or null | The work's PubMed id, when it has one. |
pmcid | string or null | The work's PubMed Central id, e.g. PMC5815332, when it has one. |
updated_at | string (date-time) or null | When OpenAlex last changed its record of the work, in UTC. |
fetched_at | string (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=W2741809807Install 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": {
"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.
{
"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.
{
"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.