Catalog108 / challenges / api/graphql/playground
GraphQL, introspection enabled
What this challenge teaches
Teaches: POST {query} to /api/graphql. Introspection is on, so you can discover the schema.
Expected output: Run a products query and retrieve { id, name, price, brand }.
Submit your scraper's JSON output to /challenges/api/graphql/playground/grade
(grader endpoint is part of a later phase; URL is reserved now).
# Send a normal query
curl -sX POST -H "Content-Type: application/json" \
-d '{"query":"{ products(limit: 3) { id name price brand } }"}' \
"https://practice.scrapingcentral.com/api/graphql"
# Discover the schema via introspection
curl -sX POST -H "Content-Type: application/json" \
-d '{"query":"{ __schema { types { name kind } } }"}' \
"https://practice.scrapingcentral.com/api/graphql"