GET
/
v1
/
metrics
/
limits
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": {
      "max_days": 123
    },
    "day": {
      "max_days": 123
    },
    "week": {
      "max_days": 123
    },
    "month": {
      "max_days": 123
    },
    "year": {
      "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.