Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

HN Search API: Why 1,000 Results Can Stand for 29,152 Matches

A reported HN search query returned 1,000 stories while reporting 29,152 matches. Here’s what the count means, why pagination can truncate results, and how to investigate further.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A large nbHits value does not mean the HN search API has returned every matching story. In a query reported on September 20, 2026, the API said there were 29,152 matches but returned 1,000 hits on one page. The distinction is between the number of records matching a query and the number the endpoint makes accessible through pagination.

What the 29,152 figure actually means

In the reported query, the request targeted /api/v1/search_by_date with tags=story, the lower bound created_at_i>1756070000, and hitsPerPage=1000. The response reported nbHits=29152, returned 1,000 hits, and showed nbPages=1.Listwright’s account of the query dates it to September 20, 2026; 29,152 is a result for that particular query and date, not a permanent count of HN stories or a current total.

As an Amazon Associate I earn from qualifying purchases.

The returned 1,000 rows amount to about 3.4% of the reported matches (1,000 divided by 29,152). That arithmetic describes the example only. It does not establish which 1,000 stories were returned or that the API selected a representative sample.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why the count and returned rows can differ

Search systems can count matches in an index while limiting how many matching records ordinary pagination exposes. Algolia’s support explanation of the pagination limit illustrates this with 1,500 matches, 10 hits per page, and 100 pages: the reported total can exceed the default 1,000 results accessible through pagination. Algolia describes the ceiling this way: “The maximum number of hits accessible through pagination is set through the paginationLimitedTo parameter and limits the number of search results (hits).”

#1 Best Overall
Sale

Two separate limits matter. Algolia documents a maximum of 1,000 hits per page, and its default paginationLimitedTo setting separately limits the total results accessible through pagination to 1,000. Raising the page size cannot by itself raise the overall pagination ceiling.Algolia’s per-page limit documentation covers the first limit; its pagination explanation covers the second.

How to tell when a response is incomplete

  • Compare nbHits with the number of hits actually returned and with the page count. A response showing many matches but only one page of 1,000 rows is not evidence that all matches were delivered.
  • Check the response’s effective request values. In the reported HN example, asking for 2,000 rows resulted in a response that echoed hitsPerPage: 1000 and supplied 1,000 rows.
  • Do not treat the first page as a random sample. If a query is truncated, totals, averages, and rankings calculated from the returned subset can be biased by which records are included.

Options for retrieving more records

If you control the Algolia index

An index owner can raise paginationLimitedTo as high as 20,000, according to Algolia’s documentation. The higher limit can slow searches, and Algolia warns that ordering beyond the 1,000th hit is not guaranteed. This setting is an index-owner option, not something a consumer of a public endpoint can assume they are able to change.

If you query the public HN endpoint

The reported HN example proposes dividing the time range into smaller windows, retrieving each window, and deduplicating repeated records by objectID. For each next request, move the upper time bound to the oldest record returned by the preceding window. Keep the initial slice’s nbHits as the original query’s reported total: a narrow or empty final slice may report zero, which is not the total for all the slices.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Choose a bounded time window and issue the same search with its time bounds applied.
  2. Save the returned records and their objectID values. Use the oldest returned timestamp to set the next window’s upper bound.
  3. Merge records while removing duplicate IDs, since adjacent bounds may include the same boundary record.
  4. Continue until a slice adds no new IDs, then reconcile the collected IDs and time bounds with the original query before treating the set as complete.

This is a practical technique reported for the public endpoint, not an official guarantee that every query can be exhaustively recovered this way. Validate the boundaries and collected IDs for the query you care about. Algolia’s browse method can retrieve index records without pagination when an index owner needs bulk access, but Algolia says it should not be used for search; it is not a substitute available to an ordinary user of the public HN endpoint.Algolia’s browse documentation explains that distinction.

Rank #3
Sale
1,000 Books to Read Before You Die: A Life-Changing List
  • Book - 1, 000 books to read before you die: a life-changing list (1000 before you die)
  • Language: english
  • Binding: hardcover
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What is established about HN’s endpoint

The 29,152 count, 1,000 returned hits, and one-page response are reported for a specific query dated September 20, 2026; they are not a fresh, independently repeated reading of the public index. Algolia’s documentation establishes how its pagination limits work generally, but does not establish the public HN index’s current configuration. An archived example in the HN search repository also showed a response with 5,562 matches and a warning when a request went beyond 1,000 accessible hits, but that older example does not prove the current endpoint’s behavior.

Quick Recap

SaleBestseller No. 1
The Phantom Tollbooth
The Phantom Tollbooth
Great product!
$7.64
Bestseller No. 2
SaleBestseller No. 3
1,000 Books to Read Before You Die: A Life-Changing List
1,000 Books to Read Before You Die: A Life-Changing List
Book - 1, 000 books to read before you die: a life-changing list (1000 before you die); Language: english
$18.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.