> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.nukio.mx/llms.txt.
> For full documentation content, see https://developers.nukio.mx/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.nukio.mx/_mcp/server.

# deviceData range

GET https://app.nukio.mx/api/v1/eventdata/devicedata/{deviceID}/{statusCode}/{startTime}/{endTime}/{intervalStart}/{intervalSize}/authorization

Reference: https://developers.nukio.mx/nukio-api/device/device-data-range

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/eventdata/devicedata/{deviceID}/{statusCode}/{startTime}/{endTime}/{intervalStart}/{intervalSize}/authorization:
    get:
      operationId: device-data-range
      summary: deviceData range
      tags:
        - subpackage_device
      parameters:
        - name: deviceID
          in: path
          description: Device ID number
          required: true
          schema:
            type: string
        - name: statusCode
          in: path
          description: Status code in decimal (use * as wildcard}
          required: true
          schema:
            type: string
        - name: startTime
          in: path
          description: start time of the events to call on EPOCH (use 0 as wildcard)
          required: true
          schema:
            type: string
        - name: endTime
          in: path
          description: end time of the events to call on EPOCH (use 0 as wildcard)
          required: true
          schema:
            type: string
        - name: intervalStart
          in: path
          description: Interval start range
          required: true
          schema:
            type: string
        - name: intervalSize
          in: path
          description: Interval end range
          required: true
          schema:
            type: string
        - name: authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Device_deviceData range_Response_200'
servers:
  - url: https://app.nukio.mx
components:
  schemas:
    ApiV1EventdataDevicedataDeviceIdStatusCodeStartTimeEndTimeIntervalStartIntervalSizeAuthorizationGetResponsesContentApplicationJsonSchemaGeozones:
      type: object
      properties: {}
      title: >-
        ApiV1EventdataDevicedataDeviceIdStatusCodeStartTimeEndTimeIntervalStartIntervalSizeAuthorizationGetResponsesContentApplicationJsonSchemaGeozones
    Device_deviceData range_Response_200:
      type: object
      properties:
        success:
          type: string
        geozones:
          $ref: >-
            #/components/schemas/ApiV1EventdataDevicedataDeviceIdStatusCodeStartTimeEndTimeIntervalStartIntervalSizeAuthorizationGetResponsesContentApplicationJsonSchemaGeozones
        metadata:
          type: array
          items:
            description: Any type
        status_code:
          type: string
      required:
        - success
        - geozones
        - metadata
        - status_code
      title: Device_deviceData range_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: authorization

```

## SDK Code Examples

```python Device_deviceData range_example
import requests

url = "https://app.nukio.mx/api/v1/eventdata/devicedata/01/*/0/0/1/5/authorization"

headers = {"authorization": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Device_deviceData range_example
const url = 'https://app.nukio.mx/api/v1/eventdata/devicedata/01/*/0/0/1/5/authorization';
const options = {method: 'GET', headers: {authorization: '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Device_deviceData range_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://app.nukio.mx/api/v1/eventdata/devicedata/01/*/0/0/1/5/authorization"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("authorization", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Device_deviceData range_example
require 'uri'
require 'net/http'

url = URI("https://app.nukio.mx/api/v1/eventdata/devicedata/01/*/0/0/1/5/authorization")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["authorization"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Device_deviceData range_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://app.nukio.mx/api/v1/eventdata/devicedata/01/*/0/0/1/5/authorization")
  .header("authorization", "<apiKey>")
  .asString();
```

```php Device_deviceData range_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.nukio.mx/api/v1/eventdata/devicedata/01/*/0/0/1/5/authorization', [
  'headers' => [
    'authorization' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Device_deviceData range_example
using RestSharp;

var client = new RestClient("https://app.nukio.mx/api/v1/eventdata/devicedata/01/*/0/0/1/5/authorization");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Device_deviceData range_example
import Foundation

let headers = ["authorization": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.nukio.mx/api/v1/eventdata/devicedata/01/*/0/0/1/5/authorization")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```