The Sensor Tower API returns revenue values in different units depending on the endpoint. To ensure consistency and prevent confusion, SensorTowerR v0.2.3+ automatically standardizes revenue units across all functions.
| Function | Original API Unit | SensorTowerR Standard Column | Unit |
|----------|------------------|------------------------------|------|
| st_top_charts() | cents | revenue | base currency |
| st_sales_report() | base currency | total_revenue | base currency |
| st_top_publishers() | cents | revenue_usd | base currency |
revenue_absolute in centsrevenue - standardized to base currency unitsrevenue_absolute - preserved original cents valuetotal_revenue, iphone_revenue, ipad_revenue - all in base currency*_cents columns preserved for referencerevenue_absolute in centsrevenue_usd - converted to base currencyrevenue_absolute - preserved original cents valuerevenue from st_top_charts()total_revenue from st_sales_report()revenue_usd from st_top_publishers()
Check column attributes if unsure:
r
data <- st_top_charts(...)
attr(data$revenue, "unit") # Returns "base_currency"
For backward compatibility, original columns are preserved with their original units.
If you have existing code that manually converts cents to dollars:
# Old approach (no longer needed)
top_charts %>%
mutate(revenue_dollars = revenue_absolute / 100)
# New approach (use standardized column)
top_charts %>%
select(app_name, revenue) # revenue is already in base currency
"Base currency" refers to the standard monetary unit (dollars for USD, euros for EUR, etc.) as opposed to cents/pence/centimes. The actual currency type depends on your Sensor Tower account settings and the regions you're querying.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.