GraphQL Playground
Execute GraphQL queries and mutations against any public API endpoint directly in your browser. Write queries with variables, see syntax-highlighted JSON responses, and measure response times — no install or signup required.
Frequently Asked Questions
What is the GraphQL Playground?▼
The GraphQL Playground is a browser-based tool for writing and executing GraphQL queries against any public GraphQL API. Enter your endpoint URL, write a query, set variables, and click Run — results appear instantly with syntax highlighting.
Which GraphQL APIs can I query?▼
Any public GraphQL API that allows CORS from browsers. The playground ships with three example queries against the free Countries GraphQL API. You can replace the endpoint with any other public GraphQL API URL.
Why do I get a CORS error with my API?▼
Browsers block cross-origin requests unless the target server sets CORS headers. Private or internal APIs typically don't allow browser requests. Use this playground with public GraphQL APIs, or enable CORS on your dev server for local testing.
How do I pass variables to a query?▼
Click the Variables tab in the editor panel and enter a JSON object with your variable values (e.g., { "code": "US" }). Declare the variable types in your query using the standard GraphQL syntax ($code: ID!).
What does the response time indicator show?▼
The green millisecond counter next to 'Response' shows the round-trip time for your GraphQL request, measured from when you clicked Run to when the full response was received. Useful for quick performance checks.
Can I use this with GraphQL mutations?▼
Yes. Paste any valid GraphQL operation into the Query tab — queries, mutations, and subscriptions (where supported by the API). The tool sends a standard HTTP POST to the endpoint with your operation and variables.
Related Products
on GumroadAPI Testing Cheatsheet Pack
Quick-reference cheatsheets for REST, GraphQL, and WebSocket testing. Includes Postman collections, shell scripts for smoke tests and load tests, and JWT decoder.
Buy on Gumroad →DevToolkit Starter Kit
A ready-to-deploy developer tools website with 12 built-in tools. Astro + Preact + Tailwind. Deploy to Cloudflare Pages for free. Built-in SEO, dark mode, and ad-ready layout.
Buy on Gumroad →TypeScript Quick Reference Toolkit
5 practical reference files for TypeScript developers: cheatsheet, TS vs JS comparison, 20 utility types with real examples, tsconfig best practices template, and 15 common mistakes guide. Print it. Keep it on your desk.
Buy on Gumroad →You Might Also Need
GraphQL Query Builder
Build GraphQL queries visually from your schema SDL. Select root fields, pick sub-fields, add arguments, and generate query/mutation/subscription strings instantly. Supports nested types.
Open free tool →
OpenAPI Validator
Paste your OpenAPI 3.x spec (YAML or JSON) to validate structure, find missing required fields, detect duplicate paths, check for missing operationIds, and get errors and warnings with path references.
Open free tool →
HTTP Status Code Reference
Complete HTTP status code reference. Search all 1xx, 2xx, 3xx, 4xx, and 5xx codes with plain-English descriptions, real-world use cases, and when to use each in REST APIs.
Open free tool →
More Free Tools
Related Articles
API Testing Tools Comparison 2025: Postman vs Insomnia vs Bruno vs Alternatives
Compare the best API testing tools in 2025: Postman, Insomnia, Bruno, Hoppscotch, and browser-based options. Features, pricing, and which to use for your team.
10 Best Free API Testing Tools in 2025 (Postman Alternatives Included)
Best free API testing tools in 2025: Postman free tier, Bruno, Insomnia, Hoppscotch, HTTPie, Thunder Client, and more. Full feature comparison included.
curl Command Examples for REST APIs (2025 Reference)
Practical curl command examples for testing REST APIs. Covers GET, POST, PUT, DELETE, authentication, headers, file uploads, response handling, and debugging flags.
curl 深度使用手冊:API 測試從入門到進階
curl 是每位開發者必備的 CLI 工具。本文涵蓋 GET/POST/PUT/DELETE 請求、認證、header 設定、檔案上傳、除錯技巧,以及 REST API 測試的完整實戰範例。
GraphQL Federation vs REST Microservices: Which Architecture in 2026?
Compare GraphQL Federation vs REST microservices — Apollo Federation, schema stitching, performance, team scaling, migration paths, and when to choose each in 2026.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →