get https://api.chartmogul.com/v1/metrics/arpa
Retrieves the Average Revenue Per Account (ARPA), for the specified time period.
Examples
curl -X GET "https://api.chartmogul.com/v1/metrics/arpa" \
-u YOUR_API_KEY: \
-d start-date=2023-07-01 \
-d end-date=2023-08-31 \
-d interval=month \
-d geo=US \
-d plans=Silver%20Monthly
ChartMogul::Metrics.arpa(
start_date: "2023-07-01",
end_date: "2023-08-31",
interval: "month",
geo: "US",
plans: "Silver Monthly",
)
ChartMogul.Metrics.arpa(config, {
"start-date": "2023-07-01",
"end-date": "2023-08-31",
interval: "month",
geo: "US",
plans: "Silver Monthly",
});
ChartMogul\Metrics::arpa([
"start-date" => "2023-07-01",
"end-date" => "2023-08-31",
"interval" => "month",
"geo" => "US",
"plans" => "Silver Monthly"
]);
api.MetricsRetrieveARPA(&cm.MetricsFilter{
StartDate: "2023-07-01",
EndDate: "2023-08-31",
Interval: "month",
Geo: "US",
Plans: "Silver Monthly",
})
chartmogul.Metrics.arpa(
config,
start_date="2023-07-01",
end_date="2023-08-31",
interval="month",
geo="US",
plans="Silver Monthly",
)
Result Format
{
"entries": [
{
"date": "2023-07-31",
"arpa": 84767,
"percentage-change": 0.0
},
{
"date": "2023-08-31",
"arpa": 91121,
"percentage-change": 7.5
}
],
"summary": {
"current": 98307,
"previous": 86929,
"percentage-change": 13.09
}
}
#<ChartMogul::Metrics::ARPAs:0x007fa4ec591148
@entries=[
#<ChartMogul::Metrics::ARPA:0x007fa4ec590ef0
@date=2023-07-31,
@arpa=84767,
@percentage_change=0.0
>,
#<ChartMogul::Metrics::ARPA:0x007fa4ec590ab8
@date=2023-08-31,
@arpa=91121,
@percentage_change=7.5
>
],
@summary=#<ChartMogul::Summary:0x007fa4ec578ff8
@current=98307,
@previous=86929,
@percentage_change=13.09
>
>
{
entries: [
{
date: "2023-07-31",
arpa: 84767,
"percentage-change": 0.0
},
{
date: "2023-08-31",
arpa: 91121,
"percentage-change": 7.5
}
],
summary: {
current: 98307,
previous: 86929,
"percentage-change": 13.09
}
}
ChartMogul\Metrics\ARPAs::__set_state(array(
"entries" => Doctrine\Common\Collections\ArrayCollection::__set_state(array(
"elements" => array(
0 => ChartMogul\Metrics\ARPA::__set_state(array(
"date" => "2023-07-31",
"arpa" => 84767,
"percentage_change" => 0.0
)),
1 => ChartMogul\Metrics\ARPA::__set_state(array(
"date" => "2023-08-31",
"arpa" => 91121,
"percentage_change" => 7.5
))
)
)),
"summary" => ChartMogul\Summary::__set_state(array(
"current" => 98307,
"previous" => 86929,
"percentage_change" => 13.09
)),
));
(*chartmogul.ARPAResult)(0xc0420b2f00)({
Entries: ([]*chartmogul.ARPAMetrics) (len=2) {
(*chartmogul.ARPAMetrics)(0xc0421d60a0)({
Date: (string) (len=10) "2023-07-31",
ARPA: (float64) 84767,
PercentageChange: (float64) 0
}),
(*chartmogul.ARPAMetrics)(0xc0421d6100)({
Date: (string) (len=10) "2023-08-31",
ARPA: (float64) 91121,
PercentageChange: (float64) 7.5
})
},
Summary: (*chartmogul.Summary)(0xc0421d6140)({
Current: (float64) 98307,
Previous: (float64) 86929,
PercentageChange: (float64) 13.09
})
})
Metrics(
entries=[
<Metrics{
arpa=84767.0,
percentage_change=0.0,
date=datetime.date(2023, 7, 31)
}>,
<Metrics{
arpa=91121.0,
percentage_change=7.5,
date=datetime.date(2023, 8, 31)
}>
],
summary=<Summary{
current=98307.0,
percentage_change=13.09,
previous=86929.0
}>
)
In the response, the entries
key contains an object for each interval, with the following data:
date
- The date of the end of the intervalarpa
- The ARPA as at the end of the period. This is in your account's selected currency, and is an integer number of cents. Divide it by 100 to obtain the actual value.percentage-change
- The percentage change between the current ARPA and ARPA from the previous time interval. Will be set to0.0
if this is the first entry in the response.
The summary
key contains the current ARPA value, the value 30 days ago, and the percentage change between these two measures.