Tripadvisor (Hotels) avatar

Tripadvisor (Hotels)

Try for free

1 day trial then $5.00/month - No credit card required now

Go to Store
Tripadvisor (Hotels)

Tripadvisor (Hotels)

canadesk/tripadvisor-hotels
Try for free

1 day trial then $5.00/month - No credit card required now

Get Locations and Hotels with advanced filters from Tripadvisor. It's fast and costs little.

You can access the Tripadvisor (Hotels) programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "1.7",
5    "x-build-id": "6rudcT6gE3WRCVV8h"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/canadesk~tripadvisor-hotels/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-canadesk-tripadvisor-hotels",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/canadesk~tripadvisor-hotels/runs": {
50      "post": {
51        "operationId": "runs-sync-canadesk-tripadvisor-hotels",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/canadesk~tripadvisor-hotels/run-sync": {
93      "post": {
94        "operationId": "run-sync-canadesk-tripadvisor-hotels",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "required": [
134          "location",
135          "locale",
136          "process"
137        ],
138        "properties": {
139          "location": {
140            "title": "Location",
141            "type": "string",
142            "description": "The location to search data for."
143          },
144          "process": {
145            "title": "Process",
146            "enum": [
147              "ls",
148              "gh"
149            ],
150            "type": "string",
151            "description": "Process to run.",
152            "default": "gh"
153          },
154          "checkIn": {
155            "title": "Filter - Check In",
156            "type": "string",
157            "description": ""
158          },
159          "checkOut": {
160            "title": "Filter - Check Out",
161            "type": "string",
162            "description": ""
163          },
164          "rooms": {
165            "title": "Filter - # of Rooms",
166            "minimum": 1,
167            "maximum": 10,
168            "type": "integer",
169            "description": "",
170            "default": 1
171          },
172          "adults": {
173            "title": "Filter - # of Adults",
174            "minimum": 1,
175            "maximum": 10,
176            "type": "integer",
177            "description": "",
178            "default": 2
179          },
180          "minRating": {
181            "title": "Filter - Minimum Rating",
182            "minimum": 2,
183            "maximum": 5,
184            "type": "integer",
185            "description": "",
186            "default": 2
187          },
188          "style": {
189            "title": "Filter - Style",
190            "type": "array",
191            "description": "",
192            "items": {
193              "type": "string",
194              "enum": [
195                "100",
196                "5951",
197                "4",
198                "7",
199                "3",
200                "12",
201                "101"
202              ],
203              "enumTitles": [
204                "Budget",
205                "Mid-range",
206                "Luxury",
207                "Family-friendly",
208                "Business",
209                "Romantic",
210                "Modern"
211              ]
212            }
213          },
214          "currency": {
215            "title": "Currency",
216            "enum": [
217              "USD",
218              "GBP",
219              "EUR",
220              "CAD",
221              "CHF",
222              "AUD",
223              "JPY",
224              "CNY",
225              "INR",
226              "BRL",
227              "HKD",
228              "RUB"
229            ],
230            "type": "string",
231            "description": "",
232            "default": "USD"
233          },
234          "locale": {
235            "title": "Language",
236            "enum": [
237              "en-US",
238              "en-CA",
239              "fr-CA",
240              "pt-BR",
241              "es-MX",
242              "es-AR",
243              "en-CL",
244              "es-CO",
245              "es-PE",
246              "es-VE",
247              "en-GB",
248              "it-IT",
249              "es-ES",
250              "de-DE",
251              "fr-FR",
252              "sv-SE",
253              "nl-NL",
254              "tr-TR",
255              "da-DK",
256              "en-IE",
257              "de-AT",
258              "el-GR",
259              "nb-NO",
260              "pt-PT",
261              "ru-RU",
262              "de-CH",
263              "fr-CH",
264              "it-CH",
265              "fr-BE",
266              "nl-BE",
267              "ja-JP",
268              "zh-Hans",
269              "zh-Hans-US",
270              "en-IN",
271              "en-AU",
272              "en-MY",
273              "en-NZ",
274              "en-PH",
275              "en-SG",
276              "id-ID",
277              "ko-KR",
278              "th-u-ca-gregory",
279              "vi-VN",
280              "zh-Hant-TW",
281              "en-HK",
282              "zh-Hant-HK",
283              "ar-US-u-nu-latn",
284              "ar-EG-u-nu-latn",
285              "he-IL"
286            ],
287            "type": "string",
288            "description": "",
289            "default": "en-US"
290          },
291          "pages": {
292            "title": "Maximum pages",
293            "minimum": 1,
294            "maximum": 200,
295            "type": "integer",
296            "description": "Maximum number of pages to be returned (very high impact on cost).",
297            "default": 3
298          },
299          "cache": {
300            "title": "Cache",
301            "enum": [
302              "1",
303              "2"
304            ],
305            "type": "string",
306            "description": "Enable cache for 90 days.",
307            "default": "1"
308          },
309          "proxy": {
310            "title": "Proxy configuration",
311            "type": "object",
312            "description": "Select proxies to be used by your crawler."
313          }
314        }
315      },
316      "runsResponseSchema": {
317        "type": "object",
318        "properties": {
319          "data": {
320            "type": "object",
321            "properties": {
322              "id": {
323                "type": "string"
324              },
325              "actId": {
326                "type": "string"
327              },
328              "userId": {
329                "type": "string"
330              },
331              "startedAt": {
332                "type": "string",
333                "format": "date-time",
334                "example": "2025-01-08T00:00:00.000Z"
335              },
336              "finishedAt": {
337                "type": "string",
338                "format": "date-time",
339                "example": "2025-01-08T00:00:00.000Z"
340              },
341              "status": {
342                "type": "string",
343                "example": "READY"
344              },
345              "meta": {
346                "type": "object",
347                "properties": {
348                  "origin": {
349                    "type": "string",
350                    "example": "API"
351                  },
352                  "userAgent": {
353                    "type": "string"
354                  }
355                }
356              },
357              "stats": {
358                "type": "object",
359                "properties": {
360                  "inputBodyLen": {
361                    "type": "integer",
362                    "example": 2000
363                  },
364                  "rebootCount": {
365                    "type": "integer",
366                    "example": 0
367                  },
368                  "restartCount": {
369                    "type": "integer",
370                    "example": 0
371                  },
372                  "resurrectCount": {
373                    "type": "integer",
374                    "example": 0
375                  },
376                  "computeUnits": {
377                    "type": "integer",
378                    "example": 0
379                  }
380                }
381              },
382              "options": {
383                "type": "object",
384                "properties": {
385                  "build": {
386                    "type": "string",
387                    "example": "latest"
388                  },
389                  "timeoutSecs": {
390                    "type": "integer",
391                    "example": 300
392                  },
393                  "memoryMbytes": {
394                    "type": "integer",
395                    "example": 1024
396                  },
397                  "diskMbytes": {
398                    "type": "integer",
399                    "example": 2048
400                  }
401                }
402              },
403              "buildId": {
404                "type": "string"
405              },
406              "defaultKeyValueStoreId": {
407                "type": "string"
408              },
409              "defaultDatasetId": {
410                "type": "string"
411              },
412              "defaultRequestQueueId": {
413                "type": "string"
414              },
415              "buildNumber": {
416                "type": "string",
417                "example": "1.0.0"
418              },
419              "containerUrl": {
420                "type": "string"
421              },
422              "usage": {
423                "type": "object",
424                "properties": {
425                  "ACTOR_COMPUTE_UNITS": {
426                    "type": "integer",
427                    "example": 0
428                  },
429                  "DATASET_READS": {
430                    "type": "integer",
431                    "example": 0
432                  },
433                  "DATASET_WRITES": {
434                    "type": "integer",
435                    "example": 0
436                  },
437                  "KEY_VALUE_STORE_READS": {
438                    "type": "integer",
439                    "example": 0
440                  },
441                  "KEY_VALUE_STORE_WRITES": {
442                    "type": "integer",
443                    "example": 1
444                  },
445                  "KEY_VALUE_STORE_LISTS": {
446                    "type": "integer",
447                    "example": 0
448                  },
449                  "REQUEST_QUEUE_READS": {
450                    "type": "integer",
451                    "example": 0
452                  },
453                  "REQUEST_QUEUE_WRITES": {
454                    "type": "integer",
455                    "example": 0
456                  },
457                  "DATA_TRANSFER_INTERNAL_GBYTES": {
458                    "type": "integer",
459                    "example": 0
460                  },
461                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
462                    "type": "integer",
463                    "example": 0
464                  },
465                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
466                    "type": "integer",
467                    "example": 0
468                  },
469                  "PROXY_SERPS": {
470                    "type": "integer",
471                    "example": 0
472                  }
473                }
474              },
475              "usageTotalUsd": {
476                "type": "number",
477                "example": 0.00005
478              },
479              "usageUsd": {
480                "type": "object",
481                "properties": {
482                  "ACTOR_COMPUTE_UNITS": {
483                    "type": "integer",
484                    "example": 0
485                  },
486                  "DATASET_READS": {
487                    "type": "integer",
488                    "example": 0
489                  },
490                  "DATASET_WRITES": {
491                    "type": "integer",
492                    "example": 0
493                  },
494                  "KEY_VALUE_STORE_READS": {
495                    "type": "integer",
496                    "example": 0
497                  },
498                  "KEY_VALUE_STORE_WRITES": {
499                    "type": "number",
500                    "example": 0.00005
501                  },
502                  "KEY_VALUE_STORE_LISTS": {
503                    "type": "integer",
504                    "example": 0
505                  },
506                  "REQUEST_QUEUE_READS": {
507                    "type": "integer",
508                    "example": 0
509                  },
510                  "REQUEST_QUEUE_WRITES": {
511                    "type": "integer",
512                    "example": 0
513                  },
514                  "DATA_TRANSFER_INTERNAL_GBYTES": {
515                    "type": "integer",
516                    "example": 0
517                  },
518                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
519                    "type": "integer",
520                    "example": 0
521                  },
522                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
523                    "type": "integer",
524                    "example": 0
525                  },
526                  "PROXY_SERPS": {
527                    "type": "integer",
528                    "example": 0
529                  }
530                }
531              }
532            }
533          }
534        }
535      }
536    }
537  }
538}

Tripadvisor (Hotels) OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for Tripadvisor (Hotels) from the options below:

If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients:

Developer
Maintained by Community

Actor Metrics

  • 5 monthly users

  • 4 stars

  • >99% runs succeeded

  • Created in Nov 2023

  • Modified 7 days ago

Categories