# Return daily AwStats statistics for a domain This function returns the daily AwStats statistics for a domain. Endpoint: GET /Stats/get_stats_daily Version: 11.136.0.0 Security: BasicAuth ## Query parameters: - `domain` (string, required) The domain to retrieve statistics for. Must be owned by the current cPanel user. Example: "example.com" ## Response 200 fields (application/json): - `apiversion` (integer) The version of the API. Example: 3 - `func` (string) The name of the method called. Example: "get_stats_daily" - `module` (string) The name of the module called. Example: "Stats" - `result` (object) - `result.data` (object) - `result.data.domain` (string) The domain associated with the returned daily stats. Example: "example.com" - `result.data.stats` (object) A map of date strings (YYYY-MM-DD) to daily statistics. Up to 45 days of history are returned. Gaps between the first available stat and yesterday are filled with zeros. Example: {"Thu Feb 01 2024 00:00:00 GMT+0000 (Coordinated Universal Time)":{"bandwidth":81110,"hits":6,"pages":6,"visits":5},"Fri Feb 02 2024 00:00:00 GMT+0000 (Coordinated Universal Time)":{"bandwidth":888296,"hits":43,"pages":14,"visits":7}} - `result.errors` (array,null) List of errors if the API failed. - `result.messages` (array,null) List of messages generated by the API. - `result.metadata` (object) - `result.status` (integer) * - Success. * - Failed. Check the field for more details. Enum: 0, 1 - `result.warnings` (array,null) List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.