Skip to main content
The /cache/stats endpoint returns a snapshot of every Google Places search query that the API has cached server-side. Each entry shows the original query string, the location it was run against, how many restaurant results were stored, and when it was cached. Use this endpoint to understand which searches have already been warmed up and to avoid redundant lookups in your integration.

Request

GET https://naijataste-api-vcp4.onrender.com/cache/stats
This endpoint takes no parameters.

Response

total_cached_queries
number
required
The total number of distinct queries currently in the cache.
queries
object[]
required
An array of cached query objects, one per stored search.

Example

curl "https://naijataste-api-vcp4.onrender.com/cache/stats"