Skip to main content

Content coverage metrics by provider

GET 

/content/hotels/v1/metrics/coverage

Returns per-provider counts for hotels/rooms and how many carry descriptions/images/beds. Use for content health monitoring.

The report is expensive to build (tens of seconds), so it is served from a snapshot refreshed every 10 minutes and no request ever computes it. Immediately after a restart, before the first snapshot exists, the endpoint answers 503 with Retry-After instead of holding the connection open.

Read hotelsWithUsefulDescription next to hotelsWithDescription: a provider can score full description coverage while every row is just the hotel name repeated.

Pass media=true to also include hotelsWithJsonbMedia, hotelsWithGeo and lastUpdated. That variant is computed inline (full scan of the hotels table, ~45s) and is not cached.

Request

Responses

Coverage stats per provider