Запрос фотографий по ID модели

Тип запроса

POST

URL ресурса

https://market-scanner.ru/api/photos

Спишется запросов

1

Входные параметры

Параметр Тип Описание

key

varchar(32)

Ключ доступа к ресурсу. В личном кабинете.

id

int32

ID модели в базе данных.

Выходные данные

Параметр Тип Описание

id

int32

ID модели

pictures[]

array

Массив фотографий

pictures[N]

array

Массив вариантов одной фотографии

pictures[N][M].size

varchar

Размер фото в формате WIDTHxHEIGHT
(original ссылка на исходную фотографию).
Воможные варианты:
50x50
75x75
100x100
120x120
150x150
200x200
190x250
240x240
240x320
300x400
500x500
600x600
600x800
1000x1000
original

pictures[N][M].url

varchar

Ссылка на фото

JSON

{
    "id": "10750571",
    "pictures": [
        [
            {
                "size": "50x50",
                "url": "https://avatars.mds.yandex.net/get-mpic/1750207/img_id5425612053428030393.jpeg/1hq"
            },
            {
                "size": "100x100",
                "url": "https://avatars.mds.yandex.net/get-mpic/1750207/img_id5425612053428030393.jpeg/2hq"
            },
            {
                "size": "75x75",
                "url": "https://avatars.mds.yandex.net/get-mpic/1750207/img_id5425612053428030393.jpeg/3hq"
            },
            {
                "size": "150x150",
                "url": "https://avatars.mds.yandex.net/get-mpic/1750207/img_id5425612053428030393.jpeg/4hq"
            },
            {
                "size": "200x200",
                "url": "https://avatars.mds.yandex.net/get-mpic/1750207/img_id5425612053428030393.jpeg/5hq"
            },
            {
                "size": "250x250",
                "url": "https://avatars.mds.yandex.net/get-mpic/1750207/img_id5425612053428030393.jpeg/6hq"
            },
            {
                "size": "120x120",
                "url": "https://avatars.mds.yandex.net/get-mpic/1750207/img_id5425612053428030393.jpeg/7hq"
            },
            {
                "size": "240x240",
                "url": "https://avatars.mds.yandex.net/get-mpic/1750207/img_id5425612053428030393.jpeg/8hq"
            },
            {
                "size": "500x500",
                "url": "https://avatars.mds.yandex.net/get-mpic/1750207/img_id5425612053428030393.jpeg/9hq"
            },
            {
                "size": "1000x1000",
                "url": "https://avatars.mds.yandex.net/get-mpic/1750207/img_id5425612053428030393.jpeg/10hq"
            },
            {
                "size": "original",
                "url": "https://avatars.mds.yandex.net/get-mpic/1750207/img_id5425612053428030393.jpeg/orig"
            }
        ],
        [
            {
                "size": "50x50",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id8092691764853818488.jpeg/1hq"
            },
            {
                "size": "100x100",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id8092691764853818488.jpeg/2hq"
            },
            {
                "size": "75x75",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id8092691764853818488.jpeg/3hq"
            },
            {
                "size": "150x150",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id8092691764853818488.jpeg/4hq"
            },
            {
                "size": "200x200",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id8092691764853818488.jpeg/5hq"
            },
            {
                "size": "250x250",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id8092691764853818488.jpeg/6hq"
            },
            {
                "size": "120x120",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id8092691764853818488.jpeg/7hq"
            },
            {
                "size": "240x240",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id8092691764853818488.jpeg/8hq"
            },
            {
                "size": "500x500",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id8092691764853818488.jpeg/9hq"
            },
            {
                "size": "1000x1000",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id8092691764853818488.jpeg/10hq"
            },
            {
                "size": "original",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id8092691764853818488.jpeg/orig"
            }
        ],
        [
            {
                "size": "50x50",
                "url": "https://avatars.mds.yandex.net/get-mpic/1614201/img_id7494434786654338927.jpeg/1hq"
            },
            {
                "size": "100x100",
                "url": "https://avatars.mds.yandex.net/get-mpic/1614201/img_id7494434786654338927.jpeg/2hq"
            },
            {
                "size": "75x75",
                "url": "https://avatars.mds.yandex.net/get-mpic/1614201/img_id7494434786654338927.jpeg/3hq"
            },
            {
                "size": "150x150",
                "url": "https://avatars.mds.yandex.net/get-mpic/1614201/img_id7494434786654338927.jpeg/4hq"
            },
            {
                "size": "200x200",
                "url": "https://avatars.mds.yandex.net/get-mpic/1614201/img_id7494434786654338927.jpeg/5hq"
            },
            {
                "size": "250x250",
                "url": "https://avatars.mds.yandex.net/get-mpic/1614201/img_id7494434786654338927.jpeg/6hq"
            },
            {
                "size": "120x120",
                "url": "https://avatars.mds.yandex.net/get-mpic/1614201/img_id7494434786654338927.jpeg/7hq"
            },
            {
                "size": "240x240",
                "url": "https://avatars.mds.yandex.net/get-mpic/1614201/img_id7494434786654338927.jpeg/8hq"
            },
            {
                "size": "500x500",
                "url": "https://avatars.mds.yandex.net/get-mpic/1614201/img_id7494434786654338927.jpeg/9hq"
            },
            {
                "size": "1000x1000",
                "url": "https://avatars.mds.yandex.net/get-mpic/1614201/img_id7494434786654338927.jpeg/10hq"
            },
            {
                "size": "original",
                "url": "https://avatars.mds.yandex.net/get-mpic/1614201/img_id7494434786654338927.jpeg/orig"
            }
        ],
        [
            {
                "size": "50x50",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id2086417809011353969.png/1hq"
            },
            {
                "size": "100x100",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id2086417809011353969.png/2hq"
            },
            {
                "size": "75x75",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id2086417809011353969.png/3hq"
            },
            {
                "size": "150x150",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id2086417809011353969.png/4hq"
            },
            {
                "size": "200x200",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id2086417809011353969.png/5hq"
            },
            {
                "size": "250x250",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id2086417809011353969.png/6hq"
            },
            {
                "size": "120x120",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id2086417809011353969.png/7hq"
            },
            {
                "size": "240x240",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id2086417809011353969.png/8hq"
            },
            {
                "size": "500x500",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id2086417809011353969.png/9hq"
            },
            {
                "size": "1000x1000",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id2086417809011353969.png/10hq"
            },
            {
                "size": "original",
                "url": "https://avatars.mds.yandex.net/get-mpic/1767151/img_id2086417809011353969.png/orig"
            }
        ]
    ]
}
	
© Copyright Маркет Сканнер.