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:3. Find your address
Use List addresses to find your address(es). The reference includes the request details and example response.data array contains your addresses. Choose an entry whose capabilities.consumption is true and copy its id.
Set it for subsequent requests:
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: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: