The List Stores endpoint returns a collection of stores registered in the Ocha platform. By default, results are paginated with ten stores per page. When theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/floriansalvi/HEIG-VD_Ocha-api/llms.txt
Use this file to discover all available pages before exploring further.
near query parameter is provided, the API switches to a geospatial mode and returns all stores within the given radius sorted by distance — pagination parameters are ignored in that mode.
Endpoint
This endpoint is public and does not require authentication.
Query Parameters
The page number to retrieve. Used only when
near is not provided.Number of stores returned per page. Used only when
near is not provided.Coordinates of the search origin in
"lng,lat" format (e.g. "6.93,46.99"). When supplied, the response includes all stores within radius meters sorted by proximity. Pagination is disabled.Maximum search distance in meters. Only applied when
near is also provided.Response — 200 OK
Human-readable status message (e.g.
"List of stores" or "Nearby stores").Current page number. Only present in paginated responses (when
near is not used).Total number of available pages. Only present in paginated responses.
Total number of stores matching the query.
List of store objects.
Error Codes
| Status | Description |
|---|---|
400 | Invalid query parameters (e.g. malformed near value). |
500 | Unexpected server error. |