Home Assistant REST API
Smart Home Free key (no card)
AuthenticationFree key (no card)
Rate limitNone from a provider. It is your own server, limited only by your hardware
Documentation: developers.home-assistant.io ยท Checked Sep 13, 2026
About
Home Assistant is the leading open-source smart home platform, and its REST API lets you read every device state and call any service from your own scripts. Authentication uses a long-lived token you generate inside your own installation. No cloud account or fee involved. It is perfect for local-first automations that keep working even without internet.
Details
Free to start. You may need a free key, but no credit card.
Auth: Free key (no card)
Rate limit: None from a provider. It is your own server, limited only by your hardware
Verified: 2026-09-13
Best for: smart-home automation local
Setup
- Install Home Assistant on your own hardware (a Raspberry Pi works well).
- Create a long-lived access token in your user profile settings.
- Include the token as a Bearer header in API requests.
- Read device states from /api/states and history from /api/history.
- Trigger actions by posting to /api/services like light.turn_on.
Example
GET http://homeassistant.local:8123/api/states with a long-lived access tokenUse cases
- Read sensor states for custom dashboards
- Trigger lights and scenes from scripts or AI agents
- Log device history for energy or security analysis