Shopify API, libraries, and tools
Explore Shopify’s API reference and templating documentation. Shopify provides a range of software tools, app templates, example apps, and libraries to accelerate your development process.
Check out your options to see which one is right for you.
Anchor to Build appsBuild apps
Extend Shopify’s core functionality by building apps that integrate into Shopify’s admin, online store, checkout and more.
The GraphQL API lets you build apps and integrations that extend and enhance the Shopify admin. It provides data on products, customers, orders, inventory, fulfillment, and more.
Scale your business with the Partner API. When you use the Partner API, you can access the data found in your Partner Dashboard to automate front and back-office operations.
Use App Bridge to build embedded apps integrated with the Shopify admin.
Build your app's web experiences with Remix, integrate with Shopify APIs, and embed into the Shopify admin.
Shopify’s official package for building apps with React Router >= v7. This package is in early access.
Use the Payments Apps API to manage user account data including payments, refunds, and more.
Use Shopify Function APIs to customize the backend logic that powers parts of Shopify.
Use webhooks to keep apps in sync with Shopify data or to perform an action after a specific event occurs in a shop. Webhooks are a performant alternative to continuously polling APIs.
Anchor to Component libraries, references, and app extensionsComponent libraries, references, and app extensions
Explore the available component libraries and references for building apps. Seamlessly add your app’s functionality to Shopify user interfaces using app extensions.
Use ShopifyQL to write analytical queries and find insights in user store data.
Use Admin UI extensions to create a deeper integration into the Shopify admin.
Use Product subscriptions extensions to help merchants manage selling plans in the Shopify admin.
Use checkout app extensions to extend your app code into checkout and customize many aspects of the checkout experience.
Use Shopify POS app extensions to build custom POS UI extensions, loyalty programs and discounts in Point of Sale shopping carts, as well as product recommendations.
Use web pixel app extensions to collect behavioral data for marketing campaign optimization and analytics.
Use marketing activities app extensions to enable users to manage promotional campaigns and marketing automations from the Marketing page in the Shopify admin.
Anchor to Build custom storefrontsBuild custom storefronts
Build commerce experiences and branded custom storefronts using the Storefront API and Hydrogen.
Build custom shopping experiences for any platform. Render product and inventory details and initiate checkouts from any surface, such as web, mobile, gaming, and more.
Securely manage and personalize customer data such as orders, payments, discounts, refunds, and more, with a single sign-on experience across multiple surfaces.
Use Shopify’s recommended full-stack solution for building headless commerce experiences, with off-the-shelf components, hooks, utilities, and hosting built in.
Explore an unopinionated and performant library of Shopify-specific React components, reusable functions, and utilities for interacting with the Storefront API.
Storefront Web Components bring Shopify-powered commerce capabilities to any website. Display products, showcase collections, and offer a checkout, all with a few lines of embedded HTML.
Anchor to Build themesBuild themes
Help users express their unique brand in their storefront by building a custom theme.
Use Liquid to build or customize Shopify themes using the Liquid template language.
Use the Ajax API to add dynamic elements to Shopify online stores with a lightweight JSON API for product data, recommendations, and shopping cart management.
Use the Section Rendering API to update page content by fetching only partial elements of a page instead of reloading it entirely.
Use the Customer Privacy API to integrate buyer consent and opt-outs.
Anchor to API explorationAPI exploration
Start exploring Shopify's GraphQL Admin and Storefront APIs on a demo shop.
Use the interactive GraphiQL explorer for the Admin API.
Use the interactive GraphiQL explorer for the Storefront API.
Anchor to AI-powered API assistanceAI-powered API assistance
Use AI tools to accelerate your API development workflow, with features like GraphQL generation, REST conversion, and contextual chat assistance. Trained on Shopify data for high accuracy.
Connect any AI assistant to real-time commerce data from Shopify stores with the Model Context Protocol (MCP) servers. Help customers search, ask, and buy in natural language.
Generate GraphQL operations, convert REST requests to GraphQL operations, and get interactive help with Shopify's AI-powered assistant.
Transform your Shopify development workflow with AI-assisted tools that help you build with Shopify. The MCP server integration brings intelligent automation to your favorite development environments, such as Cursor and Windsurf.
Anchor to API librariesAPI libraries
Shopify provides several official libraries for interacting with the GraphQL Admin API. Members of the Shopify developer community have created similar libraries covering other languages and technology stacks.
Anchor to Official Shopify Admin API librariesOfficial Shopify Admin API libraries
Shopify’s official Ruby gem for interacting with the Admin API
A Rails engine for building Shopify Apps
Shopify’s official Node library for interacting with the Storefront and Admin APIs, handling OAuth, webhooks, and billing
Shopify’s official lightweight Node library for interacting with the Admin API
Anchor to Third-party Admin API librariesThird-party Admin API libraries
These libraries are created and maintained by members of the Shopify community. They aren’t official Shopify API libraries.
Anchor to NodeNode
PHP SDK for Shopify API
PHP SDK for development with the Shopify API
A simple, tested, API wrapper for Shopify using Guzzle for GraphQL
Anchor to .NET. NET
Anchor to App templatesApp templates
The following templates can help you start your Shopify app development.
When you scaffold an app using Shopify CLI, you can specify the template that you want to use with the --flavor
flag. Enter remix
, node
, or ruby
to use one of our app templates, or use a third-party template by providing a path to a GitHub repository for the template.
Shopify recommends using the Remix template for most apps.
You can also build an extension-only app, which is an app that contains no app home, and uses the extension-only template. To create an extension-only app, select Build an extension-only app when you create your app. Learn more about extension-only apps.
To learn more about building using the template, and deploying apps built using the template, review the readme in the template repository.
An app template that uses Remix.
An app template for building extension-only apps.
An app template that uses Express, Node.js, and React.
An app template in Ruby and React.
An app template in PHP.
Anchor to Sample appsSample apps
The following examples can help you with your app.
- Shopify QR Code app: An example app based on the Node app template. The app, inspired by Shopcodes, implements basic QR code generation for products and discounts.
- Storefront API apps: A series of example apps that demonstrate how to use the Storefront API. The examples are built and maintained by community members.