---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.1
alternate:
  - https://yandex.com/dev/metrika/en/stat/direct-clicks.md
  - https://yandex.com/dev/metrika/ru/stat/direct-clicks.md
  - href: en/stat/direct-clicks.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/metrika/en/llms.txt

# Yandex Direct — costs

You can use the Yandex Metrica API to generate a [report with data on the quantity and cost of clicks](https://yandex.com/support/metrika/sources/direct-clicks.html) on Yandex Direct ads. To create this report, you need access to the Yandex Direct campaigns that you want to get information about. The request must specify the [direct_client_logins](#direct-client) parameter and use a specific set of [dimensions](https://yandex.com/dev/metrika/en/stat/attributes/advertising/direct_advertising.md) and [metrics](https://yandex.com/dev/metrika/en/stat/metrics/advertising/basic.md).

You can supplement the report with additional information by using the appropriate dimensions and metrics (for example, you may include bounces or session depth). You can also use other Yandex Metrica features, such as segmentation and sampling.

## More information about direct_client_logins {#direct-client}

This is the login of the Yandex Direct client's chief representative whose campaigns can be accessed by the owner of the Yandex Metrica tag.

You can retrieve a list of accounts (`ids`) with access to a specific Yandex Metrica tag using [this request](https://yandex.com/dev/metrika/en/management/openapi/clients/getClients.md).

When getting data for a report, you can specify multiple accounts in the request, separating usernames with commas (`direct_client_logins=XXXXXX,YYYYYY,ZZZZZZ`).

## Sample request

```httpget translate=no
curl -H "Authorization: OAuth y0_XXX...XXX" "https://api-metrika.yandex.net/stat/v1/data?date1=2015-11-08&date2=2015-12-09&dimensions=ym%3Aad%3AdirectOrder&ids=2138128&direct_client_logins=wildberries1%2COzon1112006&metrics=ym%3Aad%3Avisits"
```

## Learn more

- [Presets](https://yandex.com/dev/metrika/en/stat/presets.md)
