Yandex Metrica Logs API
Renta allows you to sync raw Yandex Metrica data collected through the Logs API to your data warehouse: non-aggregated session records (visits) and event records (hits), including traffic sources, UTM tags, Yandex Direct click data, device and geography attributes, goals, and e-commerce fields.
Authentication
Renta uses OAuth to authenticate with Yandex. You will be redirected to Yandex to grant Renta limited access to your Yandex Metrica counters.
Your credentials are encrypted in transit and at rest, and never stored in Renta's application database. You stay in control and can revoke access from your Yandex account settings at any time.
Connect Yandex Metrica Logs API source
Follow these steps to add Yandex Metrica Logs API as a source in Renta using OAuth authentication.
- Navigate to the Connections > Catalog section in the left sidebar.
- Open the Analytics category and click the Yandex Metrica Logs API card.

Click Log in to your Yandex Metrica Logs API account. You will be redirected to Yandex to grant access.

Yandex shows the sign-in screen with the list of permissions Renta requests, including reading statistics of your own and delegated counters. Choose the account that has access to your Yandex Metrica counters and confirm. After that you are redirected back to Renta.

Finish the setup:
- Source name.
Specify a name for this data source. This is used exclusively in the Renta interface. - Access granted.
Verify that the account is connected successfully.
Click Save to finish.
If your Yandex authorization later changes (for example, after a password change), click Re-authorize on this source. The connection refreshes in place and every pipeline built on it keeps running.

The new source appears in the Sources list with the Active status. You can now use it in pipelines.

Create a pipeline
Once the source is connected, create a pipeline to sync your Yandex Metrica Logs API data into your destination.
Create a Yandex Metrica Logs API pipeline
Link your Yandex Metrica Logs API source to a destination and configure the pipeline.
In the left sidebar, click New pipeline. On the Source step, select Yandex Metrica Logs API under Already connected and click Next step.

Choose the Yandex Metrica Logs API connection you created earlier and click Next step.

On the Destination step, select your destination (for example, Google BigQuery) and click Next step.

Choose the destination connection you want to load data into and click Next step.

Pipeline configuration
On the final step, choose which Yandex Metrica data to export and how Renta loads it.
Report configuration
Point the pipeline at the counter and choose the report type.

- Ad accounts.
Choose the Yandex Metrica counter to export data from. The list contains the counters available to the connected Yandex account. - Report Types.
Choose the type of raw data to export.
| Report type | Description |
|---|---|
| Visits | One row per session. Fields cover session identifiers, date and time, entrance and exit pages, traffic sources and UTM tags, Yandex Direct click data, device, browser, and geography attributes, goals, e-commerce purchases and products, and offline calls. |
| Hits | One row per event (page view). Fields cover the page URL and title, referer, UTM tags, device, browser, and screen attributes, geography, and flags such as link clicks, file downloads, and page view markers. |
Parameters
Select the Logs API fields to include in the destination table. Your dataset schema is defined by the parameters you choose here.

The Parameters list shows every field available for the selected report type: over 130 session fields for Visits and over 80 event fields for Hits. With more than a hundred fields in the list, search saves the scrolling. Select All checks the whole list.
Renta also adds date fields to the list: date, year, quarter, month, week, and day fields that are calculated from the session or event date.
Fields that depend on the attribution model (traffic source, UTM tags, and Yandex Direct click fields) appear in the list as separate variants for each model: last significant source, first source, last source, and others. Pick the variants for the attribution model you use.
In the destination table, column names repeat the API names of the fields without the ym:s: and ym:pv: prefixes: ym:s:visitID becomes visitID.
Include the Date parameter in the report. With it, the destination table is partitioned by the date column and Renta loads data incrementally. It also enables the Overwrite period setting, which appears below the date range once Date is selected. Without it, Renta reloads the whole date range on every run.
Table name and date range
Name the pipeline and set the historical period to load.

- Integration name.
The name of the pipeline. It is used exclusively in the Renta interface. - Table name.
The destination table name. You can keep the auto-generated name or enter your own. - Date start.
The first date of the extraction period. - Date end.
The last date of the extraction period. Set it to Yesterday.
The Logs API provides data only for fully completed days, so the end of the period must be earlier than the current date. With Date end set to Today, pipeline creation fails with a validation error.
When you create the pipeline, Renta validates the configuration against the Logs API: it checks that the counter can prepare a log for the requested period and the selected fields. The Logs API accepts periods of up to one year per request, and the exact limit depends on the amount of data in the counter. If the period is too large, you get a validation error: shorten the date range and try again.
Overwrite period
The overwrite period defines how many recent days Renta reloads on every run. The setting appears once the Date parameter is selected.
On each run, Renta re-fetches the data starting from the date of the last successful run minus the overwrite period. The affected days are deleted from the destination table and inserted again, while older data stays untouched. The options range from Without overwrite data to Overwrite all data; the default is Last 1 day.
Yandex Metrica keeps updating session data for some time after the visit: about 99% of sessions are finalized within 3 days. Set the overwrite period to at least Last 3 days to capture the late updates.
Schedule
Choose how often the pipeline runs.

| Schedule type | Description |
|---|---|
| Manual | The pipeline runs only when triggered manually through the interface or via API. |
| Daily | The pipeline runs once a day at the specified update time. |
| Interval | The pipeline runs at specified time intervals. |
| Cron Expression | The pipeline runs on a schedule defined by a cron expression. |
For Daily schedules, set the Update time, the exact time each run starts, then click Create pipeline.

Renta also supports API triggers and integration with external orchestrators such as Apache Airflow, Dagster, and Prefect. See the full scheduling documentation for details.
The new pipeline appears in the Pipelines section under the ETL tab, where you can track its runs, progress, and the destination table name.

How the export works
Log data is prepared on the Yandex side, so each run goes through several steps.
- Renta creates a log request on the counter for the export window and the selected fields.
- Yandex prepares the log asynchronously. Renta waits for the request to be processed, checking its status for up to 60 minutes.
- Renta downloads all parts of the prepared log and loads them into the destination.
- Renta deletes the prepared log request from the counter, so prepared logs do not pile up and spend the counter's 10 GB limit.
Sync strategy
The synchronization strategy depends on whether the report includes the Date parameter.
| Strategy | Supported report types | Description |
|---|---|---|
| Incremental | Visits and Hits reports that include the Date parameter | Each row carries its date, and the destination table is partitioned by the date column. On every run Renta requests a new log for the window from the last successful run minus the overwrite period to the end of the date range: the affected daily partitions are deleted and inserted again, and older partitions stay untouched. |
| Full reload | Visits and Hits reports without the Date parameter | The table has no date column to partition by, so Renta requests a log for the whole configured date range and replaces the dataset on every run. |
Changing the selected parameters updates the table schema, so the next run after the change reloads the entire date range.
Ready to get started?
Build your data pipeline today or get a personalized demo. Start free!
Need help?
Get expert support to ensure your project succeeds. We're here to help!
Feature requests?
Help shape our product! Share your ideas for new features and integrations.