st_parse_web_url: Parse Sensor Tower Web URL to API Parameters

View source: R/st_url_parser.R

st_parse_web_urlR Documentation

Parse Sensor Tower Web URL to API Parameters

Description

Converts a Sensor Tower web interface URL into API-compatible parameters that can be used with sensortowerR functions. This is helpful when you want to replicate a web query in R.

Usage

st_parse_web_url(url, verbose = TRUE)

Arguments

url

Character string. A Sensor Tower web interface URL

verbose

Logical. Whether to print parameter mapping details. Defaults to TRUE.

Value

List of API-compatible parameters suitable for use with st_top_charts() and other sensortowerR functions

Examples

## Not run: 
# Parse a web URL
url <- "https://app.sensortower.com/market-analysis/top-apps?os=unified&measure=DAU"
params <- st_parse_web_url(url)

# Use the parameters in an API call
data <- do.call(st_top_charts, params)

# Or modify parameters before using
params$limit <- 50
data <- do.call(st_top_charts, params)

## End(Not run)

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