All articles

Insights

How to pipe solar monitoring data into a data warehouse via API for portfolio analytics

What to pull, how to authenticate, load only new data, schedule refreshes and normalise across brands, with the AMMP Data API as the example.

Andreas Lehner, CCO · 2 min read

Published

Solar panels sending streams of data into a stacked database

Monitoring software is built to run sites. Portfolio analytics often needs more: joining energy data with finance, contracts or forecasts in your own data warehouse. This guide shows the usual way to pipe solar monitoring data into a warehouse through an API, using the AMMP Data API as the example.

Why pull data into a warehouse

  • Join site data with data that lives elsewhere, such as finance or asset registers.
  • Run your own models and dashboards in the tools your analysts already use.
  • Keep a long history in one place, on your own schedule.

Step 1: Decide what to pull

Start small. Most portfolio analytics needs three kinds of data:

  • Site and device metadata: names, locations, capacity and which devices belong to which site.
  • Energy: historic energy and power for each site and device.
  • KPIs: values such as performance ratio and availability, calculated the same way for every site.

The endpoints for each are listed in the AMMP Data API docs. AMMP calculates KPIs the same way across brands, as described in KPI calculations.

Step 2: Get an API key and request a token

The AMMP Data API is a REST API. You create an API key in AMMP, then send it to the token endpoint to get a token. Every data request uses that token. Tokens expire, so your loader should request a new one at the start of each run.

Step 3: Run a first full load

Load the metadata first, then the history you need for each site. Store the raw responses as well as your cleaned tables, so you can rebuild the tables later without calling the API again.

Step 4: Load only new data after that

After the first load, ask only for the period since the last successful run. Keep a small table with the last timestamp loaded per site. Re-load a short overlap, such as the last day, because late data can still arrive from sites with poor connectivity.

Step 5: Schedule the refresh

Run the loader on a schedule that matches how you use the data: daily for most portfolio reporting. Request the token first, then the data. Log each run and alert someone when a run fails.

Step 6: Normalise across brands

Different inverter brands name and report values differently. Pulling from one platform that already maps every brand into one data model saves most of this work. Keep units, time zones and site identifiers consistent in your warehouse.

Where the MCP server fits

A warehouse suits planned analytics. For one-off questions, the AMMP MCP server lets AI assistants such as Claude or ChatGPT read the same portfolio data directly, with the same permissions as the connected user.

No warehouse yet? The Excel and Google Sheets guide shows how to pull Data API results into a spreadsheet. AMMP connects 30+ integrations; see integrations.

Frequently asked questions

Does AMMP have an API for solar monitoring data?

Yes. The AMMP Data API is a REST API. You create an API key, request a token from the token endpoint, then call the data endpoints listed in the Data API docs.

How often should I load data into my warehouse?

Daily suits most portfolio reporting. Load only new data after the first full load, with a short overlap for late data.

When should I use the MCP server instead?

Use the MCP server for one-off questions from AI assistants such as Claude or ChatGPT. Use the warehouse for planned analytics and long history.

Move from visibility to action

Ready to put your portfolio data to work?