How to Test GraphQL Queries Online

Test GraphQL queries, mutations, and subscriptions against any endpoint. Free online GraphQL playground with syntax highlighting, variables support, and response inspection.

Open API Tester →

Step-by-Step Guide

1

Enter your GraphQL endpoint

Paste your GraphQL API URL into the endpoint field. This is typically something like https://api.example.com/graphql. Add any required headers like Authorization tokens or API keys in the headers section.

2

Write your query

Type your GraphQL query in the editor. Start simple — try a basic query like { users { id name email } } to verify the connection works. The tool provides syntax highlighting to catch errors as you type.

3

Add variables if needed

For parameterized queries, add variables in JSON format. For example, if your query uses $id: ID!, set variables to { "id": "123" }. This keeps your queries reusable and mirrors how your app will call the API.

4

Execute and inspect the response

Hit send to execute the query. Review the JSON response — check the data shape matches your expectations, look for errors in the "errors" array, and verify nested relationships resolve correctly. Copy the response for documentation or debugging.

Try It Now — Free

No signup, no download. Runs entirely in your browser.

Open API Tester

Frequently Asked Questions

What is the difference between a query and a mutation?
Queries read data (like GET requests) — they fetch without side effects. Mutations write data (like POST/PUT/DELETE) — they create, update, or delete records. By convention, queries are idempotent while mutations change server state.
How do I handle authentication in GraphQL?
Most GraphQL APIs use Bearer tokens in the Authorization header: "Authorization: Bearer your-token". Some use API keys in custom headers. Add these in the headers section of the tool before sending your query.
Can I test subscriptions with this tool?
The API tester supports standard HTTP-based GraphQL queries and mutations. For WebSocket-based subscriptions, you would need a dedicated GraphQL client like Apollo Studio or Altair that supports the ws:// protocol.
Related Reference

GraphQL Cheat Sheet

View Cheat Sheet →

More Guides