It looks like you're offline.
Open Library logo

Developer Center / APIs / Books API → Diff

Added
Modified
Removed
Not changed
Revision 20 by Mek August 22, 2022
Revision 21 by AgentSapphire January 6, 2023
body
0 The Open Library Books API provides a programmatic client-side method for querying information of books using Javascript. 0 The Open Library Books API provides a programmatic client-side method for querying information of books using Javascript.
... ...
21 Here is an example: 21 Here is an example:
22 https://openlibrary.org/works/OL45883W/Fantastic_Mr._FOX 22 https://openlibrary.org/works/OL45804W/Fantastic_Mr._FOX
23 23
24 In this example, if we remove the /Title from the URL (e.g. https://openlibrary.org/works/OL45883W) and then add a suffix of ".json" or ".yml" to the end, the page will return a data representation instead of HTML, e.g.: 24 In this example, if we remove the /Title from the URL (e.g. https://openlibrary.org/works/OL45804W) and then add a suffix of ".json" or ".yml" to the end, the page will return a data representation instead of HTML, e.g.:
25 25
26 https://openlibrary.org/works/OL45883W.json 26 https://openlibrary.org/works/OL45804W.json
27 27
28 #### Fetching a Work's Editions 28 #### Fetching a Work's Editions
29 29
30 You can fetch a work's editions by adding `/editions.json` after the work ID: 30 You can fetch a work's editions by adding `/editions.json` after the work ID:
31 31
32 https://openlibrary.org/works/OL45883W/editions.json 32 https://openlibrary.org/works/OL45804W/editions.json
33 33
... ...
40 40
41 In this example, if we remove the /Title from the URL (e.g. https://openlibrary.org/works/OL45883W) and then add a suffix of ".json" or ".yml" to the end, the page will return a data representation instead of HTML, e.g.: 41 In this example, if we remove the /Title from the URL (e.g. https://openlibrary.org/works/OL45804W) and then add a suffix of ".json" or ".yml" to the end, the page will return a data representation instead of HTML, e.g.:
42 42
... ...
559 Earlier these details were provided when `details=true` parameter is passed. It is equivalent to `jscmd=details` and it is retained only for backward-compataibilty. 559 Earlier these details were provided when `details=true` parameter is passed. It is equivalent to `jscmd=details` and it is retained only for backward-compataibilty.