OpenWeatherMap Solar Panels API

Manage modeled locations and solar panel configurations and retrieve power output.

GitHub OpenAPI
Business capability
Weather & Environment AE-230.10

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /locations List modeled solar locations · List Modeled Locations #
Ask an LLM
“Which locations have solar irradiance models configured for us?”
“Can I see every modeled location tied to my API key?”
Tell an agent
List all modeled solar locations for my API key {appid}.
Show every solar location configured under the OpenWeather key {appid}.
POST /locations Create a modeled solar location · Create A Modeled Location #
Ask an LLM
“How do I add a new modeled location for solar energy?”
“Can I create a modeled location from a coordinate point?”
Tell an agent
Create a modeled location of type {type} at {coordinates}.
Add a new modeled solar location with coordinates {coordinates}.
GET /location/{location_id} Retrieve a modeled solar location · Retrieve A Modeled Location #
Ask an LLM
“What coordinates and type does a modeled location have?”
“Can I look up one modeled location by its ID?”
Tell an agent
Show modeled location {location_id}.
Get the coordinates of modeled location {location_id}.
DELETE /location/{location_id} Delete a modeled solar location · Delete A Modeled Location #
Ask an LLM
“How do I remove a modeled solar location?”
“Can I delete a modeled location by its ID?”
Tell an agent destructive · confirm first
Delete modeled location {location_id}.
Remove the modeled solar location {location_id}.
GET /location/{location_id}/panels List solar panels at a location · List Solar Panels For A Location #
Ask an LLM
“Which solar panels are installed at a modeled location?”
“Can I list all panels for one location?”
Tell an agent
List solar panels at location {location_id}.
Show every panel installed at modeled location {location_id}.
POST /location/{location_id}/panels Add a solar panel to a location · Create A Solar Panel For A Location #
Ask an LLM
“How do I add a solar panel with a specific tilt and azimuth?”
“Can I set a panel's peak power and area when adding it?”
Tell an agent
Add a {type} solar panel of area {area} m², tilt {tilt}°, azimuth {azimuth}°, peak power {peak_power} W to location {location_id}.
Create a {type} panel at location {location_id} with {area} m², {tilt}° tilt and {azimuth}° azimuth.
GET /panel/{panel_id} Retrieve a solar panel · Retrieve A Solar Panel #
Ask an LLM
“What are the configuration settings of one solar panel?”
“Can I look up a single panel by its ID?”
Tell an agent
Show solar panel {panel_id}.
Get the configuration of panel {panel_id}.
DELETE /panel/{panel_id} Delete a solar panel · Delete A Solar Panel #
Ask an LLM
“How do I remove a solar panel from a location?”
“Can I delete a panel by its ID?”
Tell an agent destructive · confirm first
Delete solar panel {panel_id}.
Remove panel {panel_id} from its location.
GET /location/{location_id}/interval_data Get solar panel output for a date · Solar Panel Power Output And Irradiance #
Ask an LLM
“How much energy will my solar panels produce on a given day?”
“Can I get per-interval solar output for a location on a date?”
Tell an agent
Get solar panel output for location {location_id} on {date}.
Show {interval} solar output for location {location_id} on {date}.

Documentation

Specifications

Schemas & Data

Other Resources

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/openweathermap:openweathermap-solar-panels-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

openweathermap-solar-panels-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenWeatherMap Solar Energy Solar Panels API
  version: 2.0.0
  description: OpenWeather solar APIs covering solar irradiance and solar panel energy prediction. Provides GHI, DNI, DHI values for clear sky and cloudy sky models with 15-minute or hourly resolution and 47 plus years of historical coverage. Includes endpoints to manage modeled locations and solar panel configurations.
  contact:
    name: OpenWeather
    url: https://openweathermap.org/api/solar-irradiance
  license:
    name: Creative Commons Attribution-ShareAlike 4.0 International
    url: https://creativecommons.org/licenses/by-sa/4.0/
servers:
- url: https://api.openweathermap.org/energy/2.0
  description: Solar Energy APIs base URL
security:
- appid: []
tags:
- name: Solar Panels
  description: Manage modeled locations and solar panel configurations and retrieve power output.
paths:
  /locations:
    get:
      operationId: listSolarLocations
      summary: List Modeled Locations
      description: Returns all modeled locations associated with the API key.
      tags:
      - Solar Panels
      parameters:
      - $ref: '#/components/parameters/Appid'
      responses:
        '200':
          description: Locations list response.
    post:
      operationId: createSolarLocation
      summary: Create A Modeled Location
      description: Creates a new modeled location with a coordinate point.
      tags:
      - Solar Panels
      parameters:
      - $ref: '#/components/parameters/Appid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateLocationRequest'
      responses:
        '201':
          description: Location created.
  /location/{location_id}:
    get:
      operationId: getSolarLocation
      summary: Retrieve A Modeled Location
      description: Returns the location object for the supplied location identifier.
      tags:
      - Solar Panels
      parameters:
      - name: location_id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/Appid'
      responses:
        '200':
          description: Location response.
    delete:
      operationId: deleteSolarLocation
      summary: Delete A Modeled Location
      description: Deletes the location associated with the supplied identifier.
      tags:
      - Solar Panels
      parameters:
      - name: location_id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/Appid'
      responses:
        '204':
          description: Location deleted.
  /location/{location_id}/panels:
    get:
      operationId: listSolarPanels
      summary: List Solar Panels For A Location
      description: Returns all solar panels associated with the supplied location.
      tags:
      - Solar Panels
      parameters:
      - name: location_id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/Appid'
      responses:
        '200':
          description: Panels list response.
    post:
      operationId: createSolarPanel
      summary: Create A Solar Panel For A Location
      description: Creates a new solar panel with the supplied physical configuration.
      tags:
      - Solar Panels
      parameters:
      - name: location_id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/Appid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePanelRequest'
      responses:
        '201':
          description: Panel created.
  /panel/{panel_id}:
    get:
      operationId: getSolarPanel
      summary: Retrieve A Solar Panel
      description: Returns the panel configuration for the supplied panel identifier.
      tags:
      - Solar Panels
      parameters:
      - name: panel_id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/Appid'
      responses:
        '200':
          description: Panel response.
    delete:
      operationId: deleteSolarPanel
      summary: Delete A Solar Panel
      description: Deletes the panel associated with the supplied identifier.
      tags:
      - Solar Panels
      parameters:
      - name: panel_id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/Appid'
      responses:
        '204':
          description: Panel deleted.
  /location/{location_id}/interval_data:
    get:
      operationId: getSolarPanelIntervalData
      summary: Solar Panel Power Output And Irradiance
      description: Returns clear-sky and cloudy-sky irradiance and per-panel power and energy output at the requested interval for the supplied location and date.
      tags:
      - Solar Panels
      parameters:
      - name: location_id
        in: path
        required: true
        schema:
          type: string
      - name: date
        in: query
        required: true
        description: Date in YYYY-MM-DD format.
        schema:
          type: string
          format: date
      - name: interval
        in: query
        required: false
        schema:
          type: string
          enum:
          - 15m
          - 1h
          - 1d
      - name: tz
        in: query
        required: false
        schema:
          type: string
      - $ref: '#/components/parameters/Appid'
      responses:
        '200':
          description: Interval data response.
components:
  schemas:
    CreatePanelRequest:
      type: object
      required:
      - type
      - area
      - tilt
      - azimuth
      - peak_power
      properties:
        type:
          type: string
          enum:
          - mono-si
          - poly-si
          - tf-as
          - cdte
        area:
          type: number
          format: float
          description: Panel surface area in square meters.
        tilt:
          type: number
          format: float
          description: Tilt angle in degrees.
        azimuth:
          type: number
          format: float
          description: Azimuth in degrees.
        peak_power:
          type: number
          format: float
          description: Panel peak power output in watts.
    CreateLocationRequest:
      type: object
      required:
      - type
      - coordinates
      properties:
        type:
          type: string
          enum:
          - point
        coordinates:
          type: array
          items:
            type: object
            properties:
              lat:
                type: number
                format: float
              lon:
                type: number
                format: float
  parameters:
    Appid:
      name: appid
      in: query
      required: true
      description: OpenWeather API key.
      schema:
        type: string
  securitySchemes:
    appid:
      type: apiKey
      in: query
      name: appid