Using Python and SGQLC with Shopify’s latest API (2025-01):
$ python3 -m sgqlc.introspection https://<subdomain>.myshopify.com/admin/api/2025-01/graphql.json -H "X-Shopify-Access-Token: <secret>"
{
"data": {
"__schema": {
"directives": [
{
"args": [
{
"defaultValue": "null",
...
Incidentally, Shopify’s Python client establishes the schema’s URL here: