Skip to content

Forecasting

This example assumes using Nixtla; is in scope and apiKey contains your Nixtla API key.

1
2
3
4
5
6
7
8
9
var apiKey =
    Environment.GetEnvironmentVariable("NIXTLA_API_KEY") is { Length: > 0 } value
        ? value
        : throw new AssertInconclusiveException("NIXTLA_API_KEY environment variable is not found.");

using var client = new NixtlaClient(apiKey);

// The client provides direct access to forecasting, anomaly detection,
// cross-validation, and fine-tuning endpoints.