st_categories: List Available Sensor Tower Categories

View source: R/st_categories.R

st_categoriesR Documentation

List Available Sensor Tower Categories

Description

Returns a tibble of app categories recognized by the Sensor Tower API, mapping category IDs to category names for different platforms (iOS/Android). Useful for finding valid inputs for the 'category' parameter in other functions.

Usage

st_categories(platform = NULL)

Arguments

platform

Optional character string. Filter results for a specific platform ("ios" or "android"). If NULL (default), returns categories for both platforms.

Value

A tibble with columns 'platform' (character, "ios" or "android"), 'category_id' (character, e.g., "6014"), and 'category_name' (character, e.g., "Games").

Examples

# Get all categories
all_cats <- st_categories()
head(all_cats)

# Get only iOS categories
ios_cats <- st_categories(platform = "ios")
head(ios_cats)

# Find game categories on iOS
ios_games <- subset(st_categories("ios"), grepl("Game", category_name))
head(ios_games)

sensortowerR documentation built on March 18, 2026, 5:07 p.m.