Skip to main content

About REST to GraphQL migration

Legacy

The REST Admin API is a legacy API as of October 1, 2024. All apps and integrations should be built with the GraphQL Admin API. Read on to learn how to migrate from the REST Admin API to the GraphQL Admin API.

GraphQL is Shopify's technology of choice for building APIs. GraphQL addresses several problems that might sound familiar to anyone who's worked with a REST API.

You can migrate your apps to use the GraphQL Admin API instead of the REST Admin API to take advantage of the benefits of GraphQL.

This section includes guides and resources to help you with the migration process.


Anchor to Why migrate to GraphQLWhy migrate to GraphQL

The GraphQL Admin API offers several advantages over REST:

  • Request only what you need: Unlike REST endpoints that return fixed data structures, GraphQL lets you specify exactly which fields you want. This reduces payload sizes and improves performance.
  • Single request for related data: Retrieve information about related objects with a single request using connections, eliminating the need to chain multiple REST API calls.
  • Strongly typed schema: GraphQL's type system provides built-in documentation and validation, making it easier to understand what data is available and how to request it.
  • Better performance: GraphQL's calculated query cost model is more efficient than REST's request-based rate limiting, allowing you to do more with your rate limit budget.
  • Future-proof: New Shopify features and improvements are released in GraphQL first. The REST Admin API is in maintenance mode and receives only critical updates.

Refer to the following resources to start migrating from REST to GraphQL:


Anchor to Developer tools and resourcesDeveloper tools and resources

Explore the following developer tools and resources to learn more about Shopify GraphQL APIs.


Was this page helpful?