# Retrieve counts from a group of devices within a specified time range. **POST /f642d910-17db-4198-a62-302f9348f8cd/Service.asmx/GetCountsByShopGroupAndDatePublic** This endpoint returns a list of all events for devices from a shop group within a specified time range. ## Servers ## Parameters ### Body: (object) requestBody description - **Token** (string) Your custom security token. - **CompanyName** (string) The name of the company. - **ShopGroupName** (string) The name of the shop group as defined in the dashboard. - **DateFrom** (datetime) The beginning date of counts. - **DateTo** (datetime) The endind date of counts. - **In** (bool) Defines whether to filter entrances or exits. ## Responses ### 400 Problem #### Body: (object) - **status** (integer) The HTTP status code. - **Additional properties are allowed** () ### 200 OK #### Body: (object) - **DateTime** (string(date-time)) DateTime stamp of event. - **StoreName** (string) Name of the store where the event happened. - **Amount** (int) Defines the current amount of customers inside a store. [Powered by Bump.sh](https://bump.sh)