---
schema_version: "1"
id: b63264a0f1a94e1a7ae460c8b0f1edab11afdb610a32d8b19bc22efb01cd40dd
title: Commerce Einstein APIs
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/salesforce-commerce/guides/d2c-commerce/b2b-b2c-comm-einstein-apis.md
canonical_url: https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-b2c-comm-einstein-apis.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 01b372872584b7e0857d97279c1197281eb42e435f1e531f88e29f14cd86448e
products:
  - B2B Commerce Developer Guide
  - Salesforce APIs
---
# Commerce Einstein APIs

Use Activity Tracking and Product Recommendation APIs to call Einstein Recommendations for your Salesforce Commerce B2C and B2B stores. These APIs provide access to underlying data behind Einstein Recommendations and enable modification of the front-end experience with custom Lightning web components or Aura components.

Einstein product recommendations require activity tracking data. For example, tracking the viewProduct activity provides insight into top-viewed products. The Activity Tracking API provides access to these activities for use in B2B and B2C Einstein Recommendations components.

Calls to the Product Recommendation API deliver Einstein recommendations. For Salesforce Commerce for B2C Einstein Recommendations components, the API is accessed using a [wire adapter](https://lwc.dev/guide/wire_adapter). The Product Recommendation API returns a set of products to populate the Einstein Recommendations component.

For Salesforce Commerce for B2B Einstein Recommendations components, use the Commerce Einstein Recommendations Connect REST API to select and deliver recommendations. Using the Connect REST API ensures appropriate product entitlement filtering before recommendations are delivered.

**See Also**

- [Prepare Commerce Einstein to Use Custom Components](https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-b2c-comm-prepare-einstein-custom-comps.md)
- [Create a Custom Recommendations Component for B2C Stores Using Commerce Einstein APIs](https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-b2c-comm-create-b2c-cust-ein-reco-comp.md)
- [Create a Custom Recommendations Component for B2B Stores Using Commerce Einstein APIs](https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-b2c-comm-create-b2b-cust-ein-reco-comp.md)
- [Commerce Einstein Recommendations API Reference](https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-b2c-comm-einstein-recs-api-ref.md)
