🌐
GitHub
github.com › Shopify › shopify-api-js › blob › main › packages › shopify-api › docs › reference › clients › Graphql.md
shopify-api-js/packages/shopify-api/docs/reference/clients/Graphql.md at main · Shopify/shopify-api-js
// Requests to /my-endpoint must be made with authenticatedFetch from App Bridge for embedded apps app.get('/my-endpoint', async () => { const sessionId = await shopify.session.getCurrentId({ isOnline: true, rawRequest: req, rawResponse: res, }); // use sessionId to retrieve session from app's session storage // getSessionFromStorage() must be provided by application const session = await getSessionFromStorage(sessionId); const client = new shopify.clients.Graphql({ session, apiVersion: ApiVersion.January23, }); }); ... The Shopify Session containing an access token to the API. ... This will override the default API version. Any requests made by this client will reach this version instead. Sends a request to the Admin API. const response = await client.request( `{ products (first: 10) { edges { node { id title descriptionHtml } } } }`, ); console.log(response.data, response.extensions);
Author   Shopify
🌐
GitHub
github.com › Shopify › graphql-design-tutorial › blob › master › TUTORIAL.md
graphql-design-tutorial/TUTORIAL.md at master · Shopify/graphql-design-tutorial
This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API. It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years.
Author   Shopify
🌐
Shopify
shopify.dev › docs › api › admin-graphql
GraphQL Admin API reference
Explore and learn Shopify's Admin API using GraphiQL Explorer. To build queries and mutations with shop data, install Shopify’s GraphiQL app. ... import { authenticate } from "../shopify.server"; export async function loader({request}) { const ...
🌐
Shopify
shopify.dev › docs › api › admin-graphql › latest › objects › Product
Product - GraphQL Admin
The `Product` object lets you manage products in a merchant’s store. Products are the goods and services that merchants offer to customers. They can include various details such as title, description, price, images, and options such as size or color. You can use [product variants](https:...
🌐
GitHub
github.com › Shopify › shopify_python_api
GitHub - Shopify/shopify_python_api: ShopifyAPI library allows Python developers to programmatically access the admin section of stores
session = shopify.Session(shop_url, api_version, access_token) shopify.ShopifyResource.activate_session(session) # Note: REST API examples will be deprecated in 2025 shop = shopify.Shop.current() # Get the current shop product = shopify.Product.find(179761209) # Get a specific product # GraphQL API example shopify.GraphQL().execute("{ shop { name id } }")
Starred by 1.4K users
Forked by 386 users
Languages   Python
🌐
Shopify
shopify.github.io › shopify-api-ruby › usage › graphql.html
Make a GraphQL API call | shopify-api-ruby
If you would like to give your front end the ability to make authenticated graphql queries to the Shopify Admin API, the shopify_api gem makes proxy-ing a graphql request easy! The gem provides a utility function which will accept the raw request body (a GraphQL query), the headers, and the ...
🌐
GitHub
github.com › kirillplatonov › shopify_graphql
GitHub - kirillplatonov/shopify_graphql: Less painful way to work with Shopify Graphql API in Ruby.
The gem exposes Graphql rate limit extensions in response object: ... And adds a helper to check if available points lower than threshold (useful for implementing API backoff): ... response = GetProduct.call(id: "gid://shopify/Product/PRODUCT_GID") response.points_left # => 1999 response.points_limit # => 2000.0 response.points_restore_rate # => 100.0 response.query_cost # => 1 response.points_maxed?(threshold: 100) # => false
Starred by 78 users
Forked by 11 users
Languages   Ruby 91.3% | HTML 7.1%
🌐
GitHub
github.com › Shopify › graphql-js-client
GitHub - Shopify/graphql-js-client: A Relay compliant GraphQL client.
import GraphQLClient from 'graphql-js-client'; // This is the generated type bundle from graphql-js-schema import types from './types.js'; const client = new GraphQLClient(types, { url: 'https://graphql.myshopify.com/api/graphql', fetcherOptions: { headers: { Authorization: 'Basic aGV5LXRoZXJlLWZyZWluZCA=' } } }); const query = client.query((root) => { root.add('shop', (shop) => { shop.add('name'); shop.addConnection('products', {args: {first: 10}}, (product) => { product.add('title'); }); }); }); /* Will generate the following query: query { shop { name products (first: 10) { pageInfo { hasNextPage hasPreviousPage } edges { cursor node { id title } } } } } Note: things that implement Node will automatically have the id added to the query.
Starred by 196 users
Forked by 38 users
Languages   JavaScript 99.6% | HTML 0.4%
Find elsewhere
🌐
GitHub
github.com › topics › shopify-graphql-api
shopify-graphql-api · GitHub Topics · GitHub
python graphql jquery django shopify shopify-api jquery-ajax shopify-sdk shopify-python shopify-python-app shopify-app shopify-graphql-api ... An example repo using Nest Commander to fetch Shopify products via Shopify Admin Graphql API, given a searchString via CLI (using exponential backoff).
🌐
GitHub
github.com › Shopify › shopify-app-js › blob › main › packages › apps › shopify-api › docs › guides › graphql-types.md
shopify-app-js/packages/apps/shopify-api/docs/guides/graphql-types.md at main · Shopify/shopify-app-js
Only named queries are parsed by graphql-codegen, for instance productHandles below. Always make sure to name your queries for them to be typed. const client = new api.clients.Graphql({session}); const response = await client.request( `#graphql query productHandles($first: Int!)
Author   Shopify
🌐
GitHub
github.com › Shopify › graphql-design-tutorial
GitHub - Shopify/graphql-design-tutorial
This tutorial was originally created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API. It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years.
Starred by 2.5K users
Forked by 191 users
🌐
GitHub
github.com › Shopify › storefront-api-learning-kit
GitHub - Shopify/storefront-api-learning-kit
This repo provides example queries demonstrating how to use Shopify's GraphQL Storefront API. Downloading the Storefront API insomnia collection package, gives you access to a complete set of sample queries for use in the Insomnia http client.
Starred by 433 users
Forked by 87 users
Languages   JavaScript
🌐
GitHub
github.com › shopifychamp › shopify-api-php-sdk
GitHub - shopifychamp/shopify-api-php-sdk: PHP SDK for Shopify REST and GraphQL API
PHP SDK helps to connect with shopify Public App and Private App using REST Api and Graphql. Call GET, POST, PUT and DELETE RestApi method. Process GraphQL Admin API for Query root and Mutations.
Starred by 7 users
Forked by 4 users
Languages   PHP
🌐
GitHub
github.com › Convead › shopify_api › blob › master › docs › graphql.md
shopify_api/docs/graphql.md at master · Convead/shopify_api
ShopifyAPI::GraphQL.schema_location = 'assets/schemas' Each time you want to use a new API version, or update an existing one (such as the unstable version), simply run the Rake task again to overwrite the file.
Author   Convead
🌐
Shopify
shopify.dev › docs › api › admin-graphql › latest › queries › products
products - GraphQL Admin
query GetProducts { products(first: 10) { nodes { id title } } } curl -X POST \ https://your-development-store.myshopify.com/admin/api/2025-10/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "query GetProducts { products(first: 10) { nodes { id title } } }" }'
🌐
GitHub
github.com › Shopify › shopify-api-js › blob › main › packages › shopify-api › docs › guides › graphql-types.md
shopify-api-js/packages/shopify-api/docs/guides/graphql-types.md at main · Shopify/shopify-api-js
pnpm add --save-dev @shopify/api-codegen-preset pnpm add @shopify/admin-api-client @shopify/storefront-api-client ... The app will need to add the clients as direct dependencies so Codegen can overload the types with the ones parsed from your code. The codegen package includes all the dependencies you'll need to run @graphql-codegen/cli, including the graphql-codegen script.
Author   Shopify
🌐
GitHub
github.com › gnikyt › Basic-Shopify-API
GitHub - gnikyt/Basic-Shopify-API: A simple API wrapper for Shopify using Guzzle for REST and GraphQL
A simple, tested, API wrapper for Shopify using Guzzle. It supports both the sync/async REST and GraphQL API provided by Shopify, basic rate limiting, and request retries.
Starred by 238 users
Forked by 67 users
Languages   PHP
🌐
GitHub
github.com › Shopify › shopify-api-js
GitHub - Shopify/shopify-api-js: Shopify Admin API Library for Node. Accelerate development with support for authentication, graphql proxy, webhooks
A library to interact with Shopify's GraphQL Storefront API.
Starred by 956 users
Forked by 384 users
Languages   TypeScript 99.9% | JavaScript 0.1%
🌐
GitHub
github.com › nozzlegear › ShopifySharp › wiki › GraphQL
GraphQL
ShopifySharp is a .NET library that helps developers easily authenticate with and manage Shopify stores using Shopify's GraphQL API. - nozzlegear/ShopifySharp
Author   nozzlegear