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.
Authorization: YOUR_REST_KEY
Please note the difference as passing your key via GET parameters won't work. e.g.,
Incorrect
https://api2.isbndb.com/book/9780134093413?Authorization=YOUR_REST_KEY
Correct
GET /book/9780134093413 HTTP/1.1
Host: api2.isbndb.com
User-Agent: insomnia/5.12.4
Authorization: YOUR_REST_KEY
Accept: */*
Error Messages
If the key reaches the request limit the response will be
Status code: 404 Not found
Response: {"errorMessage": "Not Found"}
Status code: 429 Too Many Requests
Response : { "message": "Limit Exceeded" }
If you need further information on HTTP Headers please see our API Code Examples
ISBNDB API has a default limit of 1 request per second. across all endpoints.
If you are a PREMIUM subscriber you are entitled to 3 requests per second limit. To access this benefit use the following [ Base URL: api.premium.isbndb.com ]
Please note that the above is only available for PREMIUM subscribers. Attempting to use your API key if you are in a different subscription plan will result in access being denied.
If you are a PRO subscriber you are entitled to 5 requests per second limit. To access this benefit use the following [ Base URL: api.pro.isbndb.com ]
Please note that the above is only available for PRO subscribers. Attempting to use your API key if you are in a different subscription plan will result in access being denied.
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.
$url = 'https://api2.isbndb.com/book/9780134093413'; $restKey = 'YOUR_REST_KEY'; "Content-Type: application/json", "Authorization: " . $restKey ); echo $response;
$url = "https://api2.isbndb.com/author/{$author}"; $restKey = 'YOUR_REST_KEY'; "Content-Type: application/json", "Authorization: " . $restKey ); echo $response;
using System; using System.IO; using System.Net; namespace ConsoleApp1 { public class Program { public static void Main(string[] args) { const string WEBSERVICE_URL = "https://api2.isbndb.com/book/9781934759486"; try { var webRequest = WebRequest.Create(WEBSERVICE_URL); if (webRequest != null) { webRequest.Method = "GET"; webRequest.ContentType = "application/json"; webRequest.Headers["Authorization"] = "YOUR_REST_KEY"; //Get the response WebResponse wr = webRequest.GetResponseAsync().Result; Stream receiveStream = wr.GetResponseStream(); string content = reader.ReadToEnd(); Console.Write(content); } } catch (Exception ex) { Console.WriteLine(ex.ToString()); } } } }
import requests as req h = {'Authorization': 'YOUR_REST_KEY'} resp = req.get("https://api2.isbndb.com/book/9781934759486", headers=h) print(resp.json())
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.ProtocolException; import java.net.URL; public class JavaGetRequest { try { con.setRequestProperty("Content-Type", "application/json"); con.setRequestProperty("Authorization": "YOUR_REST_KEY"); con.setRequestMethod("GET"); StringBuilder content; String line; content = new StringBuilder(); while ((line = in.readLine()) != null) { content.append(line); } } } finally { con.disconnect(); } } }
let headers = { "Content-Type": 'application/json', "Authorization": 'YOUR_REST_KEY' } fetch('https://api2.isbndb.com/book/9781934759486', {headers: headers}) .then(response => { return response.json(); }) .then(json => { console.log(json) }) .catch(error => { console.error('Error:', error) });
Copyright © 2023. All rights reserved