ISBNdb API Documentation

Welcome to the ISBNdb API Documentation. Our REST API allows you to retrieve information about millions of books.

Authentication

In order to interact with the API you'll need to use an HTTP header on every request.

X-API-Key: YOUR_REST_KEY

Please note the difference as passing your key via GET parameters won't work. e.g.,

  • Incorrect

    https://api.isbndb.com/book/9780134093413?X-API-KEY=YOUR_REST_KEY
            
  • Correct

    GET /book/9780134093413 HTTP/1.1
    Host: api.isbndb.com
    User-Agent: insomnia/5.12.4
    X-API-KEY: YOUR_REST_KEY
    Accept: */*
            

If you need further information on HTTP Headers please see our API Code Examples or visit Swagger API Keys for a more in-depth explanation

View Examples

API Endpoints

The following lists all our available API endpoints, you may use your assigned API_REST_KEY to live interact with it using each of the forms below.

API Code Examples

  • PHP

    1. <?php
    2.  
    3. $url = 'https://api.isbndb.com/book/9780134093413';
    4. $restKey = 'YOUR_REST_KEY';
    5.  
    6. $headers = array(
    7. "Content-Type: application/json",
    8. "X-API-Key: " . $restKey
    9. );
    10.  
    11. $rest = curl_init();
    12. curl_setopt($rest,CURLOPT_URL,$url);
    13. curl_setopt($rest,CURLOPT_HTTPHEADER,$headers);
    14. curl_setopt($rest,CURLOPT_RETURNTRANSFER, true);
    15.  
    16. $response = curl_exec($rest);
    17.  
    18. echo $response;
    19. print_r($response);
    20. curl_close($rest);
    21.  
    22. ?>
  • .NET C#

    1. using System;
    2. using System.IO;
    3. using System.Net;
    4.  
    5. namespace ConsoleApp1 {
    6. public class Program {
    7.  
    8. public static void Main(string[] args) {
    9.  
    10. const string WEBSERVICE_URL = "https://api.isbndb.com/book/9781934759486";
    11.  
    12. try {
    13. var webRequest = WebRequest.Create(WEBSERVICE_URL);
    14.  
    15. if (webRequest != null) {
    16. webRequest.Method = "GET";
    17. webRequest.ContentType = "application/json";
    18. webRequest.Headers["X-API-Key"] = "YOUR_REST_KEY";
    19.  
    20. //Get the response
    21. WebResponse wr = webRequest.GetResponseAsync().Result;
    22. Stream receiveStream = wr.GetResponseStream();
    23. StreamReader reader = new StreamReader(receiveStream);
    24.  
    25. string content = reader.ReadToEnd();
    26.  
    27. Console.Write(content);
    28. }
    29. } catch (Exception ex) {
    30. Console.WriteLine(ex.ToString());
    31. }
    32. }
    33. }
    34. }