Lunar Energy Telemetry API

Time-bucketed per-sensor telemetry readings

Operations 3

GET /api/v2/devices/{synthId}/telemetry Get Device Telemetry #
GET /api/v1/devices/{synthId}/telemetry Get Device Telemetry #
GET /api/v1/counterfactuals/{counterfactualName}/devices/{deviceId}/telemetry Get Counterfactual Telemetry #

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/lunar-energy-telemetry-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

lunar-energy-telemetry-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lunar Energy Telemetry API
  version: v1.0
  contact:
    name: Lunar Energy
    url: https://www.gridshare.com
    email: developers@gridshare.com
  x-logo:
    url: https://www.lunarenergy.com/favicon.ico
  description: 'Operations tagged Telemetry across 2 of this provider''s published API definitions: gridshare-customer-api-openapi.yml, gridshare-partner-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://developer-api.customer.mygridshare.com
  description: Production server
- url: https://developer-api.customer.dev0.mygridshare.com
  description: Development server
- url: https://developer-api.partner.us.mygridshare.com
  description: Production server (US)
- url: https://developer-api.partner.mygridshare.com
  description: Production server (Rest of World)
- url: https://developer-api.partner.dev0.us.mygridshare.com
  description: Development server (US)
- url: https://developer-api.partner.dev0.mygridshare.com
  description: Development server (Rest of World)
security:
- bearerAuth: []
tags:
- name: Telemetry
  description: Time-bucketed per-sensor telemetry readings
paths:
  /api/v2/devices/{synthId}/telemetry:
    parameters:
    - $ref: '#/components/parameters/SynthId'
    get:
      operationId: getDeviceTelemetry
      summary: Get Device Telemetry
      description: "Time-bucketed telemetry for a single device sensor stream.\n`synthId` must be a **sensor ID** from the site topology — any node\nwith `\"kind\": \"sensor\"`. On most installations telemetry streams\nare keyed by derived sensor IDs such as\n`<deviceId>__GRID_METER_DERIVED`, `<deviceId>__bb_agg`, and\n`<deviceId>__PV_DERIVED`.\n\n`energy_Wh_increment` and `energy_Wh_decrement` are populated only\nwhen `include=energy` (or `include=default,energy`):\n  - `energy_Wh_increment` — lifetime cumulative energy flowing **into** the device (positive)\n  - `energy_Wh_decrement` — lifetime cumulative energy flowing **out of** the device (negative)\n"
      tags:
      - Telemetry
      parameters:
      - in: query
        name: include
        schema:
          type: string
      - in: query
        name: start
        schema:
          type: string
          format: date-time
      - in: query
        name: end
        schema:
          type: string
          format: date-time
      - in: query
        name: bucket
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Telemetry'
    servers:
    - url: https://developer-api.customer.mygridshare.com
      description: Production server
    - url: https://developer-api.customer.dev0.mygridshare.com
      description: Development server
  /api/v1/devices/{synthId}/telemetry:
    parameters:
    - $ref: '#/components/parameters/SynthId'
    get:
      operationId: getDeviceTelemetry
      summary: Get Device Telemetry
      description: 'Get time-bucketed telemetry for a device or sensor. `synthId` can be

        a device ID or a sensor ID from the site topology. Supported device

        kinds: `inverter`, `battery_pack`, `PV`, `EV`, `meter`,

        `load_control_relay`. Include `energy_Wh_increment` and

        `energy_Wh_decrement` by passing `include=default,energy`.

        '
      tags:
      - Telemetry
      parameters:
      - in: query
        name: include
        schema:
          type: string
        description: Comma-separated set of telemetry fields. `energy` is opt-in.
      - in: query
        name: start
        schema:
          type: string
          format: date-time
      - in: query
        name: end
        schema:
          type: string
          format: date-time
      - in: query
        name: bucket
        schema:
          type: string
        description: Time-bucket size (e.g. `PT1H`).
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Telemetry'
    servers:
    - url: https://developer-api.partner.us.mygridshare.com
      description: Production server (US)
    - url: https://developer-api.partner.mygridshare.com
      description: Production server (Rest of World)
    - url: https://developer-api.partner.dev0.us.mygridshare.com
      description: Development server (US)
    - url: https://developer-api.partner.dev0.mygridshare.com
      description: Development server (Rest of World)
  /api/v1/counterfactuals/{counterfactualName}/devices/{deviceId}/telemetry:
    parameters:
    - in: path
      name: counterfactualName
      required: true
      schema:
        type: string
    - in: path
      name: deviceId
      required: true
      schema:
        type: string
    get:
      operationId: getCounterfactualTelemetry
      summary: Get Counterfactual Telemetry
      description: 'Counterfactual telemetry — what the device would have done if it had

        not been smartly controlled. Availability depends on the

        counterfactuals enabled for your partner account.

        '
      tags:
      - Telemetry
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Telemetry'
    servers:
    - url: https://developer-api.partner.us.mygridshare.com
      description: Production server (US)
    - url: https://developer-api.partner.mygridshare.com
      description: Production server (Rest of World)
    - url: https://developer-api.partner.dev0.us.mygridshare.com
      description: Development server (US)
    - url: https://developer-api.partner.dev0.mygridshare.com
      description: Development server (Rest of World)
components:
  schemas:
    Telemetry:
      type: object
      properties:
        entries:
          type: array
          items:
            type: object
            properties:
              timestamp:
                type: string
                format: date-time
              power_W:
                type: number
              voltage_V:
                type: number
              current_A:
                type: number
              stateOfCharge_pct:
                type: number
              energy_Wh_increment:
                type: number
              energy_Wh_decrement:
                type: number
  parameters:
    SynthId:
      in: path
      name: synthId
      required: true
      schema:
        type: string
      description: A device ID or a sensor ID from the site topology.
  securitySchemes:
    bearerAuth:
      type: oauth2
      description: 'OAuth 2.0 Authorization Code flow against the lunar-customer

        Amazon Cognito user pool.

        '
      flows:
        authorizationCode:
          authorizationUrl: https://lunar-customer-prod-us-west-1.auth.us-west-1.amazoncognito.com/oauth2/authorize
          tokenUrl: https://lunar-customer-prod-us-west-1.auth.us-west-1.amazoncognito.com/oauth2/token
          refreshUrl: https://lunar-customer-prod-us-west-1.auth.us-west-1.amazoncognito.com/oauth2/token
          scopes:
            lunar/device.read: Read device metadata and telemetry (excluding plans)
            lunar/device.write: Modify devices including operation mode
            lunar/plan.read: Read existing device plans
            lunar/plan.write: Send plans to a device
x-refined-from:
- gridshare-customer-api-openapi.yml
- gridshare-partner-api-openapi.yml