Calling resources

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

GET https://partner2.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

Authorization data.

Parameters:

Parameter

Description

<resource>

The resource whose content is requested.

<format>

Response format:

  • XML
  • JSON

The response format can be specified in the Accept HTTP header.

Note

By default, the response is output in XML.

lang

The language of responses. Acceptable values:

  • ru — Russian
  • en — English

parameters

Other request parameters listed in the resource descriptions.

POST https://partner2.yandex.ru/api/<resource>.<format>
Authorization:<token>

POST request body:

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 | Authorization data.

Parameters:

Parameter

Description

<resource>

The resource whose content is requested.

<format>

Response format:

  • XML
  • JSON

The response format can be specified in the Accept HTTP header.

Note

By default, the response is output in XML.

lang

The language of responses. Acceptable values:

  • ru — Russian
  • en — English

parameters

Other request parameters listed in the resource descriptions.