# [BETA] Motion Blocks Endpoint: GET /network/{network_id}/motion/history/state_blocks Security: ApiKey ## Path parameters: - `network_id` (integer, required) Motion Network ID ## Query parameters: - `from` (integer) UTC unix timestamp to search motion from. - `to` (integer) UTC unix timestamp to query motion until. - `density_bucket` (integer) Bucket size of the returned motion block segments in seconds. - `state_bucket` (integer) Bucket size for motion state values. Larger sizes will tend to ignore shorter periods of lesser states. - `states` (integer) Which states to include, values are any combination of [0,1,2,3]. Response will return blocks of single state, i.e. continuous motion while moving from 2 to 3, will result in motion blocks for 2 and for 3 individually. Default is . Enum: 0, 1, 2, 3 ## Response 200 fields (application/json): - `devices` (array) - `location_history` (array) - `location_history.densities` (array) - `location_history.friendly_name` (array) - `location_history.locations` (array) - `location_history.macs` (array) - `location_history.start` (integer) - `location_history.stop` (integer) - `state` (integer)