Skip to main content
The statistics endpoints expose aggregated hotel counts across the reference inventory. Retrieve a global summary, a ranked list of countries, or city-level detail for a specific country. These endpoints support globe or map visualizations, dashboards, and coverage reporting.

GET /api/v1/reference/statistics

Retrieve global statistics across the entire reference inventory, including hotel counts broken down by country and city.

Response

number
required
Total number of reference hotels in the inventory.
number
required
Number of distinct countries represented.
number
required
Number of distinct cities represented.
object[]
List of countries with their hotel counts.

Example


GET /api/v1/reference/statistics/countries

Retrieve countries ranked by hotel count.

Query parameters

number
default:"20"
Maximum number of countries to return. Clamped to 1 to 200.

Response

Returns an array of country statistics objects, sorted descending by hotel count.
string
required
Country name.
number
required
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

string
required
Country name. Must match the name as it appears in the inventory (e.g. France, United States).

Response

string
required
Country name.
number
required
Total hotel count for this country.
object[]
required
List of cities in this country with their hotel counts.

Errors

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.