This guide explains how to use the Yandex Market API specification for sellers, designed to automate and streamline interactions with the marketplace.
The OpenAPI specification enables you to generate client libraries in various programming languages and frameworks supported by the OpenAPI generator, simplifying your integration with Yandex Market's API.
Choose one of these two methods:
- Clone the repository by executing the following command:
git clone https://github.com/yandex-market/yandex-market-partner-api.git
. - Download the archive from the repository using the GitHub web interface: click the green
Code
button and selectDownload ZIP
rom the dropdown menu.
Refer to the generator documentation: https://openapi-generator.tech/docs/installation
Using npm (any OS)
npm install @openapitools/openapi-generator-cli -g
Using Homebrew (macOS)
brew install openapi-generator
Using Scoop (Windows)
scoop install openapi-generator-cli
Using npm (any OS)
npx @openapitools/openapi-generator-cli generate -i <path to openapi.yaml> -g <lang> -o <output path>
Using other package managers
openapi-generator generate -i <path to openapi.yaml> -g <generator> -o <output path>
Explanation of placeholders:
<generator>
means the generator parameter for the chosen language or framework.<output path>
means the directory where the generated client code will be saved.<path to openapi.yaml>
means the path to the openapi.yaml file of this specification.
Examples of available generators include:
- go
- java
- javascript
- kotlin
- php
- python
- ruby
For a complete list of generators, visit: https://openapi-generator.tech/docs/generators