Shopify Ajax API reference

Shopify’s Ajax API can be used in Shopify themes to carry out actions like adding items to the cart, and displaying suggested products without requiring any page refreshes from buyers.

The Ajax API includes the following endpoints:

  • Cart - Update cart line items, attributes, and notes.
  • Product - Fetch information about any product in the catalog.
  • Product Recommendations - Display recommended products on product pages.
  • Predictive Search - Suggest products, collections, pages and articles to buyers as they type their search queries.