Request urls API | Method GET
<https://content.view-travel.com/v3/api/transport-types/>
List of parameters to perform filters and searches
| PARAMETERS | MANDATORY | TYPE | VALUES THAT CAN BE TAKEN |
|---|---|---|---|
| search | NO | string | To search for matches in titles, subtitles, descriptions |
| code | NO | string | Takes values from the list (activities, aircraft, bicycle, bus, car, conditions, cruise, destination, ferry, files, flight, helicopter, hotel, jeep, minivan, motorhome, observations, |
| others, price, restaurants, services, ship, train, traveler, walking) |
Include in headers
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_TOKEN_REFRESH',
'Accept-Language': 'en'
}
Note:
Only parameters to send the request
<https://content.view-travel.com/v3/api/transport-types/>
Response to the request
{
"count": 25,
"current": 1,
"page_size": 50,
"total_pages": 1,
"page_numbers": [
1
],
"next_page_exist": false,
"next_page_number": null,
"back_page_exist": false,
"back_page_number": null,
"results": [
{
"id": 22,
"code": "destination",
"name": "Destination",
"icono": ".<i class=\\"fa-solid fa-location-dot\\"></i>",
"imagen": "<https://content.view-travel.com/media/transportes/destination.png>",
"icon": "<svg class=\\"h-4 w-4\\" xmlns=\\"<http://www.w3.org/2000/svg\\>" viewBox=\\"0 0 384 512\\"><path d=\\"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z\\"/></svg>",
"icono_rojo": "<https://content.view-travel.com/media/transportes/rojo/destination_start.png>",
"is_old": false,
"divider": false,
"is_hidden": false,
"orden": 1,
"new_order": 1
},
.
.
.
],
}
The response shows us all the types of transport that were available in the Viewtravel APi V3.