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

# QueryResponse

Response wrapper for paginated query results.

```
object QueryResponse
```

## Discussion

The `QueryResponse` object is the generic paginated response envelope returned by query endpoints.

This wrapper is the base type for all query responses. Specific entity query responses extend this pattern with a typed `result` array.

### Example

```json
{
  "result": [
    {
      "id": "123456789",
      "name": "AwayFinder Campaign"
    }
  ],
  "pagination": {
    "totalCount": 1,
    "offset": 0,
    "pageSize": 20
  }
}
```

## Topics

### Dictionaries

[`object QueryResponse.Result`](/documentation/Apple-Ads-Platform-API/QueryResponse/Result-data.dictionary)

The untyped placeholder item shape for the base `QueryResponse` envelope’s `result` array.

---

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)