Skip to content

Open API

All APIs follow the REST standard. The server for requests is:

https://agri-dl.holdingbyte.com

Request Headers

  • For all requests, the request header must be set: Content-Type:application/json
  • Requests must carry a token for server authentication: token:XXXX

Example

python
import requests
import json

# Device ID
device_id = "861714053848887"
# Request token
token = "hvduasqoqnbtscaiumzsgpjewxkrgupq"

url = f"https://agri-dl.holdingbyte.com/api/device/{device_id}/"

payload = {}
headers = {
  'token': token,
  'Content-Type': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

IMPORTANT

All url should ends with /.