A simple FastAPI-based wrapper that allows you to interact with Actual Budget via a minimal HTTP API, forked from actual-api-rest. Uses the actualpy module under the hood.
- Can now get budget and accounts info
- Requests instance password and filename instead of storing them in environment variables
- Removed useless API key verification
- More under the hood changes
Create a .env file with the following variable:
ACTUAL_HOST="https://your-actual-budget-host.com"docker compose up --build --detachNote
Untested by me but it should probably work.
pip install -r requirements.txt
uvicorn main:app --reloadHeaders:
Content-Type: application/json
x-actual-password: your_actual_password
x-actual-encryption-password: encryption_password_if_present
x-actual-file: file_name_or_id
Adds a new transaction.
Body:
{
"amount": 12.99,
"payee": "Spotify",
"account": "Bank",
"category": "Subscriptions",
"notes": "Monthly plan",
"payment": true,
"cleared": true
}Gets the specified month's budget in JSON format.
Gets the current month's budget in JSON format.
Gets the current account balances in JSON format.
Check API health.
This project is licensed under the MIT License.