Last active
August 12, 2016 15:59
-
-
Save alexshk/cfdc83d6ffdbbcc4b5fa740f66c51835 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"result": "success", | |
"total_objects": 4435 // всего объектов | |
"page": 1, // текущая страница в сортировке | |
"total_pages": 45 // всего страниц | |
"sort": "price" // сортировка | |
"sort_direction": "asc" // направление сортировки | |
"apartments": [ // массив квартир | |
{ | |
"id": 133, // id квартиры | |
"title": "Новое тушино", // название объекта | |
"price": 12434345, // цена | |
"price_offer": 1000000, // спеццена | |
"rooms": 3, // комнат (s - студия, 1 - однушка и тд) | |
"area": 344, // площадь | |
"plan_link": "ссылка на планировку" | |
}, | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"request": { | |
"rooms": "s;1;2" // количество комнат, может быть пустым, собирается через ; s - студия | |
"price": "2.3;12", // цена, собирается через ; | |
"area": "30;120", // цена, собирается через ; | |
"floor": "1;3", // этаж | |
"ground_floor": 1, // этаж кроме первого, 1 - да, 0 - нет | |
"top_floor": 1, // этаж кроме последнего, 1 - да, 0 - нет | |
"build_stage": "1", // стадии строительства, хз какие они бывают | |
"city": "1" // город | |
"object": "34" // id объекта | |
"only_counter": 1, // выдавать только количество объектов 1 - да, 0 - нет | |
"page": 1, // номер страницы | |
"sort": "title" // сортировка по title = название объекта, rooms = кол-во клмнат, floor = этаж, price = цена, special_price = спеццена | |
"sort_direction": "asc" или "desc", // направление сортировки, asc - по возрастанию, desc - по убыванию | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
req.json
-- формат запросаdata.json
-- формат ответаесли в запросе есть
only_counter: 1
то выводится толькоtotal_objects