Barnes & Noble Sorting API

Our Barnes & Noble API allows you to sort results with sort_by, like with the Sort By menu of Barnes & Noble's search page. Without it, results come in Barnes & Noble's default order, Top Matches.


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

Head to the playground for a live and interactive demo.

API parameters

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

API examples

Results for  q: lego and  sort_by: price_high_to_low

price_low_to_high and price_high_to_low sort the results by their price.

Results for  q: lego and  sort_by: price_high_to_low

JSON Example

{
  ...
  "search_parameters": {
    "engine": "barnes_and_noble",
    "q": "lego",
    "sort_by": "price_high_to_low"
  },
  "search_information": {
    "total_results": 5470,
    "query_displayed": "lego"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "LEGO Technic Koenigsegg Sadair's Spear Megacar 42232",
      "link": "https://www.barnesandnoble.com/w/lego-technic-koenigsegg-sadairs-spear-megacar-42232-lego-systems-inc/1151222330?ean=0673419424196",
      "ean": "0673419424196",
      "work_id": "1151222330",
      "contributors": [
        {
          "name": "LEGO Systems Inc.",
          "role": "Author",
          "link": "https://www.barnesandnoble.com/authors/lego-systems-inc?contributorId=19440872"
        }
      ],
      "format": "Other Format",
      "publication_time_iso8601": "2026-09-01T04:00:00Z",
      "price": 449.99,
      "sales_rank": 110730,
      "thumbnail": "https://cdn.shopify.com/s/files/1/0674/5433/7265/files/0673419424196_p0.jpg?v=1787915780",
      "description": "Information is unavailable until within 30 days of launch date"
    },
    {
      "position": 2,
      "title": "LEGO Technic McLaren P1 42172",
      "link": "https://www.barnesandnoble.com/w/lego-technic-mclaren-p1-42172-lego-systems-inc/1146186676?ean=0673419391986",
      "ean": "0673419391986",
      "work_id": "1146186676",
      "contributors": [
        {
          "name": "LEGO Systems Inc.",
          "role": "Author",
          "link": "https://www.barnesandnoble.com/authors/lego-systems-inc?contributorId=17343136"
        }
      ],
      "format": "Other Format",
      "publication_time_iso8601": "2024-09-01T04:00:00Z",
      "price": 449.99,
      "sales_rank": 74126,
      "thumbnail": "https://cdn.shopify.com/s/files/1/0674/5433/7265/files/0673419391986_p0.jpg?v=1768975883",
      "description": "Drive your passion for McLaren with this immersive building set for adults. Enjoy a rewarding project assembling the features of this detail..."
    },
    {
      "position": 3,
      "title": "LEGO Technic Volvo EC500 Hybrid Excavator 42215",
      "link": "https://www.barnesandnoble.com/w/lego-technic-volvo-ec500-hybrid-excavator-42215-lego-systems-inc/1147873058?ean=0673419405607",
      "ean": "0673419405607",
      "work_id": "1147873058",
      "contributors": [
        {
          "name": "LEGO Systems Inc.",
          "role": "Author",
          "link": "https://www.barnesandnoble.com/authors/lego-systems-inc?contributorId=19440872"
        }
      ],
      "format": "Other Format",
      "publication_time_iso8601": "2025-08-01T04:00:00Z",
      "price": 429.99,
      "sales_rank": 178213,
      "thumbnail": "https://cdn.shopify.com/s/files/1/0674/5433/7265/files/0673419405607_p0.jpg?v=1768975847",
      "description": "Command heavy-duty construction power with the LEGO Technic Volvo EC500 Hybrid Excavator (42215), an advanced 2,359-piece model that deliver..."
    },
    ...
  ]
}

Results for  q: Agatha Christie and  sort_by: bestsellers

bestsellers sorts the results by their Barnes & Noble sales rank, in sales_rank: the lower, the better-selling.

Results for  q: Agatha Christie and  sort_by: bestsellers

JSON Example

{
  ...
  "search_parameters": {
    "engine": "barnes_and_noble",
    "q": "Agatha Christie",
    "sort_by": "bestsellers"
  },
  "search_information": {
    "total_results": 8253,
    "query_displayed": "Agatha Christie"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Murder at the Grand Alpine Hotel: The New Miss Marple Mystery",
      "link": "https://www.barnesandnoble.com/w/murder-at-the-grand-alpine-hotel-lucy-foley/1148769663?ean=9780063376694",
      "ean": "9780063376694",
      "work_id": "1148769663",
      "contributors": [
        {
          "name": "Lucy Foley",
          "role": "Author",
          "link": "https://www.barnesandnoble.com/authors/lucy-foley?contributorId=499981"
        },
        {
          "name": "Agatha Christie",
          "role": "Author",
          "link": "https://www.barnesandnoble.com/authors/agatha-christie?contributorId=170686"
        }
      ],
      "format": "Hardcover",
      "series": "Miss Marple Series",
      "publication_time_iso8601": "2026-09-22T04:00:00Z",
      "price": 27.0,
      "old_price": 30.0,
      "badges": [
        "$3 Off"
      ],
      "sales_rank": 382,
      "thumbnail": "https://cdn.shopify.com/s/files/1/0674/5433/7265/files/9780063376694_p0.jpg?v=1791323762",
      "description": "An instant New York Times bestseller!\"Lucy Foley channels the one-and-only Agatha Christie with precision and flair. I couldn't put it down!..."
    },
    {
      "position": 2,
      "title": "Murder at the Grand Alpine Hotel: The New Miss Marple Mystery (B&N Exclusive Edition)",
      "link": "https://www.barnesandnoble.com/w/murder-at-the-grand-alpine-hotel-lucy-foley/1148769663?ean=9780063578074",
      "ean": "9780063578074",
      "work_id": "1148769663",
      "contributors": [
        {
          "name": "Lucy Foley",
          "role": "Author",
          "link": "https://www.barnesandnoble.com/authors/lucy-foley?contributorId=499981"
        },
        {
          "name": "Agatha Christie",
          "role": "Author",
          "link": "https://www.barnesandnoble.com/authors/agatha-christie?contributorId=170686"
        }
      ],
      "format": "BN Exclusive",
      "edition": "B&N Exclusive Edition",
      "series": "Miss Marple Series",
      "publication_time_iso8601": "2026-09-22T04:00:00Z",
      "price": 27.0,
      "old_price": 30.0,
      "badges": [
        "B&N Exclusive"
      ],
      "sales_rank": 421,
      "thumbnail": "https://cdn.shopify.com/s/files/1/0674/5433/7265/files/9780063578074_p0.jpg?v=1772553623",
      "description": "This Barnes & Noble Exclusive Edition features a Q&A between Lucy Foley and the host of the popular All About Agatha podcast, Kemper Donovan..."
    },
    {
      "position": 3,
      "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": 499,
      "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..."
    },
    ...
  ]
}