Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Spotwatts Com Now.json API
version: 1.0.0
contact:
url: https://spotwatts.com/en/about#contact
termsOfService: https://spotwatts.com/en/api#terms
description: 'Operations tagged Now.json across 2 of this provider''s published API definitions: spotwatts-com-openapi.json, spotwatts-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://spotwatts.com/api/v1
tags:
- name: Now.json
paths:
/{zone}/now.json:
get:
summary: Price of the current 15-minute interval in one zone
parameters:
- $ref: '#/components/parameters/zone'
responses:
'200':
description: The current interval.
content:
application/json:
schema:
$ref: '#/components/schemas/Now'
'404':
$ref: '#/components/responses/NotFound'
tags:
- Now.json
operationId: getByZoneNowJson
x-operation-id-source: derived
servers:
- url: https://spotwatts.com/api/v1
/now.json:
get:
summary: Price of the current 15-minute interval in every zone
responses:
'200':
description: Zone code → current interval (null when the zone has no prices for today).
tags:
- Now.json
operationId: getNowJson
x-operation-id-source: derived
servers:
- url: https://spotwatts.com/api/v1
components:
parameters:
zone:
name: zone
in: path
required: true
description: Bidding zone in lower case.
schema:
type: string
enum:
- no1
- no2
- no3
- no4
- no5
- dk1
- dk2
- se1
- se2
- se3
- se4
- fi
- ee
- lv
- lt
example: no2
responses:
NotFound:
description: Unknown zone or date, or prices not published yet (tomorrow's come at about 13:00 CET).
content:
application/json:
schema:
type: object
properties:
message:
type: string
schemas:
Now:
allOf:
- $ref: '#/components/schemas/Interval'
- type: object
properties:
zone:
type: string
country:
type: string
timezone:
type: string
currency:
type: string
unit:
type: string
vat_rate:
type: number
attribution:
$ref: '#/components/schemas/Attribution'
Interval:
type: object
properties:
start:
type: string
format: date-time
description: Local time with offset.
end:
type: string
format: date-time
price:
type: number
description: Currency per kWh, excl. VAT.
price_vat:
type: number
description: Currency per kWh, inc. VAT.
eur_mwh:
type: number
description: Day-ahead price in EUR/MWh, as published.
Attribution:
type: object
description: The link the terms of use ask for. A one-zone response links the zone's page, others the home.
properties:
text:
type: string
example: 'Prices: Spotwatts'
url:
type: string
format: uri
example: https://spotwatts.com/se/se3
html:
type: string
example: '<a href="https://spotwatts.com/se/se3">Prices: Spotwatts</a>'
Interval_2:
type: object
properties:
start:
type: string
format: date-time
description: Local time with offset.
end:
type: string
format: date-time
price:
type: number
description: Currency per kWh, excl. VAT.
price_vat:
type: number
description: Currency per kWh, incl. VAT.
eur_mwh:
type: number
description: Day-ahead price in EUR/MWh, as published.
externalDocs:
url: https://spotwatts.com/en/api
x-refined-from:
- spotwatts-com-openapi.json
- spotwatts-openapi.json