Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.02 KB

Partner API.md

File metadata and controls

24 lines (19 loc) · 1.02 KB

Partner API

The Partner API (previously Read API) serves to get online-readable or borrowable books from OpenLibrary. Also returns data about the work itself.

For more usage examples of this API, see MiscellaneousExamples.


To make a request to the Partner API, use the OpenLibraryClient

OpenLibraryClient client = new OpenLibraryClient();
OLPartnerData partnerData = await client.Partner.GetDataAsync(PartnerIdType.ISBN, "0123456789");

or the static OLPartnerLoader methods:

HttpClient httpClient = new HttpClient();
OLPartnerData partnerData = await OLPartnerLoader.GetDataAsync(PartnerIdType.OLID, "OL15601629M");

To request data for multiple books at once, use GetMultiDataAsync:

OLPartnerData partnerData = await client.GetMultiDataAsync("isbn:0123456789", "olid:OL15601629M");