Get list devices (Public Access)
curl --request GET \
--url https://app.mertani.co.id/external/v1/{api-key}/devicesimport requests
url = "https://app.mertani.co.id/external/v1/{api-key}/devices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.mertani.co.id/external/v1/{api-key}/devices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.mertani.co.id/external/v1/{api-key}/devices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.mertani.co.id/external/v1/{api-key}/devices"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.mertani.co.id/external/v1/{api-key}/devices")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.mertani.co.id/external/v1/{api-key}/devices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"message": "Success",
"data": [
{
"device_id": "DEV-001-ABC123",
"name": "AWLR SUNGAI CONTOH 1",
"type": "AWLR",
"lat": -7.7956,
"long": 110.3695,
"interval_seconds": 1800,
"last_update_at": "2026-05-05T10:00:00Z",
"sensors": [
{
"sensor_id": "ABC1-batt",
"name": "Battery Level",
"type": "BATTERY",
"unit": "%"
},
{
"sensor_id": "ABC1-water",
"name": "Water Level",
"type": "FLUID_LEVEL",
"unit": "cm"
},
{
"sensor_id": "ABC1-signal",
"name": "Signal Strength",
"type": "CELLULAR_SIGNAL",
"unit": "dBm"
}
]
}
]
}{
"message": "Bad Request",
"data": null
}{
"message": "Forbidden",
"data": null
}{
"message": "Device not found",
"data": null
}{
"message": "Method Not Allowed",
"data": null
}{
"message": "To Many Request",
"data": null
}Open API
Get Public Devices
Mengambil daftar perangkat beserta metadata sensor yang tersedia menggunakan APIKey ID tanpa autentikasi.
GET
/
{api-key}
/
devices
Get list devices (Public Access)
curl --request GET \
--url https://app.mertani.co.id/external/v1/{api-key}/devicesimport requests
url = "https://app.mertani.co.id/external/v1/{api-key}/devices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.mertani.co.id/external/v1/{api-key}/devices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.mertani.co.id/external/v1/{api-key}/devices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.mertani.co.id/external/v1/{api-key}/devices"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.mertani.co.id/external/v1/{api-key}/devices")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.mertani.co.id/external/v1/{api-key}/devices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"message": "Success",
"data": [
{
"device_id": "DEV-001-ABC123",
"name": "AWLR SUNGAI CONTOH 1",
"type": "AWLR",
"lat": -7.7956,
"long": 110.3695,
"interval_seconds": 1800,
"last_update_at": "2026-05-05T10:00:00Z",
"sensors": [
{
"sensor_id": "ABC1-batt",
"name": "Battery Level",
"type": "BATTERY",
"unit": "%"
},
{
"sensor_id": "ABC1-water",
"name": "Water Level",
"type": "FLUID_LEVEL",
"unit": "cm"
},
{
"sensor_id": "ABC1-signal",
"name": "Signal Strength",
"type": "CELLULAR_SIGNAL",
"unit": "dBm"
}
]
}
]
}{
"message": "Bad Request",
"data": null
}{
"message": "Forbidden",
"data": null
}{
"message": "Device not found",
"data": null
}{
"message": "Method Not Allowed",
"data": null
}{
"message": "To Many Request",
"data": null
}Last modified on July 27, 2026
⌘I