Skip to main content

Wast'O public API

Base URL:

https://api.wast-o.com

All public routes are prefixed with /public. Official client: SDK.

Pagination​

Most list endpoints return:

{
"data": [],
"meta": { "page": 1, "pageSize": 20, "total": 0, "totalPages": 0 }
}

Query: page (default 1), pageSize (default 20, max 100). Some legacy routes still return a raw array.

Auth​

Most public endpoints need no authentication. For progress tracking, pass a client-generated deviceId.

JSON in and out. Typical errors:

{
"statusCode": 404,
"message": "Ville avec l'ID abc123 non trouvée",
"error": "Not Found"
}
const response = await fetch('https://api.wast-o.com/public/cities');
const { data: cities } = await response.json();
curl https://api.wast-o.com/public/cities

Next​