Formitra.

Forecast API

Read-only JSON and CSV endpoints for GB day-ahead demand forecasts, history, and benchmark performance. OpenAPI schema (JSON).

Get your API key: start a 7-day free trial (€750/month after day 7, cancel anytime) or sign in and create or replace up to three personal Bearer keys (fmt_) in Account → API keys.

Authentication & quickstart

Send your API key in the Authorization header. Never place keys in URLs.

# Latest GB day-ahead forecast (JSON)
curl --fail-with-body -H "Authorization: Bearer $FORMITRA_API_KEY" \
  "https://formitra.com/v1/gb/demand/latest"

# Latest GB day-ahead forecast (CSV)
curl --fail-with-body -H "Authorization: Bearer $FORMITRA_API_KEY" \
  "https://formitra.com/v1/gb/demand/latest?format=csv"

# Historical benchmark performance (CSV)
curl --fail-with-body -H "Authorization: Bearer $FORMITRA_API_KEY" \
  "https://formitra.com/v1/gb/demand/performance.csv"

Set FORMITRA_API_KEY to your personal fmt_ key from Account.

Pin a forecast model & product-v2 metadata

The current approved GB day-ahead default is 5.3.0 (from 2026-12-02). Omit /models/… to follow the approved default.

Add ?representation=product-v2 to latest, a vintage, the vintage list, half-hours or performance.csv to include modelVersion (default format stays unchanged). On the list and performance export, add &model_version=5.3.0 (or 5.2.0 / 5.0.0) to filter as-issued history; aggregates are per model and this does not select a model for future issues.

Use the same product bearer key to pin a model directly:

/v1/gb/demand/models/5.3.0/latest
/v1/gb/demand/models/5.2.0/vintages/2026-12-03
/v1/gb/demand/models/5.0.0/vintages/2026-11-24

A change of default does not retire a pin. Pinned latest selects yesterday’s issue before 07:30 London and today’s from 07:30. If that issue is missing or not confirmed on time, the API returns 503 with expectedIssueDate and a Retry-After: 60 header. It never substitutes an issue.

Archive-only pins (5.2.0 (2026-11-25–2026-12-03); 5.0.0 (2026-11-15–2026-11-24)): their latest returns 410 with lastCustomerIssueDate; their published customer vintages remain readable. A model outside your product or a missing or unauthorized vintage returns 404.

Endpoints

GET pathResult
/v1/gb/demand/latestForecast for the currently due issue date, when available on time. JSON by default; add ?format=csv for half-hourly CSV.
/v1/gb/demand/vintagesStored issue summaries. Optional inclusive issued_from and issued_to dates (YYYY-MM-DD); limit 1–366, default 30.
/v1/gb/demand/vintages/{identifier}Stored issue by date (YYYY-MM-DD), including late/unavailable records. JSON by default; add ?format=csv for CSV.
/v1/gb/demand/vintages/{identifier}/half-hoursRaw half-hour rows for a published issue: Formitra median, preliminary Elexon outturn, standalone NESO 2–14 day, and morning and later day-ahead NESO forecasts in MW. Join on start, including its UTC offset. Null means unavailable, not zero.
/v1/gb/demand/performance.csvPerformance CSV for forecasts confirmed available on time, with partial or complete observed demand.

Forecast format

Daily windows run from 23:00 Europe/London on the issue date until 23:00 the next day: 46, 48 or 50 half-hours around DST changes.

Forecast fields
FieldMeaning
periodsUTC start/end, local labels and settlement identifiers.
tracks.assistedThe Formitra forecast: aligned median point forecast plus optional lower80, upper80, lower90 and upper90 MW arrays.
neso
nesoPublishedAt
NESO demand in MW and its publication time for each half-hour, as available at the input cutoff. Null means unavailable, not zero.
inputCutoffLatest allowed input time (07:20 London).
generatedAtWhen the forecast was computed.
scheduledIssuePublication deadline (07:30 London).
publishedAt
publication
Independent HTTP witness completion time (publishedAt, publication.observedAt) and commit time (publication.bytesCommittedAt) proving delivery before 07:30.
forecastSHA256
provisional
SHA-256 integrity digest of the projected core and whether pre-deadline confirmation is still pending (false once witnessed).

The Formitra forecast is tracks.assisted. Missing NESO values do not imply missing Formitra predictions. Stored forecasts are not revised with later information.

Response format, intervals, NESO coverage & integrity hashes

With a day-ahead product key, current and dated forecasts use representationVersion=product-v1. The product field is gb-demand-day-ahead; methodSince gives the start date of the current method. A failed issue may have no predictions. The 80% and 90% intervals apply to each half-hour, not the whole day.

NESO coverage is not prediction coverage: nesoCoverage.available / nesoCoverage.expected counts held NESO values over all delivery periods: for example, 12/48 NESO values can accompany 48/48 Formitra predictions. Performance's same-period comparison uses only observed periods with eligible NESO values, and applies that identical subset to Formitra and NESO. It is not a whole-window NESO score.

forecastSHA256 hashes the sorted, compact JSON representation excluding status, publishedAt, provisional, publication, forecastSHA256 and limitations. The quoted ETag hashes the complete response bytes before transport encoding. The edge may prefix it with W/; the digest still matches the decoded response bytes. Responses are not cached.

Performance CSV

Contains the Formitra forecast (assisted) and matched NESO benchmarks (header only when empty). We calculate the full-day score from the first complete set of Elexon Initial National Demand Outturn (INDO) readings we download at least two hours after delivery ends. We keep that score even if Elexon revises the readings. These are preliminary demand figures, not final settlement data.

CSV scopes
ScopeWhat it measures
full, dailyFormitra errors pooled across complete windows, or per issue.
hourly, calendarFormitra errors by local delivery hour, or overlapping calendar slices.
matched, daily_matchedFormitra and NESO (by Formitra’s cutoff) on the same half-hours.
medium, daily_medium, partial_mediumFormitra and NESO 2–14 day (~21:40 previous evening) (neso_2_14d) on identical observed half-hours. No day-ahead fill.
later, daily_laterFormitra and NESO (around 08:45) (neso_later).
hourly_matched, hourly_laterThese comparisons by local delivery hour, using complete days only.
partial, partial_matched, partial_laterResults for the half-hours observed so far. expectedPeriods is the number in the full day.
Which NESO publication & CSV column definitions

For each half-hour, nesoPublishedAt is when NESO published the value, not when demand was delivered or Formitra downloaded it. Around 21:40 London time the previous evening is when Formitra usually downloaded the 2–14 day file, not when NESO issued it. Its issue time is unknown. The exact download completion is neso2To14DayReceivedAt; the raw and receipt SHA256 columns identify the file. The receipt must precede Formitra’s data deadline for that issue (inputCutoff). The later day-ahead comparison uses the first forecast complete after Formitra’s deadline and by 09:00 London time, saved before delivery. Its completion time is the latest publication among its half-hours, usually around 08:45 London time on the issue date. Open “Forecast timing and benchmark coverage” on the daily forecast to see the recorded times.

  • MAE, RMSE, bias and maxError: MW. RMSE uses pooled squared errors, not averaged daily RMSE.
  • coverage80 / coverage90: marginal fractions. Blank means unavailable.
  • periods: half-hours. windows: distinct issues.

Publication & status codes

Publication is due by 07:30 Europe/London. Before 07:30, latest normally returns yesterday’s issue (or today’s early once confirmed); after 07:30, today’s issue is due and returns 503 (with expectedIssueDate and Retry-After: 60) if absent, late, or still provisional=true (it never substitutes an older issue). publishedAt records when an independent check retrieved the complete forecast.

Troubleshooting connection errors & service limits

No HTTP status? A DNS error, TLS error or connection timeout is not a 401 or 403. From the same device or server, try opening /docs on the same HTTPS host without a key. If that also fails, check the hostname, connection, proxy and certificate settings before replacing your key.

Private responses are not cached. The rate limit is 120 requests per minute per authenticated account (or per IP when unauthenticated) across private routes. Delivery is best-effort with no contractual uptime guarantee (SLA).