{"_id":"5b720760c44b7600034b79c2","category":{"_id":"5b720760c44b7600034b79a9","__v":20,"pages":["5b720760c44b7600034b79c0","55ed079b0d968e2100de8339","5b720760c44b7600034b79c1","55ed0bb078319821005005cf","5b720760c44b7600034b79c2","5b720760c44b7600034b79c3","5b720760c44b7600034b79c4","5b720760c44b7600034b79c5","5b720760c44b7600034b79c6","5b720760c44b7600034b79c7","5b720760c44b7600034b79c8","5b720760c44b7600034b79c9","5b720760c44b7600034b79ca","5b720760c44b7600034b79cb","5b720760c44b7600034b79cc","5b720760c44b7600034b79cd","5b720760c44b7600034b79ce","5b720760c44b7600034b79d6","5b720760c44b7600034b79d7","5b720760c44b7600034b79df"],"project":"55e67aaa9cc7c62b00c4a1ea","version":"5b720760c44b7600034b7a08","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-09-02T04:30:21.948Z","from_sync":false,"order":5,"slug":"rest-api","title":"REST API"},"version":{"_id":"5b720760c44b7600034b7a08","project":"55e67aaa9cc7c62b00c4a1ea","__v":0,"forked_from":"5b1f2cbdfd653400031d8d9f","createdAt":"2015-09-02T04:27:23.612Z","releaseDate":"2015-09-02T04:27:23.612Z","categories":["5b720760c44b7600034b79a7","5b720760c44b7600034b79a8","5b720760c44b7600034b79a9","5b720760c44b7600034b79aa","5b720760c44b7600034b79ab","561c61b4ad272c0d00a892df","586c014c0abf1d0f000d04d4","58991d2ad207df0f0002186b","5b720760c44b7600034b79ac","5b720760c44b7600034b79ad","5af0fe494ca2730003cbc98a","5af0fe55ec80af0003804ca2"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"API V6","version_clean":"1.4.0","version":"1.4"},"githubsync":"","project":"55e67aaa9cc7c62b00c4a1ea","__v":7,"user":"55d2bd8e2463351700f67dd7","editedParams":true,"editedParams2":true,"parentDoc":null,"metadata":{"title":"","description":"","image":[]},"updates":["5c19b70ab4b3cf000d1f8c3c"],"next":{"pages":[],"description":""},"createdAt":"2015-09-07T04:09:29.110Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"get","results":{"codes":[{"name":"","code":"[\n  {\n    \"date\": \"2015-07-25T00:00:00.000Z\",\n    \"count\": 23543\n  },\n  {\n    \"date\": \"2015-07-26T00:00:00.000Z\",\n    \"count\": 66435\n  },\n  {\n    \"date\": \"2015-07-27T00:00:00.000Z\",\n    \"count\": 23542\n  },\n  {\n    \"date\": \"2015-07-28T00:00:00.000Z\",\n    \"count\": 35457\n  }\n]","language":"json","status":200},{"name":"","code":"{\n  \"error\":\"unauthorized\"\n}","language":"json","status":401},{"code":"{\n  \"error\":\"your api client does not have the correct roles\"\n}","language":"json","status":403}]},"settings":"","examples":{"codes":[{"name":"","code":"# Default parameters (Last Month)\ncurl -XGET -i -u :$API_KEY -H 'Accept: application/json' https://api.carnivalmobile.com/v6/stats/installs\n\n# With Parameters for To and From\ncurl -XGET -i -u :$API_KEY -H 'Accept: application/json' https://api.carnivalmobile.com/v6/stats/installs?from=2015-07-25&to=2015-07-28","language":"curl"}]},"apiSetting":null,"auth":"required","params":[{"_id":"55ed0df94fba582b0036a18c","ref":"","in":"query","required":false,"desc":"Beginning date for range","default":"1 month ago","type":"datetime","name":"from"},{"_id":"55ed0df94fba582b0036a18b","ref":"","in":"query","required":false,"desc":"End date for range","default":"Now","type":"string","name":"to"}],"url":"/stats/installs"},"isReference":true,"order":15,"body":"## Date Format\n\nThis API endpoint uses the [ISO 8601 DateTime format](https://en.wikipedia.org/wiki/ISO_8601). \n\nExamples:\n\n * `2015-07-25` (Just date)\n * `2015-07-25T00:00:00.000+00:00` (Date, Time, Offset)\n\nNote: When running the curl command with parameters, you should wrap the URL in double quotation mark.","excerpt":"Installs are returned as a feed of DateTime objects with counts next to them. These timestamps represent the beginning of an hour period, and the count is the number of installs that happened in that hour.","slug":"installs","type":"endpoint","title":"Stats / Installs"}

getStats / Installs

Installs are returned as a feed of DateTime objects with counts next to them. These timestamps represent the beginning of an hour period, and the count is the number of installs that happened in that hour.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

from:
datetime1 month ago
Beginning date for range
to:
stringNow
End date for range

Examples


Result Format


Documentation

## Date Format This API endpoint uses the [ISO 8601 DateTime format](https://en.wikipedia.org/wiki/ISO_8601). Examples: * `2015-07-25` (Just date) * `2015-07-25T00:00:00.000+00:00` (Date, Time, Offset) Note: When running the curl command with parameters, you should wrap the URL in double quotation mark.

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}