It looks like you're offline.
Open Library logo

Search inside individual book API → Diff

Added
Modified
Removed
Not changed
Revision 10 by Brenton Cheng October 26, 2016
Revision 12 by Mek March 15, 2022
body
0 **WARNING: This is an experimental API and can change in future.** 0 **WARNING: This is an experimental API and can change in future.**
1 1
2 Here is an example of searching inside a book using the searching within a book using the API. 2 Here is an example of searching inside a book using the searching within a book using the API.
3 3
4 http://ia700401.us.archive.org/fulltext/inside.php?item_id=designevaluation25clin&doc=designevaluation25clin&path=/28/items/designevaluation25clin&q=%22library%20science%22&callback=reply 4 This API is based on changing datanode hosts (i.e. an archive.org item's files live on data hosts which can change). To find the data node host of an item, go to archive.org/metadata/{identifier} and change the prefix `ia800204` to the value of `d1` or `d2` accordingly. The `path` variable in the url may also have to change to `dir` value within the `metadata`:
5
6 https://ia800204.us.archive.org/fulltext/inside.php?item_id=designevaluation25clin&doc=designevaluation25clin&path=/27/items/designevaluation25clin&q=%22library%20science%22
5 7
6 Information you need to search inside a book, with an example from the above search: 8 Information you need to search inside a book, with an example from the above search:
7 9
8 * hostname: ia700401.us.archive.org (host where the book is stored) 10 * hostname: ia800204.us.archive.org (host where the book is stored)
9 * item_id: designevaluation25clin (archive.org item ID) 11 * item_id: designevaluation25clin (archive.org item ID)
10 * doc: designevaluation25clin (most times this is the same as the item_id) 12 * doc: designevaluation25clin (most times this is the same as the item_id)
11 * path: /28/items/designevaluation25clin (path of the book on this host) 13 * path: /27/items/designevaluation25clin (path of the book on this host)
12 * q: "library science" (phrase to search for) 12 * q: "library science" (phrase to search for)
... ...
52 Hyphenation means words can break across lines and across pages. 52 Hyphenation means words can break across lines and across pages.