Yandex Cloud
КейсыДокументация
ПрезентацияСвязаться с намиНачать бесплатно
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»
Yandex DataLens
  • Галерея в DataLens
    • Как пользоваться Public API
    • Версионирование
    • История изменений
      • Overview
        • Overview
        • 🚧 [Experimental] Get dataset data
        • 🚧 [Experimental] Get chart data
  • Аудитные логи Audit Trails

В этой статье:

  • Request
  • Headers
  • Body
  • Responses
  • 200 OK
  • Body
  • GetWizardChartDataResult
  • GetQLChartDataResult
  • GetEditorChartDataResult
  1. DataLens Public API
  2. DataLens API (англ.)
  3. Data
  4. 🚧 [Experimental] Get chart data
Статья создана
Yandex Cloud
Открыть в Markdown
  • Request
    • Headers
    • Body
  • Responses
  • 200 OK
    • Body
    • GetWizardChartDataResult
    • GetQLChartDataResult
    • GetEditorChartDataResult

🚧 [Experimental] Get chart data

Runs a saved Wizard, QL, or Editor chart with the supplied parameters and returns flat tables. Pivot tables are not supported. Editor charts require Editor.setRawData(). Large integers in Wizard results may lose precision. Limits across all results: 100000 rows, 100000 cells, 1000 tables and 100000 schema columns; up to 800 columns per table. Exceeding a limit returns HTTP 422; results are not truncated.

RequestRequest

POST

https://api.datalens.tech/rpc/getChartData

HeadersHeaders

Name

Description

x-dl-api-version

Type: string

API version header.

Const: 3

Example: 3

BodyBody

application/json
{
  "chartId": "example",
  "params": {}
}

Name

Description

chartId

Type: string

Saved chart ID.

Min length: 1

Example: example

params

Type: object

[additional]

Any of 2 types
  • Type: string

    Example: example

  • Type: string[]

    Example
    [
      "example"
    ]
    

Example: example

Chart parameters, including table pagination. Saved chart settings apply.

Example
{}

ResponsesResponses

200 OK200 OK

Response

BodyBody

application/json
{
  "chartType": "wizard",
  "results": [
    {
      "schema": [
        {}
      ],
      "rows": [
        [
          null
        ]
      ]
    }
  ]
}
One of 3 types
  • Type: GetWizardChartDataResult

    Example
    {
      "chartType": "wizard",
      "results": [
        {
          "schema": [
            {
              "name": "example",
              "guid": "example",
              "type": "date"
            }
          ],
          "rows": [
            [
              null
            ]
          ]
        }
      ]
    }
    
  • Type: GetQLChartDataResult

    Example
    {
      "chartType": "ql",
      "results": [
        {
          "schema": [
            {
              "name": "example",
              "type": "example"
            }
          ],
          "rows": [
            [
              null
            ]
          ]
        }
      ]
    }
    
  • Type: GetEditorChartDataResult

    Example
    {
      "chartType": "editor",
      "results": [
        {
          "schema": [
            {
              "name": "example"
            }
          ],
          "rows": [
            [
              null
            ]
          ]
        }
      ]
    }
    

GetWizardChartDataResultGetWizardChartDataResult

Name

Description

chartType

Type: string

Const: wizard

Example: example

results

Type: object[]

rows

Type: unknown[][]

Values ordered according to schema.

Example
[
  [
    null
  ]
]

schema

Type: object[]

name

Type: string

Example: example

type

Type: string

Enum: date, genericdatetime, datetimetz, integer, uinteger, string, float, boolean, geopoint, geopolygon, markup, heatmap, array_int, array_float, array_str, unsupported, hierarchy, tree_str, tree_int, tree_float

guid

Type: string

Field GUID, when provided by the source.

Example: example

Columns in row value order.

Example
[
  {
    "name": "example",
    "guid": "example",
    "type": "date"
  }
]

Tables in query and block order. Results with different schemas are returned separately.

Example
[
  {
    "schema": [
      {
        "name": "example",
        "guid": "example",
        "type": "date"
      }
    ],
    "rows": [
      [
        null
      ]
    ]
  }
]
Example
{
  "chartType": "wizard",
  "results": [
    {
      "schema": [
        {
          "name": "example",
          "guid": "example",
          "type": "date"
        }
      ],
      "rows": [
        [
          null
        ]
      ]
    }
  ]
}

GetQLChartDataResultGetQLChartDataResult

Name

Description

chartType

Type: string

Const: ql

Example: example

results

Type: object[]

rows

Type: unknown[][]

Values ordered according to schema.

Example
[
  [
    null
  ]
]

schema

Type: object[]

name

Type: string

Example: example

type

Type: string

QL value type, for example "number" or "string". Numeric values may be returned as strings.

Example: example

Columns in row value order.

Example
[
  {
    "name": "example",
    "type": "example"
  }
]

Tables in query and block order. Results with different schemas are returned separately.

Example
[
  {
    "schema": [
      {
        "name": "example",
        "type": "example"
      }
    ],
    "rows": [
      [
        null
      ]
    ]
  }
]
Example
{
  "chartType": "ql",
  "results": [
    {
      "schema": [
        {
          "name": "example",
          "type": "example"
        }
      ],
      "rows": [
        [
          null
        ]
      ]
    }
  ]
}

GetEditorChartDataResultGetEditorChartDataResult

Name

Description

chartType

Type: string

Const: editor

Example: example

results

Type: object[]

rows

Type: unknown[][]

Values ordered according to schema.

Example
[
  [
    null
  ]
]

schema

Type: object[]

name

Type: string

Example: example

Columns in row value order.

Example
[
  {
    "name": "example"
  }
]

Tables in query and block order. Results with different schemas are returned separately.

Example
[
  {
    "schema": [
      {
        "name": "example"
      }
    ],
    "rows": [
      [
        null
      ]
    ]
  }
]
Example
{
  "chartType": "editor",
  "results": [
    {
      "schema": [
        {
          "name": "example"
        }
      ],
      "rows": [
        [
          null
        ]
      ]
    }
  ]
}

Была ли статья полезна?

Предыдущая
🚧 [Experimental] Get dataset data
Следующая
Overview
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»