CINXE.COM

ISBNdb API Documentation v2 | ISBNdb

<!DOCTYPE html> <html lang="en" dir="ltr" prefix="content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ og: http://ogp.me/ns# rdfs: http://www.w3.org/2000/01/rdf-schema# schema: http://schema.org/ sioc: http://rdfs.org/sioc/ns# sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core# xsd: http://www.w3.org/2001/XMLSchema# "> <head> <meta charset="utf-8" /> <meta name="google-site-verification" content="lPQHj8Kjjx_Y9gAtFqUrXx6-amKrOZ1kqhCKvSx-1ug" /> <meta name="description" content="Authentication 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&#039;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&#039;t work. e.g.," /> <link rel="canonical" href="http://isbndb.com/apidocs/v2" /> <meta name="Generator" content="Drupal 9 (https://www.drupal.org)" /> <meta name="MobileOptimized" content="width" /> <meta name="HandheldFriendly" content="true" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="icon" href="/themes/custom/multipurpose_business_theme/favicon.ico" type="image/vnd.microsoft.icon" /> <script src="/sites/default/files/google_tag/gtm/google_tag.script.js?sne4tm" defer></script> <title>ISBNdb API Documentation v2 | ISBNdb</title> <link rel="stylesheet" media="all" href="/core/assets/vendor/jquery.ui/themes/base/core.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/assets/vendor/jquery.ui/themes/base/controlgroup.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/assets/vendor/jquery.ui/themes/base/checkboxradio.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/assets/vendor/jquery.ui/themes/base/resizable.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/assets/vendor/jquery.ui/themes/base/button.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/assets/vendor/jquery.ui/themes/base/dialog.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/ajax-progress.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/align.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/autocomplete-loading.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/fieldgroup.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/container-inline.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/clearfix.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/details.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/hidden.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/item-list.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/js.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/nowrap.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/position-container.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/progress.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/reset-appearance.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/resize.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/sticky-header.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/system-status-counter.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/system-status-report-counters.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/system-status-report-general-info.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/tabledrag.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/tablesort.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/stable/css/system/components/tree-child.module.css?sniavf" /> <link rel="stylesheet" media="all" href="/modules/contrib/geshifilter/assets/css/geshifilter.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/assets/vendor/jquery.ui/themes/base/theme.css?sniavf" /> <link rel="stylesheet" media="all" href="/libraries/swagger-ui/dist/swagger-ui.css?sniavf" /> <link rel="stylesheet" media="all" href="/core/themes/classy/css/components/node.css?sniavf" /> <link rel="stylesheet" media="all" href="/themes/custom/multipurpose_business_theme/assets/build/css/components/navigation/menu.mobile.css?sniavf" /> <link rel="stylesheet" media="all" href="/themes/custom/multipurpose_business_theme/assets/build/css/components/block/block.isbndbsearchblock3.css?sniavf" /> <link rel="stylesheet" media="all" href="/themes/custom/multipurpose_business_theme/assets/build/css/components/block/block.isbndbsearchblock.css?sniavf" /> <link rel="stylesheet" media="all" href="/themes/custom/multipurpose_business_theme/assets/build/css/page/page.custom.apidocsv2.css?sniavf" /> <link rel="stylesheet" media="all" href="/themes/custom/multipurpose_business_theme/assets/build/css/bootstrap/bootstrap.critical.css?sniavf" /> <link rel="stylesheet" media="all" href="/themes/custom/multipurpose_business_theme/css/base.css?sniavf" /> <link rel="stylesheet" media="all" href="/themes/custom/multipurpose_business_theme/assets/build/css/theme/global.css?sniavf" /> <link rel="stylesheet" media="all" href="/themes/custom/multipurpose_business_theme/assets/build/css/bootstrap/bootstrap.forms.css?sniavf" /> <link rel="stylesheet" media="all" href="/themes/custom/multipurpose_business_theme/assets/build/css/bootstrap/bootstrap.nav.css?sniavf" /> <link rel="canonical" href="https://isbndb.com/apidocs/v2" /> <meta name="format-detection" content="telephone=no"> </head> <body class="custom-page--apidocsv2 custom-page--page-width-limit path-node page-node-type-page"> <a href="#main-content" class="visually-hidden focusable skip-link"> Skip to main content </a> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NNQGBJD" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <div class="dialog-off-canvas-main-canvas" data-off-canvas-main-canvas> <div class="mobile-menu pt-14 pb-12 px-9"> <div class="region region-mobile-menu"> <div id="block-isbndbsearchblock-2" class="block-block-isbndbsearchblock-2 block block-isbndb block-isbndb-menu-block block-isbn-search px-0 py-0 mb-14"> <div class="main-search block--isbndb_search px-md-10"> <form action="/search/books/" method="GET" class="isbndb_search_block"> <div class="input-group"> <input type="hidden" name="search_param" value="books" id="search_param"> <input id="search_query" type="text" class="search_query form-control" minlength="3" name="x" placeholder="Search ISBN or Title"> <span class="input-group-btn"> <button id="search-button" class="search-button btn btn-default" type="submit"><span class="glyphicon glyphicon-search"></span></button> </span> </div> </form> </div> </div> <nav role="navigation" aria-labelledby="block-mainnavigation-menu" id="block-mainnavigation" class="block-block-mainnavigation"> <div class="visually-hidden" id="block-mainnavigation-menu">Main navigation</div> <ul class="sm menu-base-theme mb-0 px-md-0 text-md-center" id="main-menu" class="menu nav navbar-nav"> <li class="me-4 me-lg-9" > <a href="/isbn-database" data-drupal-link-system-path="node/153">ISBN Database</a> </li> <li class="me-4 me-lg-9" > <a href="/customers" data-drupal-link-system-path="node/209">Customers</a> </li> <li class="me-4 me-lg-9" > <a href="/apidocs/v2" data-drupal-link-system-path="node/154" class="is-active">API Docs</a> </li> <li class="me-4 me-lg-9" > <a href="/blog">Blog</a> </li> <li class="me-4 me-lg-9" > <a href="/news" title="News" data-drupal-link-system-path="news">News</a> </li> <li class="me-4 me-lg-9" > <a href="/contact" data-drupal-link-system-path="contact">Contact</a> </li> <li > <a href="" class="search-icon">Search</a> </li> </ul> </nav> <nav role="navigation" aria-labelledby="block-useraccountmenu-menu" id="block-useraccountmenu" class="block-block-useraccountmenu"> <div class="visually-hidden" id="block-useraccountmenu-menu">User account menu</div> <ul class="list-unstyled text-end menu"> <li class="menu-item btn btn-transparent" > <a href="/user/login" link="user.logout btn btn-transparent _blank" item="btn btn-transparent" data-drupal-link-system-path="user/login">Log in</a> </li> <li class="menu-item register btn btn-primary" > <a href="/user/register" item="register btn btn-primary" data-drupal-link-system-path="user/register">Register</a> </li> </ul> </nav> </div> </div> <!-- Header and Navbar --> <header class="main-header"> <nav class="navbar navbar-default" role="navigation"> <div class="container"> <div class="row align-items-center"> <div class="navbar-header col-md-2"> <button type="button" class="navbar-toggle d-md-none">&nbsp;</button> <div class="region region-header"> <div id="block-multipurpose-business-theme-branding" class="block-block-multipurpose-business-theme-branding site-branding block block-system block-system-branding-block"> <div class="brand logo"> <a href="/" title="Home" rel="home" class="site-branding__logo"> <img src="/themes/custom/multipurpose_business_theme/logo.svg" alt="Home" /> </a> </div> </div> </div> </div> <!-- Navigation --> <div class="col-md-7 px-md-0 px-lg-8 d-none d-md-block"> <div class="region region-primary-menu"> <nav role="navigation" aria-labelledby="block-multipurpose-business-theme-main-menu-menu" id="block-multipurpose-business-theme-main-menu" class="block-block-multipurpose-business-theme-main-menu"> <div class="visually-hidden" id="block-multipurpose-business-theme-main-menu-menu">Main navigation</div> <ul class="sm menu-base-theme mb-0 px-md-0 text-md-center" id="main-menu" class="menu nav navbar-nav"> <li class="me-4 me-lg-9" > <a href="/isbn-database" data-drupal-link-system-path="node/153">ISBN Database</a> </li> <li class="me-4 me-lg-9" > <a href="/customers" data-drupal-link-system-path="node/209">Customers</a> </li> <li class="me-4 me-lg-9" > <a href="/apidocs/v2" data-drupal-link-system-path="node/154" class="is-active">API Docs</a> </li> <li class="me-4 me-lg-9" > <a href="/blog">Blog</a> </li> <li class="me-4 me-lg-9" > <a href="/news" title="News" data-drupal-link-system-path="news">News</a> </li> <li class="me-4 me-lg-9" > <a href="/contact" data-drupal-link-system-path="contact">Contact</a> </li> <li > <a href="" class="search-icon">Search</a> </li> </ul> </nav> <div id="block-isbndbsearchblock-3" class="block-block-isbndbsearchblock-3 block block-isbndb block-isbndb-menu-block block-isbn-search px-0 py-0 mb-14"> <div class="main-search block--isbndb_search px-md-10"> <form action="/search/books/" method="GET" class="isbndb_search_block"> <div class="input-group"> <input type="hidden" name="search_param" value="books" id="search_param"> <input id="search_query" type="text" class="search_query form-control" minlength="3" name="x" placeholder="Search ISBN or Title"> <span class="input-group-btn"> <button id="search-button" class="search-button btn btn-default" type="submit"><span class="glyphicon glyphicon-search"></span></button> </span> </div> </form> </div> <a href="#" class="close-search-panel">&nbsp;</a> </div> </div> </div> <!--End Navigation --> <div class="col-md-3 px-0 d-none d-md-block"> <div class="region region-user-menu"> <nav role="navigation" aria-labelledby="block-multipurpose-business-theme-account-menu-menu" id="block-multipurpose-business-theme-account-menu" class="block-block-multipurpose-business-theme-account-menu"> <div class="visually-hidden" id="block-multipurpose-business-theme-account-menu-menu">User account menu</div> <ul class="list-unstyled text-end menu"> <li class="menu-item btn btn-transparent" > <a href="/user/login" link="user.logout btn btn-transparent _blank" item="btn btn-transparent" data-drupal-link-system-path="user/login">Log in</a> </li> <li class="menu-item register btn btn-primary" > <a href="/user/register" item="register btn btn-primary" data-drupal-link-system-path="user/register">Register</a> </li> </ul> </nav> </div> </div> </div> </div> </nav> </header> <!--End Header & Navbar --> <div class="main-content"> <div id="feedback-link" class="hidden"> <a class="use-ajax" data-dialog-options="{&quot;title&quot;:&quot;Feedback &amp; Support&quot;,&quot;width&quot;:500}" data-dialog-type="modal" href="/contact">Feedback &amp; Support</a> </div> <!-- Banner --> <!-- End Banner --> <!--Highlighted--> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="region region-highlighted"> <div data-drupal-messages-fallback class="hidden"></div> </div> </div> </div> </div> <!--End Highlighted--> <!-- Page Title --> <div id="page-title" class="pt-12"> <div id="page-title-inner"> <!-- start: Container --> <div class="container"> <div class="region region-page-title"> <div id="block-multipurpose-business-theme-page-title" class="block-block-multipurpose-business-theme-page-title block block-core block-page-title-block"> <h1 class="h1">ISBNdb API Documentation v2</h1> </div> </div> </div> </div> </div> <!-- End Page Title --> <!-- layout --> <div id="wrapper"> <!-- start: Container --> <div class="main-content pb-16 pb-lg-17"> <div class="container"> <!--Content top--> <!--End Content top--> <!--start:content --> <div class="layout"> <!--- Start content --> <div class="content_layout px-0"> <div class="region region-content"> <div id="block-multipurpose-business-theme-content" class="block-block-multipurpose-business-theme-content block block-system block-system-main-block"> <article data-history-node-id="154" role="article" about="/apidocs/v2" typeof="schema:WebPage" class="node node--type-page node--view-mode-full"> <span property="schema:name" content="ISBNdb API Documentation v2" class="hidden"></span> <div class="node__content"> <div property="schema:text" class="field--name--body"><h2 class="mb-10">Authentication</h2> <p>Welcome to the ISBNdb API Documentation. Our REST API allows you to retrieve information about millions of books.</p> <p><strong>Authentication</strong><br /> In order to interact with the API you'll need to use an HTTP header on every request.</p> <p class="mb-14"><strong>Authorization: YOUR_REST_KEY</strong>.<br /> Please note the difference as passing your key via GET parameters won't work. e.g.,</p> <ul class="nav nav-tabs d-inline-flex mb-10" id="apiTabs" role="tablist"> <li class="nav-item" role="presentation"><button aria-controls="api-tabs-1" aria-selected="true" class="nav-link active" data-bs-target="#api-tabs-1" data-bs-toggle="tab" id="api-tab-1" role="tab" type="button">Correct</button></li> <li class="nav-item"><button aria-controls="api-tabs-2" aria-selected="false" class="nav-link" data-bs-target="#api-tabs-2" data-bs-toggle="tab" id="api-tab-2" role="tab" type="button">Incorrect</button></li> <li class="nav-item"><button aria-controls="api-tabs-2" aria-selected="false" class="nav-link" data-bs-target="#api-tabs-3" data-bs-toggle="tab" id="api-tab-3" role="tab" type="button">Error Messages</button></li> </ul> <div class="tab-content mb-6" id="apiTabsContent"> <div aria-labelledby="api-tab-1" class="tab-pane fade show active" id="api-tabs-1" role="tabpanel"> <p>GET /book/9780134093413 HTTP/1.1<br /> Host: api2.isbndb.com<br /> User-Agent: insomnia/5.12.4<br /> Authorization: YOUR_REST_KEY<br /> Accept: */*</p> </div> <div aria-labelledby="api-tab-2" class="tab-pane fade" id="api-tabs-2" role="tabpanel"> <p class="reverse py-4 px-8">https://api2.isbndb.com/book/9780134093413?Authorization=YOUR_REST_KEY</p> </div> <div aria-labelledby="api-tab-3" class="tab-pane fade" id="api-tabs-3" role="tabpanel"> <p>If the key reaches the request limit the response will be</p> <p><br /> Status code: 404 Not found<br /> Response: {"errorMessage": "Not Found"}</p> <p><br /> Status code: 429 Too Many Requests<br /> Response : { "message": "Limit Exceeded" }</p> </div> <p>If you need further information on HTTP Headers please see our API Code Examples</p> </div> <hr class="mt-6 mb-14" /> <p class="mb-10"><strong>ISBNDB API has a default limit of 1 request per second. across all endpoints.</strong></p> <p>If you are a <strong>PREMIUM</strong> subscriber you are entitled to <strong>3 requests per second limit</strong>. To access this benefit use the following [ Base URL: api.premium.isbndb.com ]</p> <p class="italic mb-10">Please note that the above is only available for <strong>PREMIUM</strong> subscribers. Attempting to use your API key if you are in a different subscription plan will result in access being denied.</p> <p>If you are a <strong>PRO</strong> subscriber you are entitled to <strong>5 requests per second limit</strong>. To access this benefit use the following [ Base URL: api.pro.isbndb.com ]</p> <p class="italic mb-10">Please note that the above is only available for <strong>PRO</strong> subscribers. Attempting to use your API key if you are in a different subscription plan will result in access being denied.</p> <hr class="mt-6 mb-14" /> <h2 class="mb-10">API Endpoints</h2> <p class="mb-8">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.</p> <p class="mb-14"><a class="btn btn-primary" href="#examples">View Examples</a></p> <p class="mb-10 fw-bold">ISBNdb API v2 <sup><span class="font-inter">2.0.0</span></sup></p> <p class="mb-10 fw-bold">[ Base URL: api2.isbndb.com ]<br /> <a href="/modules/isbndb_api_docs/swagger_v2.6.json" target="_blank">/modules/isbndb_api_docs/swagger_v2.6.json</a></p> <p class="mb-10"><strong>Definition of ISBNdb.com API v2.</strong></p> <p>If you are a <strong>PREMIUM</strong> subscriber you are entitled <strong>to 3 requests per second limit</strong>. To access this benefit use the following [ Base URL: api.premium.isbndb.com ]</p> <p class="italic mb-10">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.</p> <p>If you are a <strong>PRO</strong> subscriber you are entitled <strong>to 5 requests per second limit</strong>. To access this benefit use the following [ Base URL: api.pro.isbndb.com ]</p> <p class="italic mb-10">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.</p> <hr class="mt-6 mb-14" /></div> </div> </article> </div> <div id="block-isbndbapiv2block" class="block-block-isbndbapiv2block block block-isbndb-api-docs block-isbndb-api-api-v2-docs"> <div id="swagger-ui" class="swagger-ui-wrap" data-openapi-ui-url="/modules/isbndb_api_docs/swagger_v2.6.json"></div> <a name="examples" id="examples"></a> </div> <div id="block-apicodeexamples" class="block-block-apicodeexamples block block-block-content block-block-content05787e2a-ae13-4757-8541-bd167ab6e889"> <h2>API Code Examples</h2> <div class="field--name--body"><ul> <li> <h4>PHP books</h4> <div class="geshifilter"><pre class="php geshifilter-php" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'https://api2.isbndb.com/book/9780134093413'</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000088;">$restKey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'YOUR_REST_KEY'</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000088;">$headers</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0000ff;">&quot;Content-Type: application/json&quot;</span><span style="color: #339933;">,</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0000ff;">&quot;Authorization: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$restKey</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000088;">$rest</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/curl_init"><span style="color: #990000;">curl_init</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rest</span><span style="color: #339933;">,</span>CURLOPT_URL<span style="color: #339933;">,</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rest</span><span style="color: #339933;">,</span>CURLOPT_HTTPHEADER<span style="color: #339933;">,</span><span style="color: #000088;">$headers</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rest</span><span style="color: #339933;">,</span>CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/curl_exec"><span style="color: #990000;">curl_exec</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rest</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$response</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.php.net/print_r"><span style="color: #990000;">print_r</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$response</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.php.net/curl_close"><span style="color: #990000;">curl_close</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rest</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li></ol></pre></div> </li> <li> <h4>PHP author</h4> <div class="geshifilter"><pre class="php geshifilter-php" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000088;">$author</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/rawurlencode"><span style="color: #990000;">rawurlencode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'James Hadley Chase'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;https://api2.isbndb.com/author/<span style="color: #006699; font-weight: bold;">{$author}</span>&quot;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000088;">$restKey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'YOUR_REST_KEY'</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000088;">$headers</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0000ff;">&quot;Content-Type: application/json&quot;</span><span style="color: #339933;">,</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0000ff;">&quot;Authorization: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$restKey</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000088;">$rest</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/curl_init"><span style="color: #990000;">curl_init</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rest</span><span style="color: #339933;">,</span>CURLOPT_URL<span style="color: #339933;">,</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rest</span><span style="color: #339933;">,</span>CURLOPT_HTTPHEADER<span style="color: #339933;">,</span><span style="color: #000088;">$headers</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rest</span><span style="color: #339933;">,</span>CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/curl_exec"><span style="color: #990000;">curl_exec</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rest</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$response</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.php.net/print_r"><span style="color: #990000;">print_r</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$response</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.php.net/curl_close"><span style="color: #990000;">curl_close</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rest</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li></ol></pre></div> <ul> <li> <h4>.NET C# Book</h4> <div class="geshifilter"><pre class="csharp geshifilter-csharp" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.IO</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Net</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #0600FF; font-weight: bold;">namespace</span> ConsoleApp1 <span style="color: #008000;">&#123;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> Program <span style="color: #008000;">&#123;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> Main<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> args<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0600FF; font-weight: bold;">const</span> <span style="color: #6666cc; font-weight: bold;">string</span> WEBSERVICE_URL <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;https://api2.isbndb.com/book/9781934759486&quot;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0600FF; font-weight: bold;">try</span> <span style="color: #008000;">&#123;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0600FF; font-weight: bold;">var</span> webRequest <span style="color: #008000;">=</span> WebRequest<span style="color: #008000;">.</span><span style="color: #0000FF;">Create</span><span style="color: #008000;">&#40;</span>WEBSERVICE_URL<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>webRequest <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> webRequest<span style="color: #008000;">.</span><span style="color: #0000FF;">Method</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;GET&quot;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> webRequest<span style="color: #008000;">.</span><span style="color: #0000FF;">ContentType</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;application/json&quot;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> webRequest<span style="color: #008000;">.</span><span style="color: #0000FF;">Headers</span><span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;Authorization&quot;</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;YOUR_REST_KEY&quot;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #008080; font-style: italic;">//Get the response </span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> WebResponse wr <span style="color: #008000;">=</span> webRequest<span style="color: #008000;">.</span><span style="color: #0000FF;">GetResponseAsync</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Result</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Stream receiveStream <span style="color: #008000;">=</span> wr<span style="color: #008000;">.</span><span style="color: #0000FF;">GetResponseStream</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> StreamReader reader <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> StreamReader<span style="color: #008000;">&#40;</span>receiveStream<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #6666cc; font-weight: bold;">string</span> content <span style="color: #008000;">=</span> reader<span style="color: #008000;">.</span><span style="color: #0000FF;">ReadToEnd</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Console<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span>content<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #008000;">&#125;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #008000;">&#125;</span> <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#40;</span>Exception ex<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>ex<span style="color: #008000;">.</span><span style="color: #0000FF;">ToString</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #008000;">&#125;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #008000;">&#125;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #008000;">&#125;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #008000;">&#125;</span> </div></li></ol></pre></div> </li> <li> <h4>.NET C# Book Multiple</h4> <div class="geshifilter"><pre class="csharp geshifilter-csharp" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Text</span><span style="color: #008000;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #0600FF; font-weight: bold;">namespace</span> ConsoleApp1 <span style="color: #008000;">&#123;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> Program <span style="color: #008000;">&#123;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #0600FF; font-weight: bold;">async</span> Task Main<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> args<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0600FF; font-weight: bold;">try</span> <span style="color: #008000;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> HttpClient client <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> HttpClient<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> client<span style="color: #008000;">.</span><span style="color: #0000FF;">BaseAddress</span> <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Uri<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;https://api2.isbndb.com&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> client<span style="color: #008000;">.</span><span style="color: #0000FF;">DefaultRequestHeaders</span><span style="color: #008000;">.</span><span style="color: #0000FF;">TryAddWithoutValidation</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Authorization&quot;</span>, <span style="color: #666666;">&quot;&amp;lt;key&amp;gt;&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> HttpRequestMessage message <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> HttpRequestMessage<span style="color: #008000;">&#40;</span>HttpMethod<span style="color: #008000;">.</span><span style="color: #0000FF;">Post</span>, <span style="color: #666666;">&quot;/books&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> isbns <span style="color: #008000;">=</span> <span style="color: #008000;">&#123;</span><span style="color: #666666;">&quot;9781492666868&quot;</span>, <span style="color: #666666;">&quot;9781616555719&quot;</span><span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> message<span style="color: #008000;">.</span><span style="color: #0000FF;">Content</span> <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> StringContent<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;isbns=&quot;</span> <span style="color: #008000;">+</span> <span style="color: #6666cc; font-weight: bold;">String</span><span style="color: #008000;">.</span><span style="color: #0600FF; font-weight: bold;">Join</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">','</span>, isbns<span style="color: #008000;">&#41;</span>, Encoding<span style="color: #008000;">.</span><span style="color: #0000FF;">UTF8</span>, <span style="color: #666666;">&quot;application/json&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> HttpResponseMessage response <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">await</span> client<span style="color: #008000;">.</span><span style="color: #0000FF;">SendAsync</span><span style="color: #008000;">&#40;</span>message<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #0600FF; font-weight: bold;">var</span> jsonResponse <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">await</span> response<span style="color: #008000;">.</span><span style="color: #0000FF;">Content</span><span style="color: #008000;">.</span><span style="color: #0000FF;">ReadAsStringAsync</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Console<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span>jsonResponse<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #008000;">&#125;</span> <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#40;</span>Exception ex<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>ex<span style="color: #008000;">.</span><span style="color: #0000FF;">ToString</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #008000;">&#125;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #008000;">&#125;</span> </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #008000;">&#125;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #008000;">&#125;</span></div></li></ol></pre></div> </li> <li> <h4>Python Book</h4> <div class="geshifilter"><pre class="python geshifilter-python" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #ff7700;font-weight:bold;">import</span> requests <span style="color: #ff7700;font-weight:bold;">as</span> req</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">h <span style="color: #66cc66;">=</span> <span style="color: black;">&#123;</span><span style="color: #483d8b;">'Authorization'</span>: <span style="color: #483d8b;">'YOUR_REST_KEY'</span><span style="color: black;">&#125;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">resp <span style="color: #66cc66;">=</span> req.<span style="color: black;">get</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;https://api2.isbndb.com/book/9781934759486&quot;</span><span style="color: #66cc66;">,</span> headers<span style="color: #66cc66;">=</span>h<span style="color: black;">&#41;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #ff7700;font-weight:bold;">print</span><span style="color: black;">&#40;</span>resp.<span style="color: black;">json</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></div></li></ol></pre></div> </li> <li> <h4>Python Book Multiple</h4> <div class="geshifilter"><pre class="python geshifilter-python" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #ff7700;font-weight:bold;">import</span> requests</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">headers <span style="color: #66cc66;">=</span> <span style="color: black;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #483d8b;">'accept'</span>: <span style="color: #483d8b;">'application/json'</span><span style="color: #66cc66;">,</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #483d8b;">'Authorization'</span>: <span style="color: #483d8b;">'key'</span><span style="color: #66cc66;">,</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #483d8b;">'Content-Type'</span>: <span style="color: #483d8b;">'application/json'</span><span style="color: #66cc66;">,</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: black;">&#125;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">data <span style="color: #66cc66;">=</span> <span style="color: #483d8b;">'isbns='</span> + <span style="color: #483d8b;">','</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span><span style="color: black;">&#91;</span><span style="color: #483d8b;">'9781492666868'</span><span style="color: #66cc66;">,</span> <span style="color: #483d8b;">'9781616555719'</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">response <span style="color: #66cc66;">=</span> requests.<span style="color: black;">post</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'https://api2.isbndb.com/books'</span><span style="color: #66cc66;">,</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">headers<span style="color: #66cc66;">=</span>headers<span style="color: #66cc66;">,</span> data<span style="color: #66cc66;">=</span><span style="color: black;">&#40;</span>data<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #ff7700;font-weight:bold;">print</span><span style="color: black;">&#40;</span>response.<span style="color: black;">json</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></div></li></ol></pre></div> </li> <li> <h4>Java</h4> <div class="geshifilter"><pre class="java geshifilter-java" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.BufferedReader</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.IOException</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.InputStreamReader</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.net.HttpURLConnection</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.net.MalformedURLException</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.net.ProtocolException</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.net.URL</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> JavaGetRequest <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+httpurlconnection"><span style="color: #003399;">HttpURLConnection</span></a> con<span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+malformedurlexception"><span style="color: #003399;">MalformedURLException</span></a>,</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+protocolexception"><span style="color: #003399;">ProtocolException</span></a>, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+ioexception"><span style="color: #003399;">IOException</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a> url <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;https://api2.isbndb.com/book/9781934759486&quot;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+url"><span style="color: #003399;">URL</span></a> myurl <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+url"><span style="color: #003399;">URL</span></a><span style="color: #009900;">&#40;</span>url<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> con <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+httpurlconnection"><span style="color: #003399;">HttpURLConnection</span></a><span style="color: #009900;">&#41;</span> myurl.<span style="color: #006633;">openConnection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> con.<span style="color: #006633;">setRequestProperty</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Type&quot;</span>, <span style="color: #0000ff;">&quot;application/json&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> con.<span style="color: #006633;">setRequestProperty</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Authorization&quot;</span><span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;YOUR_REST_KEY&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> con.<span style="color: #006633;">setRequestMethod</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;GET&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> StringBuilder content<span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+bufferedreader"><span style="color: #003399;">BufferedReader</span></a> in <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+bufferedreader"><span style="color: #003399;">BufferedReader</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+inputstreamreader"><span style="color: #003399;">InputStreamReader</span></a><span style="color: #009900;">&#40;</span>con.<span style="color: #006633;">getInputStream</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a> line<span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> content <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> StringBuilder<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>line <span style="color: #339933;">=</span> in.<span style="color: #006633;">readLine</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> content.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span>line<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> content.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+system"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">lineSeparator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #009900;">&#125;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #009900;">&#125;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+system"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>content.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">finally</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> con.<span style="color: #006633;">disconnect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #009900;">&#125;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #009900;">&#125;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #009900;">&#125;</span></div></li></ol></pre></div> </li> <li> <h4>NodeJS Book</h4> <div class="geshifilter"><pre class="javascript geshifilter-javascript" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">let headers <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #3366CC;">&quot;Content-Type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'application/json'</span><span style="color: #339933;">,</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #3366CC;">&quot;Authorization&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'YOUR_REST_KEY'</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #009900;">&#125;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">fetch<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'https://api2.isbndb.com/book/9781934759486'</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>headers<span style="color: #339933;">:</span> headers<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> .<span style="color: #660066;">then</span><span style="color: #009900;">&#40;</span>response <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #000066; font-weight: bold;">return</span> response.<span style="color: #660066;">json</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> .<span style="color: #660066;">then</span><span style="color: #009900;">&#40;</span>json <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span>json<span style="color: #009900;">&#41;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> .<span style="color: #000066; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span>error <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> console.<span style="color: #660066;">error</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Error:'</span><span style="color: #339933;">,</span> error<span style="color: #009900;">&#41;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li></ol></pre></div> </li> <li> <h4>NodeJS Book Multiple</h4> <div class="geshifilter"><pre class="javascript geshifilter-javascript" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #000066; font-weight: bold;">const</span> axios <span style="color: #339933;">=</span> require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'axios'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066; font-weight: bold;">default</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">let headers <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #3366CC;">&quot;Content-Type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'application/json'</span><span style="color: #339933;">,</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #3366CC;">&quot;Authorization&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'key'</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #009900;">&#125;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #000066; font-weight: bold;">const</span> instance <span style="color: #339933;">=</span> axios.<span style="color: #660066;">create</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> baseURL<span style="color: #339933;">:</span> <span style="color: #3366CC;">'https://api2.isbndb.com'</span><span style="color: #339933;">,</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> headers<span style="color: #339933;">:</span> headers</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">&nbsp;</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">instance.<span style="color: #660066;">post</span><span style="color: #009900;">&#40;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #3366CC;">'/books'</span><span style="color: #339933;">,</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> <span style="color: #3366CC;">'isbns=0452284236,2266154117,2842281500'</span><span style="color: #339933;">,</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">then</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>response<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span>response.<span style="color: #660066;">data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">.<span style="color: #000066; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>error<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"> console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span>error<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li></ol></pre></div> </li> </ul> </li> </ul> </div> </div> </div> </div> </div> <!--End Content --> </div> <!--Start Content Bottom--> <!--End Content Bottom--> </div> </div> <!-- End layout --> <!-- topwidget Widget --> <!--End topwidget Widget --> <!-- Portfolio Widget --> <!--End Portfolio Widget --> <!-- Start Skills --> <!--End skills --> <!--showcase--> <!--End showcase--> <!-- Start pricetable --> <!--End pricetable --> <!--- Start testimonials --> <!---End testimonials --> <!-- Start features --> <!--End features --> <!-- Start bottom --> </div> <!--End Bottom --> <!-- start: Footer --> <div class="footer footerwidget widget-group bg-black pt-14 pb-8 pt-sm-16 px-sm-8 pb-sm-10 pb-md-0 px-md-0"> <div class="container"> <div class="row"> <div class="col-12 col-sm-3 footer-logo mb-14 order-1"> <a href="/" title="Home" rel="home" class="footer-logo-link" aria-label="Go to Home"> <img alt="Footer logo" src="/themes/custom/multipurpose_business_theme/assets/build/img/global/footer-logo.svg"/> </a> </div> <!-- Start Footer First Region --> <div class="col-12 col-sm-3 footer-menu-left order-1"> <div class="region region-footer-first"> <nav role="navigation" aria-labelledby="block-footermenu-menu" id="block-footermenu" class="block-block-footermenu"> <div class="visually-hidden" id="block-footermenu-menu">Footer menu</div> <ul class="list-unstyled mb-14 mb-sm-15 menu"> <li class="menu-item" > <a href="/isbn-database" data-drupal-link-system-path="node/153">ISBN Database</a> </li> <li class="menu-item" > <a href="/book-data-importer" data-drupal-link-system-path="node/211">Shopify App</a> </li> <li class="menu-item menu-item--active-trail" > <a href="/apidocs/v2" data-drupal-link-system-path="node/154" class="is-active">ISBNdb API Docs</a> </li> <li class="menu-item" > <a href="/faq" data-drupal-link-system-path="node/22">FAQ</a> </li> <li class="menu-item" > <a href="/isbndb/books/request" data-drupal-link-system-path="isbndb/books/request">Report ISBN</a> </li> <li class="menu-item" > <a href="/contact" data-drupal-link-system-path="contact">Contact</a> </li> </ul> </nav> </div> </div> <!-- End Footer First Region --> <!-- Start Footer Second Region --> <div class="col-12 col-sm-4 col-md-3 footer-menu-right order-1"> <div class="region region-footer-second"> <nav role="navigation" aria-labelledby="block-footermenu2-menu" id="block-footermenu2" class="block-block-footermenu2"> <div class="visually-hidden" id="block-footermenu2-menu">Footer menu 2</div> <ul class="list-unstyled mb-14 mb-sm-15 menu"> <li class="menu-item" > <a href="/blog/what-is-book-metadata/">What Is Book Metadata</a> </li> <li class="menu-item" > <a href="/blog/book-metadata/">Book Metadata Guide</a> </li> <li class="menu-item" > <a href="/blog/book-databases/">Book Databases Guide</a> </li> <li class="menu-item" > <a href="/blog/book-api/">Book APIs 2024</a> </li> <li class="menu-item" > <a href="/blog/isbn-lookup/">ISBN Lookup</a> </li> </ul> </nav> </div> </div> <!-- End Footer Second Region --> <!-- Start Footer third Region --> <div class="col-12 col-sm-2 col-md-3 order-1"> <div class="region region-footer-third"> <nav role="navigation" aria-labelledby="block-footersocial-menu" id="block-footersocial" class="block-block-footersocial"> <div class="visually-hidden" id="block-footersocial-menu">Footer social</div> <ul class="menu list-unstyled mb-14 d-flex justify-content-start justify-content-sm-end"> <li class="menu-item fb-icon" > <a href="https://www.facebook.com/ISBNdbcom" rel="nofollow" target="_blank">Facebook</a> </li> <li class="menu-item tw-icon" > <a href="https://twitter.com/ISBNdb_com" rel="nofollow" target="_blank">Twitter</a> </li> <li class="menu-item ln-icon" > <a href="https://www.linkedin.com/company/isbndb/" rel="nofollow" target="_blank">Linkedin</a> </li> </ul> </nav> </div> </div> <!-- End Footer Third Region --> <div class="col-12 col-sm-6 order-1 order-sm-2"> <div class="region region-footer-menu"> <nav role="navigation" aria-labelledby="block-footersmall-menu" id="block-footersmall" class="block-block-footersmall"> <div class="visually-hidden" id="block-footersmall-menu">Footer small</div> <ul class="list-unstyled mb-12 mb-md-0 d-flex justify-content-between justify-content-sm-end menu"> <li class="menu-item" > <a href="/terms-and-conditions" data-drupal-link-system-path="node/36">Terms and Conditions</a> </li> <li class="menu-item" > <a href="/privacy-policy" data-drupal-link-system-path="node/32">Privacy Policy</a> </li> </ul> </nav> </div> </div> <!-- Start Copyright Block --> <div class="copyright col-12 col-sm-6 order-1"> <!-- Copyright --> <p class="fs-6 lh-lg mb-0 text-center text-sm-start">Copyright 漏 2024. All rights reserved</p> <!-- End Copyright --> <!-- Credit link --> <!-- End Credit link --> </div> <!-- End Copyright Block --> </div> </div> </div> <!--End Footer --> <!-- Google map --> <!-- End Google map --> </div> <script type="application/json" data-drupal-selector="drupal-settings-json">{"path":{"baseUrl":"\/","scriptPath":null,"pathPrefix":"","currentPath":"node\/154","currentPathIsAdmin":false,"isFront":false,"currentLanguage":"en"},"pluralDelimiter":"\u0003","suppressDeprecationErrors":true,"ajaxPageState":{"libraries":"classy\/node,core\/drupal.dialog.ajax,geshifilter\/geshifilter,isbndb\/isbndb,multipurpose_business_theme\/block.id.isbndbsearchblock-2,multipurpose_business_theme\/block.id.isbndbsearchblock-3,multipurpose_business_theme\/bootstrap,multipurpose_business_theme\/global-components,multipurpose_business_theme\/node.page,multipurpose_business_theme\/owl,multipurpose_business_theme\/page.custom.apidocsv2,openapi_ui_swagger\/swagger_ui_integration,system\/base","theme":"multipurpose_business_theme","theme_token":null},"ajaxTrustedUrl":[],"user":{"uid":0,"permissionsHash":"83b452e86d0495149fd6f714f049cfb9b7eb7aafc451a7181da4ed5eddffb23b"}}</script> <script src="/core/assets/vendor/jquery/jquery.min.js?v=3.6.3"></script> <script src="/core/misc/polyfills/nodelist.foreach.js?v=9.5.9"></script> <script src="/core/misc/polyfills/element.matches.js?v=9.5.9"></script> <script src="/core/misc/polyfills/object.assign.js?v=9.5.9"></script> <script src="/core/assets/vendor/css-escape/css.escape.js?v=1.5.1"></script> <script src="/core/assets/vendor/es6-promise/es6-promise.auto.min.js?v=4.2.8"></script> <script src="/core/assets/vendor/once/once.min.js?v=1.0.1"></script> <script src="/core/assets/vendor/jquery-once/jquery.once.min.js?v=2.2.3"></script> <script src="/core/misc/drupalSettingsLoader.js?v=9.5.9"></script> <script src="/core/misc/drupal.js?v=9.5.9"></script> <script src="/core/misc/drupal.init.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/version-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/data-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/disable-selection-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/form-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/jquery-patch-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/scroll-parent-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/unique-id-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/focusable-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/ie-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/keycode-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/plugin-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/safe-active-element-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/safe-blur-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/widget-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/widgets/controlgroup-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/form-reset-mixin-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/labels-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/widgets/mouse-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/widgets/checkboxradio-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/widgets/draggable-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/widgets/resizable-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/widgets/button-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/jquery.ui/ui/widgets/dialog-min.js?v=9.5.9"></script> <script src="/core/assets/vendor/tabbable/index.umd.min.js?v=5.3.3"></script> <script src="/modules/isbndb/js/infinite_scroll.js?sniavf"></script> <script src="/modules/isbndb/js/isbndb.js?sniavf"></script> <script src="/core/misc/progress.js?v=9.5.9"></script> <script src="/core/misc/jquery.once.bc.js?v=9.5.9"></script> <script src="/core/assets/vendor/loadjs/loadjs.min.js?v=4.2.0"></script> <script src="/core/modules/responsive_image/js/responsive_image.ajax.js?v=9.5.9"></script> <script src="/core/misc/ajax.js?v=9.5.9"></script> <script src="/core/themes/stable/js/ajax.js?v=9.5.9"></script> <script src="//cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script> <script src="//cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> <script src="/themes/custom/multipurpose_business_theme/assets/build/js/components/navigation/menu.mobile.js?sniavf"></script> <script src="/themes/custom/multipurpose_business_theme/assets/build/js/global.js?sniavf"></script> <script src="/libraries/swagger-ui/dist/swagger-ui-bundle.js?sniavf"></script> <script src="/libraries/swagger-ui/dist/swagger-ui-standalone-preset.js?sniavf"></script> <script src="/modules/contrib/openapi_ui_swagger/js/swagger.js?sniavf"></script> <script src="/core/misc/debounce.js?v=9.5.9"></script> <script src="/core/misc/displace.js?v=9.5.9"></script> <script src="/core/misc/jquery.tabbable.shim.js?v=9.5.9"></script> <script src="/core/misc/position.js?v=9.5.9"></script> <script src="/core/misc/dialog/dialog.js?v=9.5.9"></script> <script src="/core/misc/dialog/dialog.position.js?v=9.5.9"></script> <script src="/core/misc/dialog/dialog.jquery-ui.js?v=9.5.9"></script> <script src="/core/misc/dialog/dialog.ajax.js?v=9.5.9"></script> <script src="/themes/custom/multipurpose_business_theme/assets/build/js/page/page.custom.apidocsv2.js?sniavf"></script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10