APEXReference

Market analytics

GET /api/v1/market/overview. The period parameter, every field of the response and how it is computed, and how the window is anchored.

GET /api/v1/market/overview returns totals for the full-truck-load observations in APEX's store over a period. Scope market. It is the only APEX analytics view on the TOVR REST API; the others are used inside TOVR.

Request

ParameterValuesDefault
periodall, 30d, 90d, 180d90 days

Any other parameter or value is 422 validation_failed.

curl "https://tovr.eu/api/v1/market/overview?period=30d" \
  -H "Authorization: Bearer $TOVR_TOKEN"

How the window is computed

RuleValue
End of the windowThe date of the newest observation in the store, not the current time
Load typeFull truck loads only
Rows countedRows with no price per km, and rows with a price per km from EUR 0.50 to EUR 5.00
Outliers and filled-in pricesIncluded

Because the window ends at the newest observation, a 30d overview still covers 30 days of data when collection has paused.

Response

FieldTypeValue
total_observationsintegerRows in the window
observations_this_periodintegerRows in the window. It counts the same rows as total_observations, so the two are equal.
active_corridorsintegerDistinct lanes with at least one row
avg_price_per_km_eurnumberAverage EUR per km of the rows that have one
min_price_per_km_eur, max_price_per_km_eurnumberLowest and highest EUR per km
avg_quality_scorenumberAverage quality score: 1.0 observed, 0.3 or 0.2 filled in
outlier_rate_percentnumberShare of rows marked as outliers, in percent
zero_price_countintegerRows with no price per km
avg_data_freshness_hoursnumberAverage hours between the newest observation's date and each row's collection time
date_range_start, date_range_endstringOldest and newest observation date in the window
periodstringThe window, as a label
generated_atstringWhen the response was computed

On this page