On 08-Nov-2010, at 8:55 AM, Jonathan Rochkind wrote: > I guess the Google Books-compatible API is not actually sufficient to give me > what I'd like to see to power my apps, then? I'd really like to see the API > tell me which formats are avaialable, and ideally give me direct URL to those > APIs. So I guess I'm requesting a non-GBS-compatible API?
The default response of OL Books API is compatible with Google Books API and we would like it keep it that way. But, the OL Books API has extensions like jscmd=data which gives a lot more detailed data and we do have control on what to provide there. > I'm not sure if it's completely predictable exactly what formats will be > available if "preview=true", that's the root of the problem right? Whether > you've got a data feed or a per-item api call. > > Could you leave the somewhat-confusing GBS-compatible lines, but add other > lines too? Like "formats:pdf,epub,daisy,html" (tell you what formats are > available, you still need to figure out the URLs yourself), or > "pdf:http://something", "html:http://etc". Or perhaps using IANA/MIME > content types instead of those nicknames. > > Or is there another API in addition to the GBS-compatible one, and maybe > that's the one I'm really asking for this info to be added to? (or maybe it's > even already there?) > > I admit I have trouble keeping what OL APIs are available and what they do > straight, perhaps I've gotten confused. How about supporting it like this? $ curl "http://openlibrary.org/api/books?bibkeys=OL7252744M" { "title": "The adventures of Tom Sawyer", "url": "http://openlibrary.org/books/OL7252744M/The_adventures_of_Tom_Sawyer", ... "ebooks": [ { "preview_url": "http://www.archive.org/details/adventuresofto1949twai", "read_url": "http://www.archive.org/stream/adventuresofto1949twai", "download_formats": { "pdf": "http://www.archive.org/download/adventuresofto1949twai/adventuresofto1949twai.pdf", "epub": "http://www.archive.org/download/adventuresofto1949twai/adventuresofto1949twai.epub", "daisy": "http://www.archive.org/download/adventuresofto1949twai/adventuresofto1949twai.daisy", "txt": "http://www.archive.org/download/adventuresofto1949twai/adventuresofto1949twai.txt", "djvu": "http://www.archive.org/download/adventuresofto1949twai/adventuresofto1949twai.djvu" } } ], ... } Anand _______________________________________________ Ol-tech mailing list [email protected] http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech To unsubscribe from this mailing list, send email to [email protected]
