inexogy Readings API

The Readings API from inexogy — 3 operation(s) for readings.

Operations 4

GET /last_reading Return the last measurement for the specified meter #
GET /readings Return measurements for the specified meter within a time interval #
POST /readings Stores the measurements for a group of meters #
GET /statistics Return various statistics calculated over all measurements for the specified… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/discovergy:discovergy-readings-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

discovergy-readings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Discovergy Readings API
tags:
- name: Readings
paths:
  /last_reading:
    get:
      tags:
      - Readings
      summary: Return the last measurement for the specified meter
      operationId: getLastReading
      parameters:
      - name: meterId
        in: query
        description: Identifier of the meter to retrieve the reading for.
        required: true
        schema:
          type: string
      - name: fields
        in: query
        description: Comma-separated list of measurement fields to return. Use the /field_names endpoint to get all available fields.
        schema:
          type: string
      - name: each
        in: query
        description: Return data from the virtual meter itself (false) or from all its sub-meters (true). Only applies if meterId refers to a virtual meter.
        schema:
          type: boolean
      responses:
        '200':
          description: Single measurement object. Each numeric value must be divided by 'kWhScalingFactor' as provided by the '/meters' endpoint to obtain kWh (e.g. 10.000.000.000). Returned values include the scaling factor ('Wandlerfaktor').
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Measurement'
  /readings:
    get:
      tags:
      - Readings
      summary: Return measurements for the specified meter within a time interval
      operationId: getReadings
      parameters:
      - name: meterId
        in: query
        description: Identifier of the meter to get readings for.
        required: true
        schema:
          type: string
      - name: fields
        in: query
        description: Comma-separated list of measurement fields to return. Use the /field_names endpoint to get all available fields.
        schema:
          type: string
      - name: from
        in: query
        description: Begin time of the interval (inclusive), as a UNIX millisecond timestamp.
        required: true
        schema:
          type: integer
          format: int64
      - name: to
        in: query
        description: End time of the interval (inclusive), as a UNIX millisecond timestamp.
        schema:
          type: integer
          format: int64
      - name: resolution
        in: query
        description: '<b>Sampling resolution</b> — time distance between returned readings. Maximum allowed time span (to - from) depends on the " +

          "chosen resolution:<br/>

          <table>

          <tr><th>resolution</th><th>maximum time span (to - from)</th></tr>

          <tr><td>raw</td><td>1 day</td></tr>

          <tr><td>three_minutes</td><td>10 days</td></tr>

          <tr><td>fifteen_minutes</td><td>31 days</td></tr>

          <tr><td>one_hour</td><td>93 days</td></tr>

          <tr><td>one_day</td><td>10 years</td></tr>

          <tr><td>one_week</td><td>20 years</td></tr>

          <tr><td>one_month</td><td>50 years</td></tr>

          <tr><td>one_year</td><td>100 years</td></tr>

          </table>

          '
        schema:
          type: string
          enum:
          - raw
          - three_minutes
          - fifteen_minutes
          - one_hour
          - one_day
          - one_week
          - one_month
          - one_year
      - name: disaggregation
        in: query
        description: Include load disaggregation as pseudo-measurement fields, if available. Only applied when resolution is 'raw'.
        schema:
          type: boolean
      - name: each
        in: query
        description: Return data from the virtual meter itself (false) or from all its sub-meters (true). Only applies if meterId refers to a virtual meter.
        schema:
          type: boolean
      responses:
        '200':
          description: Array of measurement objects. Numeric values must be divided by 'kWhScalingFactor' as provided by the '/meters' endpoint to obtain kWh (e.g. 10.000.000.000). Returned values include the scaling factor ('Wandlerfaktor').
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Measurement'
    post:
      tags:
      - Readings
      summary: Stores the measurements for a group of meters
      operationId: storeReadings
      requestBody:
        description: "Measurements given as a JSON map:<ul>\n<li>Key: meterId</li>\n<li>Value: a JSON map:<ul>\n<li>Key: UNIX millisecond timestamp</li>\n<li>Value: a JSON map:<ul>\n<li>Key: field name</li>\n<li>Value: field value</li>\n</ul></li></ul></li></ul>\nExample:<pre>{\n  \"1a30e01423c111e9ab14d663bd873d93\":{\n    \"1000000001111\":{\"energy\":2000000000,\"energyOut\":3000000000},\n    \"1000000002222\":{\"energy\":4000000000,\"energyOut\":5000000000}\n  },\n  \"c24ec41867194308a5f3e441b6d200f4\":{\n    \"1000000001111\":{\"energy\":6000000000,\"energyOut\":7000000000},\n    \"1000000002222\":{\"energy\":8000000000,\"energyOut\":9000000000}\n  }\n}</pre>"
        content:
          application/json:
            schema:
              type: object
              additionalProperties:
                type: object
                additionalProperties:
                  type: object
                  additionalProperties:
                    type: integer
                    format: int64
        required: true
      responses:
        '200':
          description: Measurements were stored
  /statistics:
    get:
      tags:
      - Readings
      summary: Return various statistics calculated over all measurements for the specified…
      operationId: getStatistics
      parameters:
      - name: meterId
        in: query
        description: Identifier of the meter to get statistics for
        required: true
        schema:
          type: string
      - name: fields
        in: query
        description: Comma-separated list of measurement fields to return in the result (use the /field_names endpoint to get all available fields)
        schema:
          type: string
      - name: from
        in: query
        description: Start time of interval to return statistics for, as a UNIX millisecond timestamp
        required: true
        schema:
          type: integer
          format: int64
      - name: to
        in: query
        description: End time of interval to return statistics for, as a UNIX millisecond timestamp
        schema:
          type: integer
          format: int64
      responses:
        '200':
          description: Statistics as a JSON object
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
components:
  schemas:
    Measurement:
      type: object
      properties:
        time:
          type: integer
          description: Time of the measurement, as a UNIX millisecond timestamp
          format: int64
        values:
          type: object
          additionalProperties:
            type: object
            description: Measurement values; key is the field name, value the numeric quantity. Fields present depend on the measurement type.
          description: Measurement values; key is the field name, value the numeric quantity. Fields present depend on the measurement type.