---
title: "Get Prediction Volume"
method: GET
path: "/api/v1/examples/prediction-volume"
---

# Get Prediction Volume

`GET /api/v1/examples/prediction-volume`

Return prediction counts bucketed by time.

- granularity=daily  → toStartOfDay   (for month/week views)
- granularity=hourly → toStartOfHour  (for day view)
- granularity=minute → toStartOfMinute (for hour view)

## Query parameters

- `user` string, required
- `program` string, required
- `starting_on` string, required
- `ending_before` string, required
- `granularity` 'daily' | 'hourly' | 'minute'

## Headers

- `authorization` string, nullable

## Cookies

- `modaic_session` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/modaic-ai/apis/modaic-api.md) · [All operations](https://skmtc.net/modaic-ai/apis/modaic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modaic-ai/modaic-api/versions/43a90513ac59/schema)
