Yandex.Market's recommendations regarding prices
The method is available for all models.
Not yet available for Market Yandex Go sellers.
If you are using an API Key token, one of the accesses in the list is required to call the method
- pricing — Manage prices
- pricing:read-only — View prices
- all-methods — Full account management
- all-methods:read-only — View all data
The method returns several types of recommendations.
- The threshold for an attractive price.
- Evaluation of the attractiveness of prices in the showcase.
The recommendations show you what prices you need to set in order to attract a buyer.
Filters can be used in the request. The results are returned page by page.
, Limit: 100 requests per minute |
---|
Request
POST
https://api.partner.market.yandex.ru/businesses/{businessId}/offers/recommendations
Path parameters
Name |
Description |
businessId* |
Type: integer<int64> Cabinet ID. To find out, use the request GET campaigns. ℹ️ What is a cabinet and a store on the Market?
Min value: |
Query parameters
Name |
Description |
limit |
Type: integer<int32> The number of values per page.
Min value: |
page_token |
Type: string ID of the results page. If the parameter is omitted, the first page is returned. We recommend transmitting the value of the output parameter If set |
Body
application/json
{
"offerIds": [
"string"
],
"competitivenessFilter": "OPTIMAL"
}
Name |
Description |
competitivenessFilter |
Type: PriceCompetitivenessType A filter that displays products with attractive, moderate, and unattractive prices. Enum: |
offerIds |
Type: string[] The IDs of the products that information is needed about. , Do not use this field at the same time as the other filters. If you want to use filters, leave the field empty. SKU Usage Rules:
The SKU of the product can be changed in the seller's account on the Market. Read about how to do this. in the Help of the Market for sellers. What is a SKU and how to assign it Min length: Max length: Pattern: Min items: Unique items |
PriceCompetitivenessType
The attractiveness of the price:
OPTIMAL
— attractive.AVERAGE
— moderate.LOW
"Unattractive."
Type |
Description |
Enum: |
Responses
200 OK
A list of products with recommendations.
Body
application/json
{
"status": "OK",
"result": {
"paging": {
"nextPageToken": "string",
"prevPageToken": "string"
},
"offerRecommendations": [
{
"offer": {
"offerId": "string",
"price": {
"value": 0,
"currencyId": "RUR"
},
"competitiveness": "OPTIMAL",
"shows": 0
},
"recommendation": {
"offerId": "string",
"competitivenessThresholds": {
"optimalPrice": {
"value": 0,
"currencyId": "RUR"
},
"averagePrice": {
"value": 0,
"currencyId": "RUR"
}
}
}
}
]
}
}
Name |
Description |
result |
Type: OfferRecommendationsResultDTO A list of products with recommendations. |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
OfferRecommendationsResultDTO
A list of products with recommendations.
Name |
Description |
offerRecommendations* |
Type: OfferRecommendationDTO[] The product list page. |
paging |
Type: ScrollingPagerDTO Information about the result pages. |
ApiResponseStatusType
The type of response. Possible values:
OK
— there are no mistakes.ERROR
— an error occurred while processing the request.
Type |
Description |
Enum: |
OfferRecommendationDTO
Information about the price status and recommendations.
Name |
Description |
offer |
Type: OfferForRecommendationDTO Information about the price status. |
recommendation |
Type: OfferRecommendationInfoDTO Recommendations. |
ScrollingPagerDTO
Information about the result pages.
Name |
Description |
nextPageToken |
Type: string ID of the next results page. |
prevPageToken |
Type: string ID of the previous results page. |
OfferForRecommendationDTO
Information about the price status of the product.
Name |
Description |
competitiveness |
Type: PriceCompetitivenessType The attractiveness of the product price. Enum: |
offerId |
Type: string Your SKU is the product identifier in your system. SKU Usage Rules:
The SKU of the product can be changed in the seller's account on the Market. Read about how to do this. in the Help of the Market for sellers. What is a SKU and how to assign it Min length: Max length: Pattern: |
price |
Type: BasePriceDTO The price of the product. |
shows |
Type: integer<int64> The number of product card impressions in the last 7 days. |
OfferRecommendationInfoDTO
Recommendations regarding the price of the product.
Name |
Description |
competitivenessThresholds |
Type: PriceCompetitivenessThresholdsDTO The maximum price values at which it is attractive or moderate. |
offerId |
Type: string Your SKU is the product identifier in your system. SKU Usage Rules:
The SKU of the product can be changed in the seller's account on the Market. Read about how to do this. in the Help of the Market for sellers. What is a SKU and how to assign it Min length: Max length: Pattern: |
BasePriceDTO
The price of the product.
Name |
Description |
currencyId* |
Type: CurrencyType Currency. Enum: |
value* |
Type: number The price of the product. Min value (exclusive): |
PriceCompetitivenessThresholdsDTO
The maximum price values at which it is attractive or moderate.
Name |
Description |
averagePrice |
Type: BasePriceDTO The price of the product. |
optimalPrice |
Type: BasePriceDTO The price of the product. |
CurrencyType
Currency codes:
RUR
— Russian ruble.UAH
— the Ukrainian hryvnia.BYR
— Belarusian ruble.KZT
— Kazakhstani tenge.UZS
— Uzbek sum.
Type |
Description |
Enum: |
400 Bad Request
The request contains incorrect data. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
ApiErrorDTO
The general error format.
Name |
Description |
code* |
Type: string The error code. |
message |
Type: string Description of the error. |
401 Unauthorized
The authorization data is not specified in the request. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
403 Forbidden
The authorization data is incorrect or access to the resource is prohibited. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
404 Not Found
The requested resource was not found. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
420 Method Failure
The resource access limit has been exceeded. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
500 Internal Server Error
Internal error of Yandex. Market. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
No longer supported, please use an alternative and newer version.
If you have such a price set or lower, it is considered attractive.