Website
Get visitor statistics for a website
get/v1/hosting/websites/{website_id}/visitors
Request
- Base URLhttps://api.10web.io
- Authnone declared. Required headers: x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
website_idinteger required
Query parameters
period'day' | 'week' | 'month' | 'year'
Time period for visitor statistics
Headers
x-api-keystring required
API key for authentication
Response
Visitor statistics retrieved successfully
Example response
{
"status": "ok",
"data": [
{
"count": 2,
"date": "2025-05-29"
},
{
"count": 5,
"date": "2025-05-30"
},
{
"count": 8,
"date": "2025-05-31"
},
{
"count": 3,
"date": "2025-06-01"
}
],
"start_date": "Fri, 23 May 2025 00:00:00 GMT",
"end_date": "Mon, 23 Jun 2025 00:00:00 GMT",
"sum": 18
}Changes
No recorded changes to this operation across all 1 revision of this API.