Skip to main content
Endpoints that take a cursor return results one page at a time. Each response includes a next_cursor. Send it back as cursor to get the next page.

Paging through results

  1. Search as usual. limit sets the page size:
The response contains the first page, the total number of matching bonds, and the cursor for the next page:
  1. Send the same request again with cursor added:
  1. Repeat until next_cursor is null.
Only cursor and limit may change between pages. If a filter or sort changes, the cursor is rejected. Cursors don’t expire, but an API update can occasionally invalidate them.

Order

Results are ordered by sort, then by the fields that identify each result, such as its ISIN. Each page starts right after the last result of the previous page, so no result is skipped or repeated.
  • Results with no value for a sort field come last, whether it sorts ascending or descending.
  • A muni_search by issuer_name lists the bonds of the closest matching issuers first. Issuers are matched on the first page, and later pages reuse that match.
Pages read live data, which changes during the day. A result added or updated while you page only shows up if it sorts after your current page. To download everything, leave out sort: results are then ordered only by the fields that identify them, which never change, so no result can move between pages.

Total

total is the number of results matching the filters. It is counted on the first page, and later pages repeat it. A limit of 0 returns only total, with next_cursor set to null.

Errors

An unusable cursor returns 422 Unprocessable Entity. The error points to /cursor (or /offset), and its detail gives the cause:

Moving from offset

offset is deprecated and will be removed on April 2, 2027. It gets slower the further you page, because each request skips every result before it. A cursor starts right after the previous page, so later pages are no slower than the first. Responses to offset requests carry Deprecation, Sunset (the removal date) and Link (this page) headers. They also include a next_cursor, so you can switch midway: send it as cursor and leave out offset from then on.