API Documentation

Integrate InvestAware's AI-powered stock prediction API into your own applications. Secure, fast, and easy to use.

Getting Started

To use the InvestAware API, you need an API key and must specify your allowed origins in your profile settings. All requests must include your API key and Origin header.

Manage your API key & allowed origins →
POST /api-predict

Request a new AI-powered stock prediction.

HeaderRequiredDescription
X-API-KeyYesYour API key
OriginYesMust match allowed origins
Content-TypeYesapplication/json
Body ParameterTypeRequiredDescription
stockstringYesTicker symbol (e.g., AAPL)
curl -X POST https://investaware.us/.netlify/functions/api-predict -H "Content-Type: application/json" -H "X-API-Key: APIKEYHERE" -H "Origin: ORIGINHERE" -d "{ \"stock\": \"STOCKNAMEHERE\" }"
Example Success Response:
{
  "success": true,
  "prediction": {
    "stock": "AAPL",
    "prediction": "up",
    "confidence": 0.87,
    "date": "2024-06-28"
  }
}
GET /get-api-predictions

Retrieve your past prediction requests and their results.

HeaderRequiredDescription
X-API-KeyYesYour API key
OriginYesMust match allowed origins
Query ParameterTypeRequiredDescription
limitintegerNoNumber of results to return (default: 5)
statusstringNoFilter by status (e.g., completed)
curl -X GET "https://investaware.us/.netlify/functions/get-api-predictions?limit=5&status=completed" -H "X-API-Key: APIKEYHERE" -H "Origin: ORIGINHERE"
Example Success Response:
{
  "success": true,
  "predictions": [
    {
      "stock": "AAPL",
      "prediction": "up",
      "confidence": 0.87,
      "date": "2024-06-28",
      "status": "completed"
    },
    {
      "stock": "TSLA",
      "prediction": "down",
      "confidence": 0.72,
      "date": "2024-06-27",
      "status": "completed"
    }
  ]
}

Best Practices & Tips

Need help? Contact support@investaware.us or see our FAQ.