Playground

Try it For Yourself

API Playground is an interactive, fun, and super quick way to get to know our APIs.

In the API Playground, as you start to type the query, it will autocomplete with the fields available to complete your query parameters. You can also click on the green Schema button on the right of the Playground window to learn more about our data model and to see all of the options available for building your query.

You can set Query variables in the bottom left pane of the Playground. This lets you customize the response you will receive so that only the fields you need are returned in the response.

(insert a GIF like the one in the launchpad blog post)

Your First Query

Try to make a query now for searching for hotels available:

query (hotels in Mallorca)

Click on the big play button in the middle of the playground to see the response.

You should get the following:

(put in query response)

More Queries

Now try these query examples:

1. Add query variables to search for a particular date range - explain/show

2. Search for hotels in Mallorca with a swimming pool - explain/show

Once you are comfortable with making queries in the API Playground, you can use the same query structure in your applications. Check out the pages Learning GraphQL to learn more about including queries in the code of your client applications.

Further Reading