<!--
{
  "availability" : [
    "Apple Ads Platform API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Apple-Ads-Platform-API",
  "identifier" : "/documentation/Apple-Ads-Platform-API/QueryPaginationResult",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple Ads Platform API"
    ],
    "preciseIdentifier" : "data:apple-ads-platform-api:QueryPaginationResult"
  },
  "title" : "QueryPaginationResult"
}
-->

# QueryPaginationResult

Pagination metadata returned in query responses, including page size, offset, and optional total count.

```
object QueryPaginationResult
```

## Discussion

The `QueryPaginationResult` object is returned in the `pagination` field of query responses. It echoes the `pageSize` and `offset` from the request and provides `totalCount` when requested. To calculate the total number of pages, use `totalCount` with `pageSize`.

### Example

```json
{
  "pageSize": 20,
  "offset": 0,
  "totalCount": 137
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)