产品型号搜索
方法适用于模式DBS.
目前不适用于卖家Market Yandex Go.
如果您使用API-Key令牌,调用该方法时需要具备列表中可用权限之一
返回有关满足查询中指定的搜索条件的模型的信息。
您可以在一次请求中获取多达100个型号的信息。
对于方法 GET v2/models, GET v2/models/{modelId} 和 POST v2/models 组资源限制生效。 该限制是对模型的总数施加的,使用这些方法请求的信息。
| ⚙️ 限制: 每小时100,000个型号 |
|---|
Request
GET
https://api.partner.market.yandex.ru/v2/models
Query parameters
|
Name |
Description |
|
query* |
Type: string 产品型号名称的搜索查询。 |
|
regionId* |
Type: integer<int64> 区域的ID。 您可以使用请求获取区域ID GET v2/regions. |
|
currency |
Type: string 在搜索结果页面上显示报价的货币。 可能的值:
默认值:使用商店的国家货币(商店原产国的国家货币)。
Enum: |
|
page |
Type: integer<int32> 如果方法有 用它代替参数 结果页的编号。 与参数一起使用
Default: Max value: |
|
pageSize |
Type: integer<int32> 页面大小。 与参数一起使用
|
Responses
200 OK
有关模型的信息。
Body
application/json
{
"models": [
{
"id": 0,
"name": "string",
"prices": {
"avg": 0,
"max": 0,
"min": 0
}
}
],
"currency": "RUR",
"regionId": 0,
"pager": {
"total": 0,
"from": 0,
"to": 0,
"currentPage": 0,
"pagesCount": 0,
"pageSize": 0
}
}
|
Name |
Description |
||||||||||||
|
currency |
Type: string 货币代码:
Enum: |
||||||||||||
|
models |
Type: object[] 产品型号列表。 |
||||||||||||
|
pager |
Type: object
分页的模型。 |
||||||||||||
|
regionId |
Type: integer<int64> 显示模型提供信息(传递到该区域)的区域的ID。 可通过请求获取有关区域的ID信息。 GET v2/regions/{regionId}. |
400 Bad Request
请求包含不正确的数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
401 Unauthorized
请求中未指定授权数据。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
403 Forbidden
授权数据不正确或禁止访问资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
404 Not Found
找不到请求的资源。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
420 Method Failure
已超出资源访问限制。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
500 Internal Server Error
市场的内部错误。 有关错误的更多信息
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
|
Name |
Description |
|
errors |
Type: object[] 错误列表。 Min items: |
|
status |
Type: string 响应的类型。 可能的值:
Enum: |
No longer supported, please use an alternative and newer version.