Our Barnes & Noble API allows you to scrape products from Barnes & Noble search results, with their prices, contributors, formats, and whether they're out of stock.

Sort results with sort_by, filter them like on Barnes & Noble's search page, and get the next pages with next_page_token. See Filtering, Sorting, Spell Check, and Pagination for examples.


The API endpoint is https://serpapi.com/search?engine=barnes_and_noble

Head to the playground for a live and interactive demo.

API parameters

Search query

q

Required

Parameter defines the search query. You can use anything that you would use in a regular Barnes & Noble search: a title, an author, a keyword, or an ISBN (e.g., agatha christie, The Hobbit, or 9780441013593).

Sorting

sort_by

Optional

Parameter defines the sorting order of the results. It defaults to Top Matches, the most relevant results first.

Available options:
bestsellers - Bestsellers
newest - Newest to Oldest
oldest - Oldest to Newest
price_low_to_high - Price: Low to High
price_high_to_low - Price: High to Low
title - Title: A to Z

Advanced filters

availability

Optional

Parameter defines the availability of the products to show. Both options can be separated by || (e.g., in_stock||pre_order).

Available options:
in_stock - In stock, ships in 1-2 days
pre_order - Pre-Order

department

Optional

Parameter defines the department of the products to show (e.g., Books, eBooks & NOOK, Kids' Books, or Toys & Games). The departments of a search are in filters of the JSON response. Multiple departments can be separated by ||.

subject

Optional

Parameter defines the subject of the products to show (e.g., Mystery & Thrillers or Science Fiction & Fantasy). The subjects of a search are in filters of the JSON response. Multiple subjects can be separated by ||.

product_format

Optional

Parameter defines the format of the products to show (e.g., Hardcover, Paperback, eBook, Audiobook, or Vinyl LP). The formats of a search are in filters of the JSON response. Multiple formats can be separated by || (e.g., Hardcover||Paperback).

age

Optional

Parameter defines the age range of the products to show (e.g., 0 - 2 Years, 6 - 8 Years, or Teens). The age ranges of a search are in filters of the JSON response. Multiple age ranges can be separated by ||.

price

Optional

Parameter defines the price range of the products to show (e.g., Under $5, $10 - $15, or Over $50). The price ranges of a search are in filters of the JSON response. Multiple price ranges can be separated by ||.

rating

Optional

Parameter defines the minimum average rating of the products to show, from 1 to 5 stars (e.g., 4 for products rated 4 stars and up).

language

Optional

Parameter defines the language of the products to show (e.g., English or Spanish). The languages of a search are in filters of the JSON response. Multiple languages can be separated by ||.

color

Optional

Parameter defines the color of the products to show (e.g., Black), for products like journals and accessories. The colors of a search are in filters of the JSON response. Multiple colors can be separated by ||.

Pagination

next_page_token

Optional

Parameter defines the next page token. It is used for retrieving the next page of results. Leave it unset for the first page. Barnes & Noble returns up to 24 results per page.

The next page token can be found in the SerpApi JSON response: serpapi_pagination -> next_page_token. It must be used with the same search parameters as the search it comes from.

The token expires 15 minutes after the search it comes from. Expired tokens still work up to page 5, more slowly, as Barnes & Noble's pages are loaded again from the first one. For later pages, redo the search from its first page with no_cache set to true.

SerpApi parameters

engine

Required

Set parameter to barnes_and_noble to use the Barnes & Noble API engine.

no_cache

Optional

Parameter will force SerpApi to fetch the Barnes & Noble results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.

async

Optional

Parameter defines the way you want to submit your search to SerpApi. It can be set to false (default) to open an HTTP connection and keep it open until you got your search results, or true to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together. async should not be used on accounts with Ludicrous Speed enabled.

zero_trace

Optional

Enterprise only. Parameter enables ZeroTrace mode. It can be set to false (default) or true. Enable this mode to skip storing search parameters, search files, and search metadata on our servers. This may make debugging more difficult.

api_key

Required

Parameter defines the SerpApi private key to use.

output

Optional

Parameter defines the format of the result. It can be set to json (default) to get a structured JSON of the results, html to get the raw HTML retrieved, or md to get a Markdown-formatted version optimized for LLMs and AI agents.

json_restrictor

Optional

Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

API results

JSON results

JSON output includes structured data for Organic Results, Filters, and Pagination.

A search status is accessible through search_metadata.status. It flows this way: Processing -> Success || Error. If a search has failed, error will contain an error message. search_metadata.id is the search ID inside SerpApi.

HTML results

This API does not have a full HTML response, only text. search_metadata.prettify_html_file contains a link to the prettified version of the result. It is displayed in the playground.

Markdown results

Markdown output is optimized for LLMs and AI agents. It provides a curated view of the JSON results in a token-efficient format using tables, markdown links, and YAML frontmatter.

To access, use the output=md parameter, the /search.md endpoint, or request header Accept: text/markdown.

API examples

Result for  q: Agatha Christie

ean is the EAN of the product, which is the ISBN-13 of books. contributors are its authors, illustrators, narrators, artists, and the other people Barnes & Noble credits, with their role and the link to their page.

Result for  q: Agatha Christie

JSON Example

{
  "search_metadata": {
    "id": "6ad1305911d871767118c25d",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/bJPYxxBcnzuYhIUXDj1mLhBCsnDHVcb4YQPEL2Zq6uU/6ad1305911d871767118c25d.json",
    "markdown_endpoint": "https://serpapi.com/searches/bJPYxxBcnzuYhIUXDj1mLhBCsnDHVcb4YQPEL2Zq6uU/6ad1305911d871767118c25d.md",
    "created_at": "2026-10-15 19:58:17 UTC",
    "processed_at": "2026-10-15 19:58:17 UTC",
    "barnes_and_noble_url": "https://www.barnesandnoble.com/search?q=Agatha+Christie",
    "raw_html_file": "https://serpapi.com/searches/bJPYxxBcnzuYhIUXDj1mLhBCsnDHVcb4YQPEL2Zq6uU/6ad1305911d871767118c25d.html",
    "prettify_html_file": "https://serpapi.com/searches/bJPYxxBcnzuYhIUXDj1mLhBCsnDHVcb4YQPEL2Zq6uU/6ad1305911d871767118c25d.prettify",
    "total_time_taken": 0.94
  },
  "search_parameters": {
    "engine": "barnes_and_noble",
    "q": "Agatha Christie"
  },
  "search_information": {
    "total_results": 8304,
    "query_displayed": "Agatha Christie"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Murder on the Orient Express: A Hercule Poirot Mystery: The Official Authorized Edition",
      "link": "https://www.barnesandnoble.com/w/murder-on-the-orient-express-agatha-christie/1144769025?ean=9780063375833",
      "ean": "9780063375833",
      "work_id": "1144769025",
      "contributors": [
        {
          "name": "Agatha Christie",
          "role": "Author",
          "link": "https://www.barnesandnoble.com/authors/agatha-christie?contributorId=170686"
        }
      ],
      "format": "Paperback",
      "series": "Hercule Poirot Series",
      "series_number": 9,
      "publication_time_iso8601": "2024-06-25T04:00:00Z",
      "price": 18.99,
      "sales_rank": 1764,
      "thumbnail": "https://cdn.shopify.com/s/files/1/0674/5433/7265/files/9780063375833_p0.jpg?v=1765252247",
      "description": "Belgian detective Hercule Poirot is trapped on a train with a killer in his most famous mystery from Agatha Christie. Now with a beautiful n..."
    },
    {
      "position": 2,
      "title": "And Then There Were None",
      "link": "https://www.barnesandnoble.com/w/and-then-there-were-none-agatha-christie/1116705457?ean=9780062073471",
      "ean": "9780062073471",
      "work_id": "1116705457",
      "contributors": [
        {
          "name": "Agatha Christie",
          "role": "Author",
          "link": "https://www.barnesandnoble.com/authors/agatha-christie?contributorId=170686"
        }
      ],
      "format": "Paperback",
      "publication_time_iso8601": "2011-01-18T05:00:00Z",
      "price": 18.99,
      "sales_rank": 548,
      "thumbnail": "https://cdn.shopify.com/s/files/1/0674/5433/7265/files/9780062073471_p0.jpg?v=1765241260",
      "description": "First, there were ten—a curious assortment of strangers summoned as weekend guests to a private island off the coast of Devon. Their host, a..."
    },
    ...
  ],
  "filters": [
    {
      "title": "Availability",
      "parameter": "availability",
      "options": [
        {
          "text": "In stock, ships in 1-2 days",
          "value": "in_stock",
          "count": 8189,
          "serpapi_link": "https://serpapi.com/search.json?availability=in_stock&engine=barnes_and_noble&q=Agatha+Christie"
        },
        {
          "text": "Pre-Order",
          "value": "pre_order",
          "count": 111,
          "serpapi_link": "https://serpapi.com/search.json?availability=pre_order&engine=barnes_and_noble&q=Agatha+Christie"
        }
      ]
    },
    {
      "title": "Department",
      "parameter": "department",
      "options": [
        {
          "text": "Books",
          "value": "Books",
          "count": 7067,
          "serpapi_link": "https://serpapi.com/search.json?department=Books&engine=barnes_and_noble&q=Agatha+Christie"
        },
        {
          "text": "eBooks & NOOK",
          "value": "eBooks & NOOK",
          "count": 3554,
          "serpapi_link": "https://serpapi.com/search.json?department=eBooks+%26+NOOK&engine=barnes_and_noble&q=Agatha+Christie"
        },
        ...
      ]
    },
    ...
  ],
  "serpapi_pagination": {
    "current": 1,
    "next_page_token": "pt6Rq3icNY7NcpswAISnfZ2OM5Id03qmOWCEHREkgiP-dPHwVyGwAgFcfs59lCY993HapymdaW-73-zu7LfvTSzy969NW9dffr_7nE_WmofWHAe7Ky7r0TasmYf0v5fkaMmo9AZemj1X3jp6AsBBBNiBJTkjPZn3lYPcwUFWSctqwnKQ6cafuDqU_AlruNQhVwWLPXGbwOyBhac9q7KvyeF0zQ-UME_AxKSDHcA4Be7shNk1qOCLf_Dk8mWIguyy_JgW3aQbCnlw2mcG1ghLt6TUtxThrcPckRqDTNQOuMpXycb62xnpXE0EVYDM-kiRCZaNS36_b1Llz27oSqc0Nw7Dg8O8JWcCwk67myoRlb4lXqL1Ap5ArQP1GFdV2oT25dPK_qjwEctzQJyd-6PLu07Wz7-68_m-7vqVaGW2-gfvcLmXkcKQHKPRDviFKrOnSMzUgAv3ZpuRgSMBCBJTNEdbIvFN_9ByvfUsHzWhPxFDts_aeLumMNzptafhFbwWQj0i4ZK3Lo_btPj5cqeLuC_iD0bRyq6X-R_IP6eB",
    "next": "https://serpapi.com/search.json?engine=barnes_and_noble&next_page_token=pt6Rq3icNY7NcpswAISnfZ2OM5Id03qmOWCEHREkgiP-dPHwVyGwAgFcfs59lCY993HapymdaW-73-zu7LfvTSzy969NW9dffr_7nE_WmofWHAe7Ky7r0TasmYf0v5fkaMmo9AZemj1X3jp6AsBBBNiBJTkjPZn3lYPcwUFWSctqwnKQ6cafuDqU_AlruNQhVwWLPXGbwOyBhac9q7KvyeF0zQ-UME_AxKSDHcA4Be7shNk1qOCLf_Dk8mWIguyy_JgW3aQbCnlw2mcG1ghLt6TUtxThrcPckRqDTNQOuMpXycb62xnpXE0EVYDM-kiRCZaNS36_b1Llz27oSqc0Nw7Dg8O8JWcCwk67myoRlb4lXqL1Ap5ArQP1GFdV2oT25dPK_qjwEctzQJyd-6PLu07Wz7-68_m-7vqVaGW2-gfvcLmXkcKQHKPRDviFKrOnSMzUgAv3ZpuRgSMBCBJTNEdbIvFN_9ByvfUsHzWhPxFDts_aeLumMNzptafhFbwWQj0i4ZK3Lo_btPj5cqeLuC_iD0bRyq6X-R_IP6eB&q=Agatha+Christie"
  }
}

Result for  sort_by: bestsellers and product_format: Hardcover||Paperback

sort_by sorts the results like the Sort By menu of Barnes & Noble. Filters take the values of the filters of Barnes & Noble (e.g., Hardcover for product_format), and several values separated by || show the products matching any of them, like checking several boxes of a filter. Products on sale have their original price in old_price, and their promotions in badges.

Result for  sort_by: bestsellers and product_format: Hardcover||Paperback

JSON Example

{
  ...
  "search_parameters": {
    "engine": "barnes_and_noble",
    "q": "dune",
    "sort_by": "bestsellers",
    "product_format": "Hardcover||Paperback"
  },
  "search_information": {
    "total_results": 9164,
    "query_displayed": "dune"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Kneel Before Me (Deluxe Edition)",
      "link": "https://www.barnesandnoble.com/w/kneel-before-me-lindsay-straube/1149718013?ean=9781464247743",
      "ean": "9781464247743",
      "work_id": "1149718013",
      "contributors": [
        {
          "name": "Lindsay Straube",
          "role": "Author",
          "link": "https://www.barnesandnoble.com/authors/lindsay-straube?contributorId=16956752"
        }
      ],
      "format": "Paperback",
      "series": "Split or Swallow",
      "series_number": 3,
      "publication_time_iso8601": "2026-09-29T04:00:00Z",
      "price": 16.99,
      "old_price": 19.99,
      "badges": [
        "Bestseller"
      ],
      "sales_rank": 294,
      "thumbnail": "https://cdn.shopify.com/s/files/1/0674/5433/7265/files/9781464247743_p0.jpg?v=1788964480",
      "description": "*The limited deluxe edition will have gorgeous designed edges*From New York Times bestseller Lindsay Straube comes a prequel in the sexy, bi..."
    },
    {
      "position": 2,
      "title": "The Five People You Meet in Heaven",
      "link": "https://www.barnesandnoble.com/w/the-five-people-you-meet-in-heaven-mitch-albom/1100317405?ean=9781401308582",
      "ean": "9781401308582",
      "work_id": "1100317405",
      "contributors": [
        {
          "name": "Mitch Albom",
          "role": "Author",
          "link": "https://www.barnesandnoble.com/authors/mitch-albom?contributorId=158189"
        }
      ],
      "format": "Paperback",
      "edition": "Reprint",
      "publication_time_iso8601": "2006-03-01T05:00:00Z",
      "price": 15.99,
      "old_price": 18.99,
      "badges": [
        "$3 Off"
      ],
      "sales_rank": 438,
      "thumbnail": "https://cdn.shopify.com/s/files/1/0674/5433/7265/files/9781401308582_p0.jpg?v=1772212550",
      "description": "From the bestselling author of Tuesdays with Morrie, a war veteran encounters the true significance of life after death in this touching mod..."
    },
    ...
  ]
}

JSON structure overview

{
  ...
  "search_information": {
    "total_results": "Integer - Number of products matching the search",
    "query_displayed": "String - Query of the search",
    "spelling_fix": "String - Query Barnes & Noble searched instead of a misspelled one",
    "organic_results_state": "String - Organic results state (e.g. Showing results for fixed spelling, Fully empty)"
  },
  "organic_results": [
    {
      "position": "Integer - Position of the product in the results of the page",
      "title": "String - Title of the product",
      "link": "String - Link to the product on Barnes & Noble",
      "ean": "String - EAN of the product, which is the ISBN-13 of books",
      "work_id": "String - Barnes & Noble work ID of the product, which its other formats share",
      "contributors": [
        {
          "name": "String - Name of the contributor",
          "role": "String - Role of the contributor (e.g. Author, Illustrator, Narrated by, Artist)",
          "link": "String - Link to the page of the contributor on Barnes & Noble"
        },
        ...
      ],
      "format": "String - Format of the product (e.g. Paperback, Hardcover, eBook, Audiobook, Vinyl LP)",
      "edition": "String - Edition of the product (e.g. Reprint, Special Edition)",
      "series": "String - Series of the product",
      "series_number": "Integer - Number of the product in its series",
      "publication_time_iso8601": "String - Publication time of the product, in ISO 8601 UTC format: midnight Eastern Time on its publication date (e.g. 2024-06-25T04:00:00Z)",
      "price": "Float - Price of the product, in USD",
      "old_price": "Float - Price of the product before discounts, in USD",
      "badges": "Array[String] - Badges of the product (e.g. Bestseller, $3 Off, B&N Exclusive, Signed Edition)",
      "out_of_stock": "Boolean - True if the product is out of stock",
      "sales_rank": "Integer - Barnes & Noble sales rank of the product. The lower, the better-selling",
      "thumbnail": "String - Link to the image of the product",
      "description": "String - Description of the product"
    }
  ],
  "filters": [
    {
      "title": "String - Name of the filter (e.g. Availability, Department, Format)",
      "parameter": "String - API parameter of the filter (e.g. availability, department, product_format)",
      "options": [
        {
          "text": "String - Name of the option",
          "value": "String - Value of the option, for the parameter of the filter",
          "count": "Integer - Number of products with this option",
          "serpapi_link": "String - SerpApi link to the search with this option"
        },
        ...
      ]
    },
    ...
  ],
  "serpapi_pagination": {
    "current": "Integer - Current page",
    "next_page_token": "String - Token of the next page, for the next_page_token parameter",
    "next": "String - SerpApi link to the next page"
  }
}