Metal Radar Docs
Widget

Get widgets

Widgets are groups of datapoints and can be managed in the frontend using your developer account.

GET
/v3/widget/{ids}

Authorization

AuthorizationRequiredBearer <token>

In: header

Path Parameters

idsRequiredstring

Comma separated list of widget ids.

Query Parameters

mapboolean

Indicates if map should be returned

Default: false

Response Body

TypeScript Definitions

Use the response body type in TypeScript.

dataRequiredarray<WidgetDataOut>
mapWidgetDataMapOut
curl -X GET "https://api.metalradar.com/v3/widget/string?map=false" \
  -H "Authorization: Bearer <token>"
{
  "data": [
    {
      "id": "string",
      "name": "string",
      "owner": "string",
      "contracts": [
        {
          "contract": "string",
          "fields": {
            "property1": "string",
            "property2": "string"
          }
        }
      ]
    }
  ],
  "map": {
    "contracts": [
      {
        "fields": {
          "property1": {
            "delay": "RT",
            "unit": {
              "numerator": "string",
              "denominator": "string"
            }
          },
          "property2": {
            "delay": "RT",
            "unit": {
              "numerator": "string",
              "denominator": "string"
            }
          }
        }
      }
    ]
  }
}