{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://autosalons.ru/feeds/schema/dealers-v1.json","title":"Автосалоны с оценками и проверкой юрлица, autosalons.ru","description":"Конверт фида и ответа API autosalons.ru. Версия 1 не меняется: поля могут добавляться, но не исчезают и не меняют смысл. Документация: https://autosalons.ru/dlya-ii/","type":"object","required":["schema","version","source","generated_at"],"properties":{"schema":{"type":"string","format":"uri","description":"Ссылка на эту схему"},"version":{"const":1},"source":{"type":"string","format":"uri"},"docs":{"type":"string","format":"uri","description":"Описание фидов и API"},"terms":{"type":"string","description":"Условия использования данных"},"generated_at":{"type":"string","format":"date-time","description":"Когда собран ответ"},"count":{"type":"integer","description":"Сколько записей в этом ответе"},"total":{"type":"integer","description":"Сколько записей всего по запросу"},"page":{"type":"integer","description":"Номер страницы фида, если записей больше, чем помещается в одну"},"pages":{"type":"integer"},"next":{"type":["string","null"],"format":"uri","description":"Следующая страница или null"},"items":{"type":"array","items":{"$ref":"#/$defs/item"}},"item":{"$ref":"#/$defs/item","description":"Одна запись в ответах вида /api/cars/{id}/"}},"$defs":{"item":{"type":"object","required":["id","name","url","city","type","rating","updated_at"],"properties":{"id":{"type":"string","description":"Номер салона на autosalons.ru, не меняется"},"name":{"type":"string"},"url":{"type":"string","format":"uri","description":"Страница салона с отзывами и проверкой юрлица"},"cars_url":{"type":["string","null"],"format":"uri","description":"Машины салона в наличии, если есть"},"cars_in_stock":{"type":"integer"},"city":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"reviews_url":{"type":"string","format":"uri"}}},"type":{"type":"string","enum":["official","used","grey","multibrand"],"description":"Официальный дилер, салон с пробегом, серый импорт или разные марки"},"type_label":{"type":["string","null"],"description":"То же по-русски"},"sells_new":{"type":["boolean","null"]},"sells_used":{"type":["boolean","null"]},"brands":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"official":{"type":"boolean","description":"Официальный дилер этой марки"}}}},"address":{"type":["string","null"],"description":"Адрес"},"geo":{"type":["object","null"],"properties":{"lat":{"type":"number"},"lon":{"type":"number"}}},"phones":{"type":"array","items":{"type":"string"},"description":"Телефоны в формате +7XXXXXXXXXX"},"phones_display":{"type":"array","items":{"type":"string"}},"website":{"type":["string","null"],"format":"uri","description":"Сайт салона"},"hours":{"type":["string","null"],"description":"Часы работы"},"network":{"type":["object","null"],"properties":{"slug":{"type":"string"},"name":{"type":"string"}}},"rating":{"type":"object","properties":{"score":{"type":["number","null"],"description":"Сводная оценка от 1 до 5 по отзывам с разных площадок и на autosalons.ru"},"votes":{"type":"integer"},"method_url":{"type":"string","format":"uri","description":"Как считается оценка"},"own_reviews":{"type":"integer","description":"Отзывы, оставленные на autosalons.ru"},"own_rating":{"type":["number","null"],"description":"Средняя оценка в этих отзывах"},"external":{"type":"array","description":"Оценки на других площадках со ссылками","items":{"type":"object","properties":{"source":{"type":"string"},"source_name":{"type":"string"},"url":{"type":["string","null"],"format":"uri","description":"Страница отзывов на площадке"},"rating":{"type":["number","null"],"description":""},"reviews_count":{"type":["integer","null"],"description":""}}}}}},"official_dealer_listings":{"type":"array","description":"Где салон указан на сайте марки как официальный дилер","items":{"type":"object","properties":{"brand_slug":{"type":"string"},"url":{"type":["string","null"],"format":"uri","description":""}}}},"complaints_90d":{"type":"integer","description":"Жалобы за 90 дней"},"stamp":{"type":["string","null"],"enum":["active","liquidated","liquidating","bankrupt","entity_changed","many_complaints",null],"description":"Отметка о юрлице или жалобах"},"stamp_label":{"type":["string","null"],"description":"То же по-русски"},"legal":{"type":["object","null"],"description":"Юрлицо салона и его проверка в ФНС","properties":{"name":{"type":["string","null"],"description":""},"inn":{"type":"string"},"ogrn":{"type":["string","null"],"description":""},"registered":{"type":["string","null"],"description":"Дата регистрации"},"checked_in_fns":{"type":"boolean"},"status":{"type":["string","null"],"description":"Статус по ФНС: active, liquidating, liquidated, bankrupt, reorganizing"},"status_label":{"type":["string","null"],"description":"То же по-русски"},"checked_at":{"type":["string","null"],"description":"Когда проверяли"},"source_url":{"type":["string","null"],"format":"uri","description":"Где проверяли"},"changes":{"type":"integer","description":"Сколько раз салон менял юрлицо"}}},"updated_at":{"type":"string","format":"date-time","description":"Когда данные салона последний раз менялись"}}}}}