Yandex Cloud
Поиск
Связаться с экспертомПопробовать бесплатно
  • Кейсы
  • Документация
  • Блог
  • Все сервисы
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Router
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Managed Service for YDB
    • SpeechKit
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • Container Registry
    • Managed Service for Prometheus®
    • Message Queue
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Cloud Apps
    • Yandex AI Studio
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Yandex Cloud Video
    • Stackland
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • DataSphere
    • Vision OCR
    • Translate
    • SmartCaptcha
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Managed Service for GitLab
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • IoT Core
    • Serverless Containers
    • Cloud Notification Service
  • Статус работы сервисов
  • Marketplace
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Искусственный интеллект
    • Безопасность
    • Инструменты DevOps
    • Бессерверные вычисления
    • Управление ресурсами
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
  • Кейсы
  • Документация
  • Блог
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»
Yandex DataLens
RU
  • Галерея в 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
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»