Skip to main content

Pagination

To make it possible to explore the millions of records for resources like transactions and operations, Horizon paginates the data it returns for collection-based endpoints.

Each individual transaction, operation, ledger, etc. is returned as a record, and a group of records is called a collection. Records are returned as an array under the _embedded attribute.

To move between pages of a collection of records, use the links in the next and prev attributes nested under the top-level _links attribute.

  • ATTRIBUTEDATA TYPE

    DESCRIPTION

  • _linksarray

    Provides links for navigating to other pages.

    Show child attributes
    • _links.selfarray

      An href key with a link to the response itself as the value.

    • _links.nextarray

      An href key with a link to the next page for this endpoint as the value.

    • _links.prevarray

      An href key with a link to the next page for this endpoint as the value.

  • _embeddedarray

    An href key with a link to the next page for this endpoint as the value.

    Show child attributes
    • _embedded.recordsarray

      Returns an array of records.