GraphQL Playground
Test and debug GraphQL queries in your browser. Execute queries, mutations, introspect schemas, validate syntax, and explore public GraphQL APIs.
Loading tool...
What is GraphQL Playground?
GraphQL Playground is an interactive development environment for GraphQL. It lets you write, validate, and execute GraphQL queries against any GraphQL API endpoint directly from your browser β no CLI, no local setup. You can explore API schemas, pass variables and headers, and inspect responses in real time.
Key Benefits
- Test GraphQL APIs without installing any software
- Validate query syntax before sending requests
- Explore API schema with introspection
- Debug queries with formatted JSON responses
- Works with any CORS-enabled GraphQL endpoint
Common Use Cases
- β’Frontend developers testing API responses
- β’API teams debugging schema changes
- β’Learning GraphQL with public APIs
- β’Quick API exploration before integration
- β’Validating query syntax on the fly
How to Use GraphQL Playground
- Enter the endpoint URL: Paste your GraphQL endpoint URL. The default uses the public Countries API (countries.trevorblades.com).
- Write your query: Type your GraphQL query or mutation in the query editor. Use the Validate button to check syntax before sending.
- Add variables and headers: Optionally expand the Variables and Headers panels to pass JSON variables or authentication tokens.
- Execute and inspect: Click Execute to send the request. The response appears in formatted JSON. Use Schema to introspect the API.
Key Features
- Execute GraphQL queries against any CORS-enabled endpoint
- Full support for query, mutation, and subscription syntax
- Pass variables and custom headers with your requests
- Schema introspection β explore types and fields automatically
- Syntax validation and auto-formatting via graphql library