/3.0/profile/data
Персонализированная история поисков (3.0)
2GIS API Support: api@2gis.ru URL: https://docs.2gis.com/
Получение коллекции объектов
В ответе выдаются:
- история поисковых запросов пользователя;
- история выбранных объектов из результатов автодополнения;
- история выбранных объектов из результатов поиска.
query Parameters
| key required | string Уникальный ключ пользователя API. |
| locale | string Examples:
Локаль, с которой производится поиск и отдаются результаты.
|
| user_id | string non-empty BSS id пользователя. Не обязателен в случае передачи auth_id и access_token. |
| auth_id | string non-empty Идентификатор авторизованного пользователя. Не обязателен в случае передачи user_id. |
| access_token | string non-empty Access token от сервиса Auth, если пользователь залогинен. Не обязателен в случае передачи user_id. |
Responses
Response Schema: application/json
required | object |
required | object (ObjMeta) Метаданные ответа |
Response samples
- 200
Content type
application/json
{- "result": {
- "last_objects": [
- {
- "id": "141265769336625",
- "type": "string",
- "ads": {
- "text": "Только у нас, только сейчас только здесь",
- "article": "<strong>Рекламная статья</strong><br/>Покупайте наших слонов.",
- "options": {
- "erid": [
- "string"
], - "fmcg": [
- {
- "ads_id": "123456",
- "hash": "string",
- "images": [
- {
- "url": null
}
], - "org_id": "123456",
- "actions": [
- {
- "type": null,
- "value": null,
- "name": null,
- "platforms": [ ],
- "caption": null
}
], - "text_warning": "string",
- "logo": [
- {
- "bg_img_url": null,
- "text_color": null,
- "use_default_value": null,
- "img_url": null,
- "bg_color": null
}
], - "erid": [
- "string"
], - "goods_preview": [
- {
- "image_url": null
}
], - "text": "string",
- "cta_list": true,
- "branch_id": "123456",
- "videos": [
- {
- "resources_description_url": null
}
]
}
], - "map_buy_here_owner": [
- {
- "map_icon": {
- "svg": "string"
}, - "map_label": {
- "text": "string"
}, - "ads_id": "123456",
- "erid": [
- "string"
], - "legal_name": "string"
}
], - "images": [
- {
- "url": "string"
}
], - "logo": {
- "text_color": "#000000",
- "use_default_value": true,
- "bg_color": "#FFFFFF"
}, - "actions": [
- {
- "type": "string",
- "value": "string",
- "name": "string",
- "platforms": [
- "string"
], - "caption": "string"
}
], - "buy_here_owner": [
- {
- "position": 1,
- "owned_rubric_id": "123456",
- "control_title": "string",
- "erid": [
- "string"
], - "legal_name": "string"
}
], - "fmcg_owner": [
- {
- "legal_name": "string",
- "ads_id": "123456",
- "control_title": "string",
- "erid": [
- "string"
]
}
], - "poi": {
- "legal_name": "string",
- "erid": [
- "string"
], - "is_premium": true
}, - "review": true,
- "3d": true,
- "organization_stories": {
- "discount": {
- "max_percent": 0,
- "is_prime": true
}
}, - "color": "#2B5C91",
- "videos": [
- {
- "resources_description_url": "string"
}
], - "suggestor": {
- "erid": [
- "string"
], - "microcomment": {
- "text": "string"
}, - "microcomment_warning": {
- "text": "string"
}, - "ads_id": "123456",
- "legal_name": "string"
}, - "marker_logo": {
- "url": "string"
}, - "buy_here": [
- {
- "ads_id": "123456",
- "cta_list": true,
- "title": "string",
- "erid": [
- "string"
], - "videos": [
- {
- "resources_description_url": null
}
], - "owned_rubric_id": "123456",
- "images": [
- {
- "url": null
}
], - "branch_id": "123456",
- "ads_texts": {
- "text": "string",
- "text_warning": "string"
}, - "custom_title": "string",
- "org_id": "123456",
- "logo": {
- "text_color": "#000000",
- "use_default_value": true,
- "bg_color": "#FFFFFF"
}, - "is_primary": true,
- "actions": [
- {
- "type": null,
- "value": null,
- "name": null,
- "platforms": [ ],
- "caption": null
}
], - "hash": "string"
}
], - "discount": true,
- "legal_name": "string",
- "branded_advertiser": true
}, - "is_social": true,
- "text_warning": "Курение вредит вашему здоровью",
- "article_warning": "Курение вредит вашему здоровью",
- "warning": "Курение вредит вашему здоровью"
}, - "human_readable_class_id": "personal_poi_food_service",
- "address": {
- "building_id": "20498230958",
- "postcode": "630007",
- "building_code": "string",
- "building_name": "Сан Сити",
- "landmark_name": "Зарядье (парк в Москве)",
- "makani": "27116 87099",
- "components": [
- {
- "type": "street_number",
- "fias_code": "dcb1bc1b-2324-449a-8b68-03e49ba1f541",
- "okato": "35",
- "oktmo": "35",
- "street_id": "123456",
- "street": "Красный проспект",
- "number": "21/2 корп. 7"
}
], - "reg_bc_url": "string"
}, - "name": "Солнышко, кафе",
- "point": "54.991984,82.901886",
- "subtype": "string",
- "routes": [
- {
- "id": "123_24J2I19H1J0fghdw7GJ0JJ16153",
- "directions": [
- {
- "id": "123456",
- "type": "forward",
- "platforms": [
- {
- "id": null,
- "station_id": null,
- "name": null,
- "place_name": null,
- "transitions": null,
- "geometry": null,
- "is_current": null
}
], - "name": "До ТК Толмачёвский",
- "description": "string",
- "geometry": {
- "hover": "POLYGON((36.193851601974 51.7466070840044,36.1943391434488 51.7466070840044,36.1943391434488 51.7474670961949,36.193851601974 51.7474670961949,36.193851601974 51.7466070840044))",
- "selection": "POINT(83.306820839303 54.6230101954005)",
- "style": "37001",
- "immersion": [
- { }
], - "centroid": "POINT(83.306820839303 54.6230101954005)"
}
}
], - "direction_ids": [
- "string"
], - "subtype": "string",
- "color": "#D10000",
- "comment": "Дзержинская линия",
- "name": "Ключ-Камышенское плато",
- "route_logo": "string",
- "direction_type": "string",
- "from_name": "Ключ-Камышенское плато",
- "to_name": "Тюленина"
}
], - "name_ex": {
- "short_name": "Солнышко",
- "primary": "Солнышко",
- "extension": "кафе",
- "legal_name": "ООО Солнышко",
- "addition": "string",
- "description": "Склад"
}, - "adm_div": [
- {
- "id": "123456",
- "type": "city",
- "caption": "string",
- "name": "Усть-Каменогорск",
- "is_default": true,
- "flags": {
- "is_district_area_center": true,
- "has_avg_bill": { },
- "photos": true,
- "has_model": { },
- "temporary_closed": "string",
- "is_default": true,
- "is_region_center": true,
- "temporary_closed_parameters": [
- {
- "type": "string",
- "value": "string",
- "name": "string"
}
], - "badges": [
- {
- "type": "string",
- "text": "string",
- "collection_uid": "string"
}
]
}, - "city_alias": "novosibirsk",
- "detailed_subtype": "poselok"
}
], - "class_id": 0,
- "count": 1,
- "geometry": {
- "centroid": "POINT(83.306820839303 54.6230101954005)",
- "hover": "POLYGON((36.193851601974 51.7466070840044,36.1943391434488 51.7466070840044,36.1943391434488 51.7474670961949,36.193851601974 51.7474670961949,36.193851601974 51.7466070840044))",
- "selection": "POINT(83.306820839303 54.6230101954005)",
- "style": "37001"
}, - "timestamp": 1461831300
}
], - "history_objects": [
- {
- "id": "141265769336625",
- "type": "history",
- "timestamp": 1461831300,
- "count": 1,
- "objectType": "building"
}
], - "home_work_objects": [
- {
- "id": "141265769336625",
- "type": "supposed_work",
- "count": 1,
- "objectType": "building",
- "timestamp": 1461831300
}
], - "suggester_picked_objects": [
- {
- "id": "141265769336625",
- "type": "string",
- "product": 10,
- "ads": {
- "text": "Только у нас, только сейчас только здесь",
- "article": "<strong>Рекламная статья</strong><br/>Покупайте наших слонов.",
- "options": {
- "erid": [
- "string"
], - "fmcg": [
- {
- "ads_id": "123456",
- "hash": "string",
- "images": [
- {
- "url": null
}
], - "org_id": "123456",
- "actions": [
- {
- "type": null,
- "value": null,
- "name": null,
- "platforms": [ ],
- "caption": null
}
], - "text_warning": "string",
- "logo": [
- {
- "bg_img_url": null,
- "text_color": null,
- "use_default_value": null,
- "img_url": null,
- "bg_color": null
}
], - "erid": [
- "string"
], - "goods_preview": [
- {
- "image_url": null
}
], - "text": "string",
- "cta_list": true,
- "branch_id": "123456",
- "videos": [
- {
- "resources_description_url": null
}
]
}
], - "map_buy_here_owner": [
- {
- "map_icon": {
- "svg": "string"
}, - "map_label": {
- "text": "string"
}, - "ads_id": "123456",
- "erid": [
- "string"
], - "legal_name": "string"
}
], - "images": [
- {
- "url": "string"
}
], - "logo": {
- "text_color": "#000000",
- "use_default_value": true,
- "bg_color": "#FFFFFF"
}, - "actions": [
- {
- "type": "string",
- "value": "string",
- "name": "string",
- "platforms": [
- "string"
], - "caption": "string"
}
], - "buy_here_owner": [
- {
- "position": 1,
- "owned_rubric_id": "123456",
- "control_title": "string",
- "erid": [
- "string"
], - "legal_name": "string"
}
], - "fmcg_owner": [
- {
- "legal_name": "string",
- "ads_id": "123456",
- "control_title": "string",
- "erid": [
- "string"
]
}
], - "poi": {
- "legal_name": "string",
- "erid": [
- "string"
], - "is_premium": true
}, - "review": true,
- "3d": true,
- "organization_stories": {
- "discount": {
- "max_percent": 0,
- "is_prime": true
}
}, - "color": "#2B5C91",
- "videos": [
- {
- "resources_description_url": "string"
}
], - "suggestor": {
- "erid": [
- "string"
], - "microcomment": {
- "text": "string"
}, - "microcomment_warning": {
- "text": "string"
}, - "ads_id": "123456",
- "legal_name": "string"
}, - "marker_logo": {
- "url": "string"
}, - "buy_here": [
- {
- "ads_id": "123456",
- "cta_list": true,
- "title": "string",
- "erid": [
- "string"
], - "videos": [
- {
- "resources_description_url": null
}
], - "owned_rubric_id": "123456",
- "images": [
- {
- "url": null
}
], - "branch_id": "123456",
- "ads_texts": {
- "text": "string",
- "text_warning": "string"
}, - "custom_title": "string",
- "org_id": "123456",
- "logo": {
- "text_color": "#000000",
- "use_default_value": true,
- "bg_color": "#FFFFFF"
}, - "is_primary": true,
- "actions": [
- {
- "type": null,
- "value": null,
- "name": null,
- "platforms": [ ],
- "caption": null
}
], - "hash": "string"
}
], - "discount": true,
- "legal_name": "string",
- "branded_advertiser": true
}, - "is_social": true,
- "text_warning": "Курение вредит вашему здоровью",
- "article_warning": "Курение вредит вашему здоровью",
- "warning": "Курение вредит вашему здоровью"
}, - "name": "Солнышко, кафе",
- "address": {
- "building_id": "20498230958",
- "postcode": "630007",
- "building_code": "string",
- "building_name": "Сан Сити",
- "landmark_name": "Зарядье (парк в Москве)",
- "makani": "27116 87099",
- "components": [
- {
- "type": "street_number",
- "fias_code": "dcb1bc1b-2324-449a-8b68-03e49ba1f541",
- "okato": "35",
- "oktmo": "35",
- "street_id": "123456",
- "street": "Красный проспект",
- "number": "21/2 корп. 7"
}
], - "reg_bc_url": "string"
}, - "name_ex": {
- "short_name": "Солнышко",
- "primary": "Солнышко",
- "extension": "кафе",
- "legal_name": "ООО Солнышко",
- "addition": "string",
- "description": "Склад"
}, - "human_readable_class_id": "personal_poi_food_service",
- "adm_div": [
- {
- "id": "123456",
- "type": "city",
- "caption": "string",
- "name": "Усть-Каменогорск",
- "is_default": true,
- "flags": {
- "is_district_area_center": true,
- "has_avg_bill": { },
- "photos": true,
- "has_model": { },
- "temporary_closed": "string",
- "is_default": true,
- "is_region_center": true,
- "temporary_closed_parameters": [
- {
- "type": "string",
- "value": "string",
- "name": "string"
}
], - "badges": [
- {
- "type": "string",
- "text": "string",
- "collection_uid": "string"
}
]
}, - "city_alias": "novosibirsk",
- "detailed_subtype": "poselok"
}
], - "class_id": 0,
- "geometry": {
- "centroid": "POINT(83.306820839303 54.6230101954005)",
- "hover": "POLYGON((36.193851601974 51.7466070840044,36.1943391434488 51.7466070840044,36.1943391434488 51.7474670961949,36.193851601974 51.7474670961949,36.193851601974 51.7466070840044))",
- "selection": "POINT(83.306820839303 54.6230101954005)",
- "style": "37001"
}, - "subtype": "string",
- "routes": [
- {
- "id": "123_24J2I19H1J0fghdw7GJ0JJ16153",
- "directions": [
- {
- "id": "123456",
- "type": "forward",
- "platforms": [
- {
- "id": null,
- "station_id": null,
- "name": null,
- "place_name": null,
- "transitions": null,
- "geometry": null,
- "is_current": null
}
], - "name": "До ТК Толмачёвский",
- "description": "string",
- "geometry": {
- "hover": "POLYGON((36.193851601974 51.7466070840044,36.1943391434488 51.7466070840044,36.1943391434488 51.7474670961949,36.193851601974 51.7474670961949,36.193851601974 51.7466070840044))",
- "selection": "POINT(83.306820839303 54.6230101954005)",
- "style": "37001",
- "immersion": [
- { }
], - "centroid": "POINT(83.306820839303 54.6230101954005)"
}
}
], - "direction_ids": [
- "string"
], - "subtype": "string",
- "color": "#D10000",
- "comment": "Дзержинская линия",
- "name": "Ключ-Камышенское плато",
- "route_logo": "string",
- "direction_type": "string",
- "from_name": "Ключ-Камышенское плато",
- "to_name": "Тюленина"
}
], - "point": "54.991984,82.901886",
- "timestamp": "1461831300"
}
], - "owned_branches": [
- "string"
], - "poi_personalized_priorities": [
- {
- "id": "141265769336625",
- "personalizedPriority": 1
}
], - "searches": [
- {
- "timestamp": "1461831300",
- "text": "string",
- "product": 0
}
]
}, - "meta": {
- "code": 200,
- "api_version": "dev",
- "issue_date": "string"
}
}