This document describes api for MyBroodMinder users - currently in beta.
Send request for use to support@broodminder.com
All endpoints require a rate-limited API key in the request header.
Header:
X-Api-Key: <your-api-key>
The key is associated to a single user account, only requests to that account's data are authorized.
| Parameter | Required | Type | Description |
|---|---|---|---|
start |
yes | integer | Unix epoch timestamp in seconds for the start of the time window |
end |
yes | integer | Unix epoch timestamp in seconds for the end of the time window |
Returns the list of apiaries for the authenticated user.
200 OK[
{
"apiaryId": "apiary-123",
"name": "Main Apiary",
"color": "blue",
"hives": [
{
"hiveId": "hive-456",
"name": "Hive A",
"description": "North field hive",
"color": "yellow"
}
],
"location": {
"latitude": 44.123456,
"longitude": -93.123456
}
}
]
Returns sensor readings grouped by position for a hive owned by the authenticated user. Limited to 6 months of data per request.
id — hive IDstart — epoch secondsend — epoch seconds200 OK[
{
"positionID": "position-1",
"positionName": "Front",
"readings": [
{
"deviceId": "device-123",
"timestamp": 1684128000,
"batteryLevel": 93,
"chargeRemaining": 110,
"readings": {
"temperature": 34.8,
"humidity": 60.2
}
}
]
}
]
400 Bad Request.403 Forbidden.Returns notes attached to a hive for the authenticated user. Limited to 6 months of data per request.
id — hive IDstart — epoch secondsend — epoch seconds200 OK{
"notes": [
{
"id": "note-123",
"hiveId": "hive-456",
"description": "Checked hive entrance.",
"tags": [
{ "id": "tag-1", "name": "inspection" }
],
"timestamp": 1684128000,
"created": 1684128000,
"modified": 1684129000
}
]
}
400 Bad Request.403 Forbidden.Returns sensor readings for a single device belonging to the authenticated user. Limited to 6 months of data per request.
id — device IDstart — epoch secondsend — epoch seconds200 OK[
{
"deviceId": "device-123",
"timestamp": 1684128000,
"batteryLevel": 95,
"chargeRemaining": 120,
"readings": {
"temperature": 35.2,
"humidity": 61.4,
"weight": 25.76,
"radar": 0,
"audio": 0,
"swarmState": 0
}
}
]
400 Bad Request.403 Forbidden.400 Bad Request — missing or invalid start / end, or resource not found401 Unauthorized — missing or invalid API key or user context not available403 Forbidden — resource does not belong to authenticated user429 Too Many Requests — rate-limited API key usage limit exceeded500 Internal Server Error — unexpected server or datastore failureGET /user/device/abc123/readings?start=1684128000&end=1684214400 HTTP/1.1
Host: external-api.mybroodminder.com
X-Api-Key: YOUR_API_KEY