Sample code for 30+ languages & platforms
Chilkat2-Python

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.

Chilkat Chilkat2-Python Downloads

Chilkat2-Python
import sys
import chilkat2

# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.

http = chilkat2.Http()

http.SetRequestHeader("Authorization","YOUR_REST_KEY")
jsonStr = http.QuickGetStr("https://api2.isbndb.com/book/9780134093413")
if (http.LastMethodSuccess == False):
    print(http.LastErrorText)
    sys.exit()

print("Response status code: " + str(http.LastStatus))
print("Response JSON:")
print(jsonStr)