GraphQL Overview

Welcome to the LiteAPI GraphQL API. This API provides seamless hotel booking capabilities using GraphQL, allowing users to search rates, prebook, and make bookings efficiently.

🌎

The most efficient way to query our data

GraphQL is a query language for APIs that allows clients to request only the data they need, reducing over-fetching and under-fetching compared to traditional REST APIs. It provides a more flexible and efficient way to interact with APIs.


Why use GraphQL?

  • Efficient Data Fetching – Clients can request multiple resources in a single query.
  • Strongly Typed Schema – Ensures clear and structured API contracts.
  • Flexible Queries – Retrieve only the fields you need, reducing unnecessary data transfer.
  • Real-Time Updates – Enables real-time subscriptions for live data.
  • Better Developer Experience – A self-documenting API with introspection capabilities.

Key features of LiteAPI GraphQL

  • GraphQL-powered: Query only the data you need.
  • Fast search capabilities: Get live hotel rates with real-time pricing.
  • Seamless booking flow: Search, prebook, and confirm bookings with a single API.
  • Authentication via API Key: Secure access with an API Key.

LiteAPI GraphQL base URL

Here's the base URL you should be using to introspect the GraphQL schema and make requests:

https://graphql.liteapi.travel

Making requests with GraphQL is simple, and most API clients integrate with the automated schema introspection feature of GraphQL to automatically show you all available queries, search criteria, and mutations.


What’s Next