M-Bus HTTPD API
mbus · IoT
M-Bus HTTPD API API
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
mbus_api
Returns this API specification
https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/api
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/api"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/api",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/api'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/api"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/api")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/api";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
hat
Gets Raspberry Pi Hat information
https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
POST
hatOff
Turns off power to the M-Bus
https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat/off
Hover any highlighted part to learn what it does
curl -X POST "https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat/off"
import requests
response = requests.post(
"https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat/off",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat/off';
const response = await fetch(url, {
method: 'POST',
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat/off"
req, _ := http.NewRequest("POST", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat/off")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/mbus.local/0.3.5/mbus/hat/off";
$opts = ["http" => [
"method" => "POST",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with M-Bus HTTPD API?
M-Bus HTTPD API is a IoT API. Developers commonly use iot APIs for:
- collecting and streaming sensor and device data
- monitoring and controlling connected devices
- building smart-home and industrial dashboards
- processing device telemetry at scale
- automating device provisioning and alerting
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. M-Bus HTTPD API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide