Skip to main content
Choose Download API spec from the page menu to download the Consumer API’s OpenAPI specification for import into tools such as Postman.

1. Create your API key

In the Min Strøm iOS app, open Profile, then API-adgang (API access). Choose Opret API-nøgle (Create API key). An active Min Strøm Plus subscription is required. Copy the complete key and store it securely. It is shown only once. If you lose it, use Erstat API-nøgle (Replace API key) to issue a replacement; the old key stops working.

2. Configure your terminal

The examples use Bash and curl. This prompt keeps the key itself out of the command you type into shell history:
Keep your key out of source code, URLs, screenshots, and support messages. See Authentication and security for storing it safely.

3. Find your address

Use List addresses to find your address(es). The reference includes the request details and example response.
The data array contains your addresses. Choose an entry whose capabilities.consumption is true and copy its id. Set it for subsequent requests:
The ID above is synthetic. Replace it with an ID returned for your account.

4. Read consumption

Choose a period for which your address has data. The consumption reference describes the parameters and response fields. This example requests a single UTC hour:
Values are returned as energyKWh. The response may be empty if no readings are available. Do not assume that a successful request covers the entire requested period. Use --include with curl when you need to inspect HTTP status, rate-limit headers, and X-Request-ID. Curl 7.76 or newer supports --fail-with-body. When finished with this terminal session: