---
metadata:
  - name: generator
    content: Diplodoc Platform v5.55.0
alternate:
  - https://yandex.com/dev/market/partner-api/doc/en/concepts/result-format.md
  - https://yandex.com/dev/market/partner-api/doc/ru/concepts/result-format.md
  - https://yandex.com/dev/market/partner-api/doc/zh/concepts/result-format.md
  - href: en/concepts/result-format.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/market/partner-api/doc/en/llms.txt

# Response format

  Yandex Market API   returns responses in UTF-8 encoding. Responses can only be in JSON format.

To set the response format, specify in URL request the selected format after the method name. For example, as a result of executing the following query, you will receive a list of products in the catalog in JSON format:



```no-highlight translate=no
GET https://api.partner.market.yandex.ru/v2/campaigns/{campaignId}/offer-mapping-entries.json
```



You can also specify the response format when calling methods using the HTTP header. `Accept`. Possible header value: `application/json`.

The response format must match [the format of the input data](https://yandex.com/dev/market/partner-api/doc/en/concepts/input-format.md). Therefore, in the title `Accept` or in URL request (extension `.json` ) set the same format as in the header `Content-Type`.

When calling DELETE-the standard format of the result must be specified to ensure compatibility with libraries that are used to work with data.




{% note info "Некоторые системы Маркета убирают пробелы в начале и в конце строки" %}


For example, the string `" example "` can be saved as `"example"`.

If you have lines with such spaces, consider this feature. For example, remove spaces before passing lines to Yandex.Market and before data reconciliation.


{% endnote %}



