Security

All API requests must be made over https.

Please safeguard your access key. To include it with each request, set it as the value of the X-TripAdvisor-API-Key header. If you need to make API calls from client code, be aware this may expose your key to other scripts and browser extensions on the client.

Tripadvisor reserves the right to revoke an access key at any time and issue a new one, if a key has leaked or is being misused.

Example curl command:

$ curl
--compressed
--header 'Content-Type: application/json'
--header 'X-TripAdvisor-API-Key: yourkeyhere'
'https://api.tripadvisor.com/api/partner/1.0/email_requests?location_id=@@SCHRUTE_FARMS@@'