API reference
Every endpoint a forecaster's script can call, with its parameters and a real answer, and the competitions you can send to. New to the API? Start with Submit with the API.
Base URL and headers
- Base URL
https://ingest.forecastscore.eu/v1X-API-Key- On every request. Create a key on the API keys page.
Idempotency-Key- On
POST /forecastsandDELETE /forecasts/{id}: any new random text per change, like a UUID. Reuse it only to retry the same request. - Body
- JSON, up to 1 MiB. Prices are in €/MWh, from −1,000 to 4,000, with at most 2 decimals.
- Times
- Instants are ISO 8601 in UTC (
2026-11-22T11:00:00Z); dates areYYYY-MM-DDdelivery days in the market's time zone.
Endpoints
Competitions
A competition is one market, product and resolution. Those three fields of a forecast choose its competition, and models are ranked only against others in the same one. Every competition is in the DAY_AHEAD product, so "product": "DAY_AHEAD" (the default) for all of them. This list is live.
Still loading…
- Open: takes forecasts until each day's cutoff, 12:00 Europe/Brussels the day before delivery, for every market.
- Paused: staff stopped new forecasts for now. Sending gets
409 competition_paused; forecasts already sent stay and are scored.
Each account can enter up to 5 models per hourly or 15-minute competition in each delivery month; the daily average competition has no entry limit. PT60M is hourly and PT15M every 15 minutes, both from 00:00 market time. PMD is the daily average price: while it is open, the rules for it are on Deadlines, versions and clock changes. The current limits are on the same page.
GET /markets
The live markets, each with every competition. A competition takes forecasts when its accepts_forecasts is true.
curl -H "X-API-Key: YOUR_API_KEY" https://ingest.forecastscore.eu/v1/markets
[
{
"id": "…",
"code": "ES",
"country": "ES",
"timezone": "Europe/Madrid",
"accepts_forecasts": true,
"competitions": [
{ "product": "DAY_AHEAD", "resolution": "PT60M", "enabled": true, "scoring_enabled": true,
"accepts_forecasts": true },
{ "product": "DAY_AHEAD", "resolution": "PT15M", "enabled": true, "scoring_enabled": true,
"accepts_forecasts": true },
{ "product": "DAY_AHEAD", "resolution": "PMD", "enabled": false, "scoring_enabled": false,
"accepts_forecasts": false }
]
},
"…"
]GET /products
The products and the resolutions each accepts right now. Day Ahead is the only product.
curl -H "X-API-Key: YOUR_API_KEY" https://ingest.forecastscore.eu/v1/products
[
{ "id": "…", "code": "DAY_AHEAD", "name": "Day Ahead", "supported_resolutions": ["PT60M", "PT15M"] }
]GET /markets/{market}/delivery-periods
Every period of one delivery day, its cutoff and whether it still takes forecasts. Use it to check how many prices to send on a clock-change day.
dateRequired. The delivery day, YYYY-MM-DD.resolutionPT60M (default) or PT15M. PMD is refused: a daily average has no periods.productDAY_AHEAD (default).curl -H "X-API-Key: YOUR_API_KEY" \ "https://ingest.forecastscore.eu/v1/markets/ES/delivery-periods?date=2026-10-25&resolution=PT60M"
{
"market": "ES",
"product": "DAY_AHEAD",
"delivery_date": "2026-10-25",
"resolution": "PT60M",
"timezone": "Europe/Madrid",
"submission_deadline": "2026-10-24T10:00:00Z",
"state": "open",
"period_count": 25,
"periods": [
{ "period_start": "2026-10-24T22:00:00Z", "local_time": "00:00", "occurrence": 1 },
{ "period_start": "2026-10-25T00:00:00Z", "local_time": "02:00", "occurrence": 1 },
{ "period_start": "2026-10-25T01:00:00Z", "local_time": "02:00", "occurrence": 2 },
"…"
]
}state is open, closed (after the cutoff) or frozen (closed, and the set of forecasts to score is fixed). occurrence is 2 only for the repeated hour on the October clock change.
POST /me/models
Creates a model. Sending a forecast never creates one. The name, exactly as written, becomes the fixed model_code; the name can change later on the website, the code can't. Up to 10 creates an hour.
nameRequired. 3–32 letters and digits joined by single hyphens or underscores.descriptionOptional. Up to 280 characters, shown publicly.default_marketOptional. A market code, like ES.default_resolutionOptional. PT60M or PT15M.curl -X POST https://ingest.forecastscore.eu/v1/me/models \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "ib-es-da", "default_market": "ES", "default_resolution": "PT15M"}'{
"model_code": "ib-es-da",
"name": "ib-es-da",
"description": null,
"default_market": "ES",
"default_resolution": "PT15M",
"status": "ACTIVE",
"created_at": "2026-11-21T09:12:44Z",
"competitions": [],
"forecast_count": 0,
"evaluated_count": 0,
"last_delivery_date": null,
"last_submitted_at": null,
"…": "profile fields, empty for a new model"
}POST /forecasts
Sends 1 to 100 forecasts, accepted or rejected together. Sending the same market, product, day, resolution and model again before the cutoff saves a new version; only the latest is scored.
marketRequired. A market code from the competition list.productDAY_AHEAD (default).delivery_dateRequired. The delivery day, YYYY-MM-DD.resolutionRequired. PT60M, PT15M, or PMD once open.model_codeRequired. One of your models' codes (or its current name), any case.pricesThe prices in delivery order from 00:00 market time. The count must match the day: see Prices per forecast in the competition list.valuesInstead of prices: a list of {"period_start": "…Z", "value": 72.5}, one per period. Send exactly one of the two.curl -X POST https://ingest.forecastscore.eu/v1/forecasts \
-H "X-API-Key: YOUR_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"forecasts": [{
"market": "ES",
"product": "DAY_AHEAD",
"delivery_date": "2026-11-23",
"resolution": "PT60M",
"model_code": "ib-es-da",
"prices": [78.20, 72.40, 69.85, "… 24 prices in all"]
}]}'Answer 201, one entry per forecast in request order:
{
"forecasts": [
{
"id": "6f1c…",
"market": "ES",
"product": "DAY_AHEAD",
"delivery_date": "2026-11-23",
"resolution": "PT60M",
"model_code": "ib-es-da",
"version": 1,
"status": "PENDING",
"periods": 24,
"submitted_at": "2026-11-22T08:30:02Z",
"submission_deadline": "2026-11-22T11:00:00Z",
"cancelled_at": null,
"pmd_participation": null
}
]
}status starts as PENDING and becomes EVALUATED once prices publish; an older version becomes SUPERSEDED. pmd_participation is null unless the forecast is a Spanish Day Ahead one while the daily average competition (PMD) is open. Then it reports the average and whether it entered: {"status": "admitted", "origin": "PT60M", "average": "71.2500"}. status is admitted, excluded (you turned that model and resolution off for PMD) or duplicate (another of your models already entered nearly the same average that day); origin is direct for a PMD forecast, otherwise the resolution it was averaged from.
DELETE /forecasts/{id}
Cancels one of your pending forecasts before the cutoff. It stays in your history as CANCELLED. The answer is 204 with no body.
curl -X DELETE https://ingest.forecastscore.eu/v1/forecasts/FORECAST_ID \ -H "X-API-Key: YOUR_API_KEY" \ -H "Idempotency-Key: $(uuidgen)"
Errors
Nothing is saved when a request fails. The answer has a plain-words detail and, for most errors, a stable code to branch on:
{
"detail": "forecasts[0]: expected 24 prices for ES on 2026-11-23, got 23",
"code": "forecast_periods_invalid"
}idempotency_key_required, idempotency_key_invalidSend a new random Idempotency-Key, like a UUID.(no code)The X-API-Key is missing, wrong, expired or revoked.provider_terms_required, provider_access_inactive, forecasts_write_requiredAccept the provider terms, or contact us if access is suspended.model_not_found, market_not_found, product_not_found, forecast_not_foundCheck the model code, market, product or forecast id.forecast_submission_closedThe cutoff for that day has passed. Send for the next open day.competition_paused, market_pausedStaff paused that competition or market. Its status in the table above says so.competition_not_openThat market has no such competition, for example PMD outside Spain.competition_model_limit_reachedYour account already entered the most models allowed in that competition this month.duplicate_curveThe curve is nearly identical to another of your models' curves for that day.forecast_not_pending, forecast_cancellation_closedOnly a pending forecast can be cancelled, and only before the cutoff.model_name_taken, model_limit_reachedThe name is taken by another of your models, or your account has its most models.(no code)The request is over 1 MiB. Split it.forecast_periods_invalid, forecast_value_out_of_range, forecast_value_precision, model_name_invalid, …The detail names the field and the period. Values are never rounded.rate_limitedToo many requests. Wait for the Retry-After seconds.