---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.ru/dev/market/partner-api/doc/en/concepts/openapi.md
  - https://yandex.ru/dev/market/partner-api/doc/ru/concepts/openapi.md
  - https://yandex.ru/dev/market/partner-api/doc/zh/concepts/openapi.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/market/partner-api/doc/en/llms.txt

# Specification OpenAPI

Specification OpenAPI for queries   Store to Market   available [on GitHub](https://github.com/yandex-market/yandex-market-partner-api). You can use it to simplify and speed up integration development.



## How to generate a client Yandex Market API for sellers {#how-to}



The specification will help you generate client files in any language or framework that it supports. OpenAPI- the generator. This can greatly simplify integration with   By Yandex Market   via the API.

### Get the specification via git {#git}

There are two ways:

1. Run the command `git clone https://github.com/yandex-market/yandex-market-partner-api.git`
2. Download the archive from the repository via GitHub web UI: Click the green button in the upper-right corner `Code` and in the drop-down list, select `Download ZIP`.

### Installation OpenAPI-generator via package managers {#package-managers}

Generator documentation: <https://openapi-generator.tech/docs/installation>

**For npm (any OS)**
`npm install @openapitools/openapi-generator-cli -g`

**For Homebrew (macOS)**
`brew install openapi-generator`

**For Scoop (Windows)**
`scoop install openapi-generator-cli`

### Customer Generation {#client-generation}

**For npm (any OS)**

```no-highlight translate=no
npx @openapitools/openapi-generator-cli generate -i <path_to_openapi.yaml> -g <lang> -o <output_path>
```

**For other package managers**

```no-highlight translate=no
openapi-generator generate -i <path_to_openapi.yaml> -g <lang> -o <output_path>
```

The values of the query parts:

`<lang>` — generator parameter for the selected language or framework.

`<output_path>` — the output directory where the generated client code will be placed.

`<path_to_openapi.yaml>` — file path openapi.yaml of this specification.

Examples of generators:

* go
* java
* javascript
* kotlin
* php
* python
* ruby

The full list of generators is available at: <https://openapi-generator.tech/docs/generators>
