Skip to content

Examples using cUrl

This page contains a couple of cUrl examples to get you started. For a full overview of the api, please check out our OpenAPI (Swagger) Documentation and try our Postman Collection. In these examples we refer to our [Your API Key], replace this (remove the brackets) with the API key which was supplied to you on onboarding, please refer to Environments & Authorization#Authorization for more information how to properly use your API key.

HotelXV Api v2

Get list of datasets

curl --header "Authorization: ApiKey [Your API Key]" "https://demo.apixv.com/hotelxv/api/v2/datasets"

Get hotel content

curl --header "Authorization: ApiKey [Your API Key]" "https://demo.apixv.com/hotelxv/api/v2/hotels?hotel_uids=AXH-qCzrQmMQvRPa,AXH-qCzrQmMWriE7,AXH-qCzrQmTsywzN"

Get availability options

curl --header "Authorization: ApiKey [Your API Key]" "https://demo.apixv.com/hotelxv/api/v2/options?hotel_uids=AXH-qCzrQmMQvRPa,AXH-qCzrQmMWriE7,AXH-qCzrQmTsywzN&check_in=2024-12-01&check_out=2024-12-10&occupancy=A-A-C9&market=nl&currency=USD&language=en&nationality=NL"

We will extend this page with more examples as we extend our API. For other api calls please refer to our OpenAPI (Swagger) Documentation.

Copyright ApiXV 2024 ©