Sample code for 30+ languages & platforms
JavaScript

ISBNdb API v2 Get Book Details

See more HTTP Misc Examples

Demonstrates how to send a GET request to the ISBNdb API v2 with Authorization header.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat v11.4.0 or greater.
JavaScript
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

var http = new CkHttp();

http.SetRequestHeader("Authorization","YOUR_REST_KEY");
var jsonStr = http.QuickGetStr("https://api2.isbndb.com/book/9780134093413");
if (http.LastMethodSuccess == false) {
    console.log(http.LastErrorText);
    return;
}

console.log("Response status code: " + http.LastStatus);
console.log("Response JSON:");
console.log(jsonStr);