---
title: Get Chart Raw JSON
description: Get raw chart data as JSON
url: https://docs.intuition.systems/docs/v1/graphql-api/queries/charts/chart-raw-json
markdown_url: https://docs.intuition.systems/docs/v1/graphql-api/queries/charts/chart-raw-json.md
version: V1
llms_index: https://docs.intuition.systems/docs/v1/llms.txt
---

Retrieve raw chart data in JSON format. Uses the same input and output types as `getChartJson`.

## Get Chart Raw JSON - Query Structure

```graphql
query GetChartRawJson($input: GetChartJsonInput!) {
  getChartRawJson(input: $input) {
    term_id
    curve_id
    graph_type
    interval
    count
    data {
      timestamp
      value
    }
  }
}
```

## Variables

Same as [`getChartJson`](https://docs.intuition.systems/docs/v1/graphql-api/queries/charts/chart-json) -- takes `GetChartJsonInput`:

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `term_id` | `String` | Yes | Term ID to query |
| `curve_id` | `String` | Yes | Curve ID (bonding curve) |
| `interval` | `String` | Yes | Time interval (e.g. `"1h"`, `"1d"`) |
| `start_time` | `String` | Yes | Start of time range (ISO 8601) |
| `end_time` | `String` | Yes | End of time range (ISO 8601) |
| `graph_type` | `String` | No | Type of graph data |

```json
{
  "input": {
    "term_id": "0x906527aae4af914b1ac01ff9adfdda5dafde3b5e21f84045e0660b0a15c07769",
    "curve_id": "1",
    "interval": "1d",
    "start_time": "2024-01-01T00:00:00Z",
    "end_time": "2024-01-31T23:59:59Z"
  }
}
```

## Response Fields (`ChartDataOutput`)

| Field | Type | Description |
|-------|------|-------------|
| `term_id` | `String!` | Term ID for this chart |
| `curve_id` | `String` | Curve ID used |
| `graph_type` | `String!` | Type of graph |
| `interval` | `String!` | Interval used |
| `count` | `Int!` | Number of data points |
| `data` | `[ChartDataPoint!]!` | Array of data points (`timestamp: String!`, `value: String!`) |

## Related

- [Chart JSON](https://docs.intuition.systems/docs/v1/graphql-api/queries/charts/chart-json) - Formatted chart data (same types)
- [Chart SVG](https://docs.intuition.systems/docs/v1/graphql-api/queries/charts/chart-svg) - Pre-rendered charts
