Files
openrouter-python-sdk-retry…/docs/operations/period.mdx
T
github-actions[bot]GitHubspeakeasybotspeakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
d81cd563db chore: 🐝 Update SDK - Generate (spec change merged) 0.11.7 (#402)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
2026-07-07 21:50:31 +00:00

24 lines
735 B
Plaintext

---
title: "Period"
---
Time grain of each row. `day` (default) returns the per-UTC-day series; `week` buckets by ISO week start; `month` buckets by month start. With `category` or `language_type` only `week` (default) and `month` are available — `day` is rejected with a 400 because those datasets are aggregated weekly. For those sampled datasets `period=month` buckets each week by its week-start month, so totals are approximate at month boundaries.
## Example Usage
```python
from openrouter.operations import Period
# Open enum: unrecognized values are captured as UnrecognizedStr
value: Period = "day"
```
## Values
This is an open enum. Unrecognized values will not fail type checks.
- `"day"`
- `"week"`
- `"month"`