# Per-machine hourly part counts for TV scoreboard sparkline (/docs/api-reference/monitoring/MonitoringController_getPartsByHour)

`GET /api/factories/{factoryId}/monitoring/parts-by-hour`

Base URL: https://api.xentr.ai

Authentication: bearer token (`Authorization: Bearer <token>`).

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `factoryId` | path | yes | string | Factory ID (slug) |
| `from` | query | yes | string | Shift start (ISO 8601) |
| `to` | query | yes | string | Shift end (ISO 8601) |

## Responses

### 200: Per-machine hourly parts