Organization plan

MetalAlert data in Excel and the API

Pull the current probabilities and the price history into a workbook that refreshes on demand, or read them from your own systems. API access is included in the Organization plan.

How it works

An administrator of your organization creates an API key in the MetalAlert app (Account, then API & Excel). A workbook uses that key to read the data through Excel's Power Query, so a refresh brings in the latest numbers without copying anything by hand. Data is updated on weekdays.

Set up in Excel

  1. In the app, open Account, then API & Excel, and create a key. Name it after the workbook or team that will use it. The key is shown once.
  2. In Excel, choose Data, Get Data, From Other Sources, Blank Query, then Advanced Editor.
  3. Paste the recipe below, replace PASTE-YOUR-KEY-HERE with your key, and choose Done. If Excel asks how to connect, pick Anonymous: the key is sent in the request header.
  4. Choose Close & Load. Use Refresh any time for the latest data.
let
    Key = "PASTE-YOUR-KEY-HERE",
    Source = Csv.Document(
        Web.Contents("https://api.metalalert.ai/api/v1/signals", [Headers = [Authorization = "Bearer " & Key], Query = [format = "csv"]]),
        [Delimiter = ",", Encoding = 65001]
    ),
    Promoted = Table.PromoteHeaders(Source, [PromoteAllScalars = true]),
    Typed = Table.TransformColumnTypes(Promoted, {{"probability", type number}, {"threshold_pct", Int64.Type}, {"horizon_months", Int64.Type}})
in
    Typed

The app shows the same recipe with your new key already filled in.

What you can read

Base address: https://api.metalalert.ai/api/v1. Add format=csv for CSV (best for Excel); the default is JSON.

Dates are written as YYYY-MM-DD. A request returns at most 20,000 rows; for CSV the response header X-Next-Offset gives the offset to request the next page. The machine-readable description is at /api/v1/openapi.json.

Using the API from your own systems

Send the key in the Authorization header on every request:

curl -H "Authorization: Bearer YOUR-KEY" "https://api.metalalert.ai/api/v1/signals?format=csv"

Limits and keeping keys safe

Not on the Organization plan yet?

Join as a beta tester or book a walkthrough, and tell us your team wants API and Excel access.

Join as a beta tester Book a walkthrough