---
title: Shopify Ajax API reference
description: >-
  Learn about the calls that the Ajax API can make and the responses it will
  return.
source_url:
  html: 'https://shopify.dev/docs/api/ajax/reference'
  md: 'https://shopify.dev/docs/api/ajax/reference.md'
---

# Shopify Ajax API reference

Shopify’s Ajax API can be used in [Shopify themes](https://shopify.dev/docs/storefronts/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**](https://shopify.dev/docs/api/ajax/reference/cart) - Update cart line items, attributes, and notes.
* [**Product**](https://shopify.dev/docs/api/ajax/reference/product) - Fetch information about any product in the catalog.
* [**Product Recommendations**](https://shopify.dev/docs/api/ajax/reference/product-recommendations) - Display recommended products on product pages.
* [**Predictive Search**](https://shopify.dev/docs/api/ajax/reference/predictive-search) - Suggest products, collections, pages and articles to buyers as they type their search queries.

***
