---
title: "GET /accounts/{account_id}/reports/{key}/data"
method: GET
path: "/accounts/{account_id}/reports/{key}/data"
tags: ["reports"]
---

# GET /accounts/{account_id}/reports/{key}/data

`GET /accounts/{account_id}/reports/{key}/data`

## Request

- Base URL: `https://preview.api.upcontent.com`
- URL: `https://preview.api.upcontent.com/accounts/{account_id}/reports/{key}/data`
- Auth: OAuth 2
  - Authorization code: `https://accounts.upcontent.com/authorize`
  - Token URL: `https://accounts.upcontent.com/token` scopes: `upcontent.read`, `accounts.read`

WIP Preview: Fetch reporting data

## Query parameters

- `collections` string[]
- `collection_mode` 'include' | 'exclude'
- `timespan` string, required
- `start` string
- `end` string
- `age` number
- `user_agents` string[]
- `user_agent_mode` 'include' | 'exclude'
- `referrers` string[]
- `referrer_mode` 'include' | 'exclude'

## Response `200`

No error

- object[]: Tabular data with unique format per report

## Other responses

- `401`: Not authenticated
- `403`: Forbidden
- `404`: Not found
- `500`: Server error

---

[API](https://skmtc.dev/upcontent/apis/upcontent-platform-api.md) - [All operations](https://skmtc.dev/upcontent/apis/upcontent-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upcontent/apis/upcontent-platform-api/revisions/2f89c14d62a9?raw)
