Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GET products/

...


Параметр
Тип
Описание
Обязательный
brandstringбрендда
spiderstringпаукда
pageintномер страницы, по умолчанию 1нет
categorystringкатегория товаровнет



Пример запроса:

Paste code macro
languagebash
themeDarkula
curl -XGET "[endpoint]/products/?spider=esteelauder.ru&brand=Estée Lauder&category=Макияж" -H "TokenAPI: [your_token]"

...

Ответ:

Paste code macro
languagejson
themeDarkula
{
    "products": [
        {
            "rpc": "9MTM01",
            "sku": "9MTM010000",
            "category": "Макияж"
        },
        {
            "rpc": "RTXN01",
            "sku": "RTXN010001",
            "category": "Макияж"
        },
        {
            "rpc": "Y9GT13",
            "sku": "Y9GT130000",
            "category": "Макияж"
        },
        {
            "rpc": "YTHK01",
            "sku": "YTHK010000",
            "category": "Макияж"
        },
        {
            "rpc": "YNC406",
            "sku": "YNC4060000",
            "category": "Макияж"
        },
        {
            "rpc": "YNC409",
            "sku": "YNC4090000",
            "category": "Макияж"
        },
        {
            "rpc": "YNC405",
            "sku": "YNC4050000",
            "category": "Макияж"
        },
        {
            "rpc": "YNC402",
            "sku": "YNC4020000",
            "category": "Макияж"
        },
        {
            "rpc": "WGHW01",
            "sku": "WGHW010000",
            "category": "Макияж"
        },
        {
            "rpc": "R8G001",
            "sku": "R8G0010000",
            "category": "Макияж"
        }
    ],
    "meta": {
        "total_items": 745447,
        "page": 1,
        "total_pages": 7545
    }
}