Get the interval limits for the metrics endpoint.
Scopes: metrics:read
metrics:read
Python
from polar_sdk import Polar with Polar( access_token="<YOUR_BEARER_TOKEN_HERE>", ) as polar: res = polar.metrics.limits() # Handle response print(res)
{ "min_date": "2023-12-25", "intervals": { "hour": { "min_days": 123, "max_days": 123 }, "day": { "min_days": 123, "max_days": 123 }, "week": { "min_days": 123, "max_days": 123 }, "month": { "min_days": 123, "max_days": 123 }, "year": { "min_days": 123, "max_days": 123 } } }
You can generate an Organization Access Token from your organization's settings.
Successful Response
Date limits to get metrics.
Minimum date to get metrics.
Limits for each interval.
Show child attributes
Was this page helpful?