---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://yandex.ru/dev/partner-statistics/doc/en/concepts/access.md
  - https://yandex.ru/dev/partner-statistics/doc/ru/concepts/access.md
  - href: https://yandex.ru/dev/partner-statistics/doc/en/concepts/access.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.ru/dev/partner-statistics/doc/en/llms.txt?revision=r21876058
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/partner-statistics/doc/en/llms.txt?revision=r21876058

# Accessing the API

The Yandex Partner interface uses OAuth access tokens to authorize applications. Each token gives the application access to user data. The statistics API and the in-app advertising API use different OAuth tokens:

- To get a token for statistics, use one of the following methods:
    - Follow the [link](https://oauth.yandex.ru/authorize?response_type=token&client_id=da092e6d50b443308da7a28e638070b9) and log in to the account that you registered with in the Yandex Advertising Network.
    - In the Yandex Advertising Network interface, click the **API** icon on the right and select **Receive an OAuth token for the Statistics API**.

- To get a token for in-app advertising, in the Yandex Advertising Network interface, click the **API** icon on the right and select **Receive an OAuth token for the Block Configuration API**.

## Using tokens {#use-tokens}

The tokens received should be passed in every API call.

You can pass the token in the HTTP `Authorization` header and specify its type before the value:
```no-highlight
Authorization: OAuth e78cf1a0ebbb19...
```
