Skip to main content
GET
/
api
/
external
/
charts
/
{chart_id}
Get Chart
curl --request GET \
  --url https://backend.nebuly.com/api/external/charts/{chart_id} \
  --header 'Authorization: Bearer <token>'
{
  "chart": {
    "type": "<string>",
    "id": "<string>",
    "name": "<string>",
    "variables": [
      "<string>"
    ],
    "visualization_type": {},
    "display_type": {},
    "x_label_values": [
      "<string>"
    ],
    "breakdown": {},
    "granularity": {},
    "time_range": {
      "kind": "<string>",
      "start": "<string>",
      "end": "<string>"
    },
    "data": [
      {
        "label": "<string>",
        "data": [
          {
            "x": 123,
            "y": {},
            "user": {}
          }
        ]
      }
    ],
    "breakdowns": [
      "<string>"
    ],
    "columns": [
      "<string>"
    ],
    "rows": [
      {}
    ]
  }
}
Returns the data for a single chart by ID.
Chart IDs are returned by the Get Report Data endpoint inside each report’s charts array.
You need a public API key (pk-...) to authenticate. See here for more information about API keys.

Path parameters

chart_id
string
required
The UUID of the chart.

Response

chart
object
The chart data. The shape depends on the chart type, identified by the type field.Analytics chartTable chart