API Overviewο
Night Owl Protect offers a REST API for developers to integrate with our platform.
Warning
The API is currently in beta. Features and endpoints may change.
Getting Startedο
API Accessο
To use the Night Owl Protect API:
Create a developer account at developers.nightowlsp.com
Register your application
Obtain API credentials (Client ID and Secret)
Review API documentation
Base URLο
All API requests use this base URL:
https://api.nightowlsp.com/v1
API Featuresο
πΉ Device Management - List and control cameras
π Alerts - Retrieve and manage alerts
πΌ Recordings - Access recorded footage
π€ Users - Manage account and sharing
π Analytics - Event statistics and reports
Quick Exampleο
Hereβs a simple example to list your devices:
import requests
API_BASE = "https://api.nightowlsp.com/v1"
ACCESS_TOKEN = "your_access_token"
headers = {
"Authorization": f"Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json"
}
response = requests.get(f"{API_BASE}/devices", headers=headers)
devices = response.json()
for device in devices["data"]:
print(f"Device: {device['name']} - Status: {device['status']}")
Rate Limitsο
Plan |
Requests/Hour |
Requests/Day |
|---|---|---|
Free |
100 |
1,000 |
Developer |
1,000 |
10,000 |
Business |
10,000 |
100,000 |
Enterprise |
Custom |
Custom |
Rate limit headers included in responses:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1609459200
Response Formatο
All responses use JSON format:
{
"success": true,
"data": { ... },
"meta": {
"page": 1,
"per_page": 20,
"total": 100
}
}
Error responses:
{
"success": false,
"error": {
"code": "INVALID_TOKEN",
"message": "The access token is invalid or expired"
}
}
SDKsο
Official SDKs available:
Python:
pip install nightowl-protectJavaScript/Node:
npm install nightowl-protectJava: Maven repository
Supportο
π¬ Developer Forum
π§ API Support
Next: Learn about Authentication to secure your API requests.