[Yandex Cloud documentation](../../../index.md) > [All solutions](../../index.md) > [DataLens](../index.md) > How to access Yandex Direct from DataLens

# How to access Yandex Direct from DataLens


## Case description {#case-description}

You need to set up access to Yandex Direct data in DataLens.

## Solution {#case-resolution}

You can use [Cloud Functions](../../../functions/quickstart/index.md) to request data from the [Yandex Direct API](https://yandex.com/dev/direct/#start).

To do this, create a function that saves Yandex Direct data to an intermediate database, such as a [Yandex Managed Service for ClickHouse®](../../../managed-clickhouse/quickstart.md) cluster. After that, [set up a connection](../../../datalens/operations/connection/create-clickhouse.md) to this database from DataLens.