query_corpus vocabulary v1
POST /v1/query (MCP: query_corpus) aggregates one dataset per call. time_range is required on windowed datasets and rejected on current-state ones (≤ 400 days); limit ≤ 1000; no continuation (a truncated result says to narrow). Filters are {field, op, value} with op in eq, in (≤ 50), gte, lte, between, prefix (keyword only). High-cardinality dimensions (developer_id, keyword) need an in filter on the same field. Storefront defaults to us.
apps — pg, grain app (current), time column — (current state)
| metric | definition |
|---|---|
count |
apps matching filters |
avg_rating |
over non-null values |
median_rating_count |
over non-null values |
sum_rating_count |
over non-null values |
share_with_iap |
numerator / count |
share_delisted |
numerator / count |
share_abandoned |
crossed / (crossed + below); unknown_count reported |
unknown_count |
apps with unknown state |
median_days_since_observed |
evaluated_at - last_observed_at |
Dimensions: storefront, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id
Filters: storefront, entity_id, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, rating_count, rating_average, price_cents, first_seen_at, last_observed_at
review_velocity — pg, grain app (current), time column — (current state)
| metric | definition |
|---|---|
apps_with_signal |
apps with an EWMA |
avg_change_rate |
the page-1 new-review ratio in [0,1] -- a velocity SIGNAL, not reviews/week |
share_change_rate_gte |
share of signalled apps at or above threshold (needs params.threshold) |
Dimensions: storefront, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id
Filters: storefront, entity_id, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, rating_count, rating_average, price_cents, first_seen_at, last_observed_at
review_observations — pg, grain day x app, time column day
| metric | definition |
|---|---|
reviews_observed |
reviews we FIRST observed |
avg_rating_observed |
over the window |
share_rating_le_2 |
over the window |
share_rating_ge_4 |
over the window |
apps_with_observations |
apps with a review observed in the window |
apps_with_fold |
apps folded in the window |
Dimensions: storefront, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, day, week, month
Filters: storefront, entity_id, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, rating_count, rating_average, price_cents, first_seen_at, last_observed_at
change_events — duckdb, grain event, time column observed_at
| metric | definition |
|---|---|
event_count |
served events in the window |
distinct_entities |
— |
events_per_entity |
— |
Dimensions: storefront, event_type, detector, entity_type, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, day, week, month
Filters: storefront, entity_id, event_type, detector, entity_type, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, rating_count, rating_average, price_cents, first_seen_at, last_observed_at
chart_observations — duckdb, grain observation, time column observed_at
| metric | definition |
|---|---|
observation_count |
— |
distinct_entities |
— |
best_rank |
— |
avg_rank |
— |
days_on_chart |
distinct observed_at::date |
Dimensions: storefront, chart_type, chart_category, rank_band, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, day, week, month
Filters: storefront, entity_id, chart_type, chart_category, rank_band, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, rating_count, rating_average, price_cents, first_seen_at, last_observed_at
serp_observations — duckdb, grain observation, time column observed_at
| metric | definition |
|---|---|
observation_count |
— |
distinct_entities |
— |
best_position |
— |
avg_position |
— |
days_in_top10 |
— |
Dimensions: storefront, keyword, rank_band, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, day, week, month
Filters: storefront, entity_id, keyword, rank_band, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, rating_count, rating_average, price_cents, first_seen_at, last_observed_at
rating_trend — duckdb, grain app-week, time column captured_at
| metric | definition |
|---|---|
avg_rating |
per week bucket |
avg_rating_count |
per week bucket |
delisted_share |
— |
apps_in_grid |
— |
Dimensions: storefront, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, week
Filters: storefront, entity_id, app_category, price_band, has_iap, is_delisted, abandonment_state, developer_id, rating_count, rating_average, price_cents, first_seen_at, last_observed_at
Bands
price_band on USD cents (half-open): free = 0; lt_1 = [1, 100); 1_5 = [100, 500); 5_20 = [500, 2000); 20_plus ≥ 2000; null when the currency is not USD. rank_band: 1_10, 11_50, 51_100, 100_plus. Weeks start Monday 00:00 UTC.