Skip to main content
GET
/
v1
/
metrics
/
limits
Python (SDK)
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
    }
  }
}

Authorizations

Authorization
string
header
required

You can generate an Organization Access Token from your organization's settings.

Response

200 - application/json

Successful Response

Date limits to get metrics.

min_date
string<date>
required

Minimum date to get metrics.

intervals
MetricsIntervalsLimits · object
required

Limits for each interval.