getEstimates: Retrieve Estimates by appFigures-assigned id.

View source: R/getEstimates.R

getEstimatesR Documentation

Retrieve Estimates by appFigures-assigned id.

Description

getEstimates requests product specific data from the appFigures API.

Usage

getEstimates(product_ids, countries = "US", category, end_date,
  start_date, curlHandle, verbose = FALSE, orgJSON = FALSE)

Arguments

product_ids

Numeric. A vector of appFigures-assigned product ids.

end_date

Character string or date object. Date of last estimate to be reported. Defaults to today. See Details.

start_date

Character string or date object. Date of first estimate to be reported. Defaults to 31 days prior to the end_date. 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 FALSE.

orgJSON

Logical. Should the JSON string be returned without being converted to R objects? Defaults to FALSE.

country

Character. One or more country iso abbreviations that filter which countries estimates data to include. Defaults to "US".

Details

Estimates represent a prediction for apps. Both downloads and revenue estimates are displayed.

Value

A data frame containing all publicly available fields.

See Also

Official documentation: http://docs.appfigures.com/.


appfigures/afapi documentation built on Nov. 13, 2022, 9:27 a.m.