Depict AI Documentation home pagelight logodark logo
  • Contact us
  • Contact us
JavaScript API Client
Import
Home
Guide: Data ingestion
Guide: Depict UI integration (React)
Guide: Depict UI integration (JavaScript)
Guide: Shopify app
Guide: API integration
Other guides
Reference
Overview
  • Integrating with the Depict API
  • Data Ingestion
Recommendations
  • Introduction
  • JavaScript API Client
    • Installation
    • Import
    • Fetching recommendations
    • API Client - Completed
  • Interfacing directly with the API
Tracking
  • Introduction
  • Installing DPC
  • Importing DPC
  • Initialising DPC
  • Product Card Tracking
  • Product Page Tracking
  • Add to cart tracking
  • Purchase tracking
  • Tracking - Completed
JavaScript API Client

Import

How to import the Depict API client.

Add the following to the beginning of the file where you want to use the fetchDepictRecommendations function:

import { fetchDepictRecommendations } from "@depict-ai/js-ui";

Was this page helpful?

InstallationFetching recommendations
websitelinkedin
Powered by Mintlify