getRankSnapshot | R Documentation |
getRankSnapshot
requests data for the top ranked apps for for a
specific hour from the appFigures web API.
getRankSnapshot(timestamp, category = 25204, subcategory = c("free", "paid", "topgrossing"), country = "US", count = 400, start = 1, tz = "utc", curlHandle, verbose = FALSE, orgJSON = FALSE, async = FALSE)
timestamp |
Either the string "current" (default) or a string with the format: "yyyy-MM-ddTHH". Only the last 24 hours are available. |
category |
Numeric. The numeric category of the requested snapshot.
Defaults to |
subcategory |
Character. The sub-category of the requested#' snapshot.
Defaults to |
country |
Chatacter. A country iso2 abbreviation. Defaults to 'US'. |
count |
Numeric. The total number of the ranks to return. See Details. |
start |
Smallest rank value the request returns. See Details. |
curlHandle |
Provide an instance of the CURLHandle-class from the RCurl package. The default will create a curl handle specific to the function call. |
verbose |
Logical. Should details of the web request print to the
console? Defaults to |
orgJSON |
Logical. Should the JSON string be returned without being
converted to R objects? Defaults to |
async |
Logical. Should the given time-stamps run concurrently? Defaults
to |
The use of the start
argument differs from the official API
documentation. A value such as start = 15
will return a list of
products starting with a rank value of 15. If start = 15
and
count = 10
, then products data for apps ranked from 15 - 24 will be
returned.
As of now, multiple time-stamp requests are the only input variable that can run concurrently.
A data frame containing product and category data for a cross section of top ranked apps.
Official documentation: http://docs.appfigures.com/api/reference/v2/ranks.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.