Request urls API | Method GET
[<https://content.view-travel.com/v3/api/search-entity-library/>](<https://content.view-travel.com/v3/api/search-entity-library/>)
List of parameters to perform filters and searches
| PARAMETERS | MANDATORY | TYPE | VALUES THAT CAN BE TAKEN |
|---|---|---|---|
| query | NO | string | Title, name of the service |
| page | YES | integer | Page number. It takes a default value of 1 |
| category_code | YES | integer | It can take values of (,1,2,3) see table category of services |
| category_type | YES | string | category type "services” |
| arrivals | YES | string | City IATA code ex. (LIM) |
| language_code | YES | string | You can search in three languages: English (en), Spanish (es), Portuguese (pt) |
| booking_engine | YES | integer | It takes a default value of 0 |
Category of services
| ID | Category name |
|---|---|
| All services | |
| 1 | Service |
| 2 | Transfer |
| 3 | Means of transport |
Include in headers
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_TOKEN_REFRESH',
'Accept-Language': 'en'
}
Only parameters to send the request
[<https://content.view-travel.com/v3/api/search-entity-library/>
?query=&page=1&category_code=&category_type=services
&arrivals=MEX&language_code=es&booking_engine=0](<https://content.view-travel.com/v3/api/search-entity-library/?query=&page=1&category_code=-1&category_type=services&arrivals=MEX&language_code=es&booking_engine=0>)
{
"data": [
{
"id": "",
"title": "Un servicio de mmas",
"first_content": "",
"price": null,
"external_id": 14450,
"photo": {
"id": 1850110,
"images": {
"small": "/media/destinos/inspiravia/photos/ciudad2s-s.jpg",
"median": "/media/destinos/inspiravia/photos/ciudad2s-m.jpg",
"big": "/media/destinos/inspiravia/photos/ciudad2s-l.jpg"
}
},
"city": {
"id": 926,
"name": "Ciudad de Mexico",
"code": "MEX",
"country": {
"id": 147,
"name": "Mexico",
"code": "MX"
}
},
"category_type": "services",
"description": "<p>sss</p>",
"is_owner": true,
"service_type": {
"id": 1,
"name": "Servicios"
}
}
],
"page_numbers": [
1
],
"previous": false,
"page_current": 1,
"has_next": false,
"number": 1,
"cantidad": 1,
"category_type": null,
"city": {
"id": 926,
"name": "Ciudad de Mexico",
"full_name": "Ciudad de Mexico: Mexico",
"code": "MEX",
"musement_id": 195,
"country": {
"id": 147,
"name": "Mexico",
"code": "MX"
}
},
"category": {
"id": 13,
"name": "Servicios",
"code": "services"
}
}
Note: The Service ID is the external_id