Shopify Ajax API

The Ajax APIs allow developers to build creative, interactive buying experiences on Shopify themes. By using the various JSON endpoints, you update cart line items and display suggested products without requiring any page refreshes from buyers.

Getting started with Ajax APIs

Use cases

  • Update HTML elements in Shopify themes asynchronously.
  • Add products to the cart and update the cart item counter.
  • Fetch and display basic product information.
  • Display related product recommendations.
  • Suggest products and collections to visitors as they type in a search field.

Requirements

  • This is an unauthenticated API. It doesn’t require access tokens or API keys to access.
  • There are no hard rate limits on the Ajax API. It’s still subject to Shopify’s standard API abuse-prevention measures.
  • This API returns responses as JSON.

Reference

Tutorials