before: get data before a specific timestamp (unix time in milliseconds such as 1467748343881)

after: get data after a specific timestamp

interval: get data every specific amounts of seconds, such as 10 for every 10 seconds

type: D (gas) or P (particle) data. This is required

download: if set to true, returns a downloadable attachment

scan is similar to query, but it returns all of the data from a particular device in a specified time range. Unlike query, a data type must be specified. In addition, this operation can only get data from devices which the key owner owns or has been allowed to download.

Response

Unlike query, the scan command returns the data in a newline-separated list, such as: