---
metadata:
  - name: generator
    content: Diplodoc Platform v5.46.1
alternate:
  - https://yandex.ru/dev/partner-statistics/doc/en/concepts/method-call.md
  - https://yandex.ru/dev/partner-statistics/doc/ru/concepts/method-call.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/partner-statistics/doc/en/llms.txt

# Calling resources

You can access the API using GET or POST requests over HTTPS.

{% list tabs %}

- GET request format

  ```no-highlight
  GET https://partner.yandex.ru/api/<resource>.<format>?lang=<response_language>&parameters=<other_request_parameters>
  Authorization:<token>
  ```

  Acceptable headers:


  #|
  ||**Name** | **Description**||
  ||`Accept` | Resource format. Acceptable values:

  - text/xml, application/xml
  - text/json, application/json||
  ||`Authorization` | Data for authorization.||
  |#

  Parameters:

  #|
  ||**Parameter** | **Description**||
  ||`<resource>` | The resource whose contents are being requested.||
  ||`<format>` | How to provide the response:

  - XML
  - JSON

  The response format can be set in the HTTP `Accept` header.


  {% note info %}

  By default, the result is output in XML.

  {% endnote %}

  ||
  ||`lang` | Language for responses. Acceptable values:

  - ru — Russian
  - en — English||
  ||`parameters` | Other request parameters, which are listed in the resource descriptions.
  |#


- POST request format

  ```no-highlight
  POST https://partner.yandex.ru/api/<resource>.<format>
  Authorization:<token>
  ```

  Body of the POST request:

  ```no-highlight
  lang=<response_language>&parameters=<other_request_parameters>
  ```

  Acceptable headers:

  #|
  ||**Name** | **Description**||
  ||`Accept` | Resource format. Acceptable values:

  - text/xml, application/xml
  - text/json, application/json||
  ||`Authorization` | Data for authorization.||
  |#

  Parameters:

  #|
  ||**Parameter** | **Description**||
  ||`<resource>` | The resource whose contents are being requested.||
  ||`<format>` | How to provide the response:

  - XML
  - JSON

  The response format can be set in the HTTP `Accept` header.


  {% note info %}

  By default, the result is output in XML.

  {% endnote %}

  ||
  ||`lang` | Language for responses. Acceptable values:

  - ru — Russian
  - en — English||
  ||`parameters` | Other request parameters, which are listed in the resource descriptions.||
  |#

{% endlist %}
