def METHOD_NAME(self):
    """Return limit of request."""
    if self.max_request_per_day is None:
        preference = SitePreferences.load()
        return preference.default_max_request_api
    return self.max_request_per_day