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 activity |
| page | YES | integer | Page number. It takes a default value of 1 |
| category_code | YES | integer | It can take values of (-1,0,1,2,3,4) see table category of activities |
| category_type | YES | string | category type "activities” |
| 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 activities
| ID | Category name |
|---|---|
| -1 | All the Activities |
| 0 | Free Activities ( - ) |
| 1 | Economy Activities ( 0 - 100 US$ ) |
| 2 | Medium Activities ( 100 - 250 US$ ) |
| 3 | Premium Activities ( 250 - 500 US$ ) |
| 4 | Luxory Activities ( +500 US$ ) |
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=-1&category_type=activities
&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=activities&arrivals=MEX&language_code=es&booking_engine=0>)
Response to the request
{
"data": [
{
"id": "",
"title": "Desde Ciudad de México: acceso a Teotihuacán y cata de licor",
"first_content": "Visita el yacimiento arqueológico de Teotihuacán, conocido como la Cuidad de los Dioses, mientras el sol empieza a asomar entre las ruinas. Sube las pirámides del Sol y la Luna y escucha las historias que te contará tu guía de esta ciudad precolombina.",
"price": {
"currency_code": null,
"value": null,
"formatted_value": null,
"formatted_iso_value": null
},
"link":"",
"external_id": 27346,
"photo": {
"id": 1537248,
"images": {
"small": "<https://staticfiles.view-travel.com/media/destinos/inspiravia/photos/tour_img-1792492-98-s.jpg>",
"median": "<https://staticfiles.view-travel.com/media/destinos/inspiravia/photos/tour_img-1792492-98-m.jpg>",
"big": "<https://staticfiles.view-travel.com/media/destinos/inspiravia/photos/tour_img-1792492-98-l.jpg>"
}
},
"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": 4,
"name": "Actividades",
"code": "activities"
},
"category_type": "activities",
"site": 3
},
.
.
.
],
"page_numbers": [
1,
2,
3
],
"previous": false,
"page_current": 1,
"has_next": true,
"number": 1,
"cantidad": 208,
"category_type": "activities",
"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": 4,
"name": "Actividades",
"code": "activities"
}
}
Note: The Activity ID is the external_id