APIs / Open Library / Work

Open Library: Work

One work (a book across all its editions): description, subjects, first publication date, authors, covers and ratings.

GET /v1/openlibrary/work

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
idstringRequiredUp to 30 characters
Work id, for example OL893415W (from search).

Example request

Open Library
GET/v1/openlibrary/work?id=OL45804W
{
  "success": true,
  "data": {
    "work_id": "OL45804W",
    "title": "Fantastic Mr Fox",
    "description": "The main character of Fantastic Mr. Fox is an extremely clever anthropomorphized fox named Mr. Fox. He lives with his wife and four little foxes. In order to feed his family, he steals food from the cruel, brutish farmers named Boggis, Bunc…",
    "authors": [
      "OL34184A"
    ],
    "subjects": [
      "Animals",
      "Hunger",
      "Open Library Staff Picks"
    ],
    "subject_places": [
      "English countryside"
    ],
    "subject_people": [
      "Bean",
      "Boggis",
      "Bunce"
    ],
    "subject_times": [
      "20th Century"
    ],
    "covers": [
      "https://covers.openlibrary.org/b/id/6498519-L.jpg",
      "https://covers.openlibrary.org/b/id/8904777-L.jpg",
      "https://covers.openlibrary.org/b/id/108274-L.jpg"
    ],
    "rating": {
      "average": 3.94,
      "count": 123
    },
    "url": "https://openlibrary.org/works/OL45804W"
  },
  "meta": {
    "request_id": "req_e829610546c94f81a1877848d6dd5cd0",
    "credits_charged": 1,
    "credits_remaining": 1971
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

data has these 11 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
work_idstring
titlestring
descriptionstring
authorsstring[]
subjectsstring[]
subject_placesstring[]
subject_peoplestring[]
subject_timesstring[]
coversstring[]
ratingobject
urlurl