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