The statistics endpoints expose aggregated hotel counts across the reference inventory. You can retrieve a global summary, a ranked list of countries, or city-level detail for a specific country. These endpoints are designed to support globe or map visualizations, dashboards, and coverage reporting.Documentation Index
Fetch the complete documentation index at: https://docs.mapping.travel/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v1/reference/statistics
Retrieve global statistics across the entire reference inventory, including hotel counts broken down by country and city.Response
Total number of reference hotels in the inventory.
Number of distinct countries represented.
Number of distinct cities represented.
List of countries with their hotel counts.
Example
GET /api/v1/reference/statistics/countries
Retrieve countries ranked by hotel count.Query parameters
Maximum number of countries to return. Clamped to 1–200.
Response
Returns an array of country statistics objects, sorted descending by hotel count.Country name.
Number of reference hotels in this country.
Example
GET /api/v1/reference/statistics/countries/
Retrieve detailed statistics for a single country, including a breakdown of hotel counts per city.Path parameters
Country name. Must match the name as it appears in the inventory (e.g.
France, United States).Response
Country name.
Total hotel count for this country.
List of cities in this country with their hotel counts.
Errors
| Status | Description |
|---|---|
404 Not Found | The specified country was not found in the inventory. |
Example
Country names are case-sensitive and must match the inventory’s stored form. Use
GET /api/v1/reference/statistics/countries first to discover the exact country names available.