Prediction

Prediction

This endpoint is used for machine learning predictions.

Endpoints

Base URL: https://econome-api-i2dyjb7xmq-et.a.run.app/api/v1

Get Monthly Expense Prediction

GET predict/monthly-expense

Headers

Authorization : Bearer <token>

Response

{
    "error": false,
    "message": "Prediction made successfully",
    "data": {
        "prediction": "float"
    }
}

Get Time Series Expense Prediction

GET predict/timeseries-expense

Headers

Authorization : Bearer <token>

Query Parameters

  • startDate
  • endDate

Example Queries

predict/timeseries-expense?startDate=2024-06-20&endDate=2024-06-26

Response

{
    "error": false,
    "message": "Prediction made successfully",
    "data": {
        "nextDayPrediction": "float",
        "weeklyForecast": "float",
        "monthlyForecast": "float"
    }
}

Get Budget Allocation by Category Prediction

GET predict/budget-prediction:category

Query Parameters

  • Housing
  • Food
  • Transportation
  • Personal-Care
  • Entertainment
  • Miscellaneous

Example Queries

predict/budget-prediction/Housing

Headers

Authorization : Bearer <token>

Response

{
    "error": false,
    "message": "Budget prediction made successfully",
    "category": "string",
    "predictedExpense": "float",
}