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
| Parameter | Values | Default |
|---|---|---|
period | all, 30d, 90d, 180d | 90 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
| Rule | Value |
|---|---|
| End of the window | The date of the newest observation in the store, not the current time |
| Load type | Full truck loads only |
| Rows counted | Rows with no price per km, and rows with a price per km from EUR 0.50 to EUR 5.00 |
| Outliers and filled-in prices | Included |
Because the window ends at the newest observation, a 30d overview still covers 30 days of data
when collection has paused.
Response
| Field | Type | Value |
|---|---|---|
total_observations | integer | Rows in the window |
observations_this_period | integer | Rows in the window. It counts the same rows as total_observations, so the two are equal. |
active_corridors | integer | Distinct lanes with at least one row |
avg_price_per_km_eur | number | Average EUR per km of the rows that have one |
min_price_per_km_eur, max_price_per_km_eur | number | Lowest and highest EUR per km |
avg_quality_score | number | Average quality score: 1.0 observed, 0.3 or 0.2 filled in |
outlier_rate_percent | number | Share of rows marked as outliers, in percent |
zero_price_count | integer | Rows with no price per km |
avg_data_freshness_hours | number | Average hours between the newest observation's date and each row's collection time |
date_range_start, date_range_end | string | Oldest and newest observation date in the window |
period | string | The window, as a label |
generated_at | string | When the response was computed |