Compete¶
-
class
compete.
Compete
(api_key)¶ Create an Compete service.
Variables: api_key (str) – The API key.
Metric¶
-
Site.
metric
(metric_id)¶ Return the resource corresponding to a single metric for the site.
-
Metric.
get
(latest=None, start_date=None, end_date=None)¶ Fetch the object’s data.
Variables: - latest (int) – Returns the latest N months or days. If omitted, it returns data for the most recent 13 months for a monthly metric. For daily metrics, it returns data for the most recent 30 days.
- start_date (str) – Return specific start date. If omitted, it returns data for the most recent 13 months for a monthly metric. For daily metrics, it returns data for the most recent 30 days.
- end_date (str) – Returns specific end date. If omitted, it returns data for the most recent 13 months for a monthly metric. For daily metrics, it returns data for the most recent 30 days.