Skip to main content
All CollectionsData SourcesBasics
Data Source "Endpoints" - General Overview
Data Source "Endpoints" - General Overview

What are endpoints and how do I use them?

Christian Sokolowski avatar
Written by Christian Sokolowski
Updated yesterday

Rebuy Endpoints

Rebuy has created different endpoints that will return pre-built, custom rules when selected, saving you time when building your personalized widgets. The endpoints built with AI are training/learning and giving updated recommendations based on individual and collective customer data. The Category endpoints are pulling data and recommending products that meet a set of specific characteristics.

AI Endpoints

Rebuy’s AI Endpoints will watch and respond to customer trends without needing any additional effort from you. Recommendations to customers shift as needed based on the data that Rebuy’s proprietary AI is pulling from.

Pro tip: Use an AI endpoint as the last rule in any custom ruleset in order to make sure the widget is always displaying product recommendations.

Recommended (AI)

This endpoint looks at the input product(s) and then cross references them with other products that customers have purchased. This AI is always training and updating to give the most up-to-date product recommendations for customers.

How It Works

  • The endpoint uses data from purchases to identify relationships between products.

  • It dynamically updates and trains its AI model to ensure recommendations are always current and aligned with customer purchasing trends.

Pro tip: Use this as a dynamic “Customers Also Bought” function to your website.

Similar Products (AI)

The Similar Products endpoint is designed to enhance product discovery by recommending items that closely match the product a customer is currently viewing. This feature leverages various data sources to make its recommendations highly relevant and personalized.

How It Works

The endpoint analyzes data from three key areas:

  1. Product Data: Tags, types, and other product attributes.

  2. Customer-Specific Data: Information such as cart contents and past orders.

  3. Storefront-Wide Data: General product details, conversion metrics, and overall store performance.

Pro tip: Use this endpoint on Product Display Pages to offer alternatives for your customers. This can also be used in Post-Purchase to recommend a product that’s similar to one that the customer just purchased.


Category Endpoints

Category endpoints will pull and display product recommendations to customers based on specific characteristics. Rebuy regularly checks and updates data to ensure that Category endpoints are displaying the most up to date information.

Top Sellers

The Top Sellers feature dynamically displays the products from your store with the highest sales volume over a selected period. By default, this feature pulls sales data from the past 90 days, but users can customize the time frame to display sales rankings from any period between 1 and 90 days.

How It Works

  • Rebuy automatically collects and updates sales history regularly.

  • The default setting for all existing calls to Top Sellers is 90 days, but you can modify it to suit your needs.

Customizing the Time Frame

  • Select a time frame between 1 and 90 days in the settings.

  • The system will recalculate and update the rankings based on the selected period.

Pro tip: Use this endpoint paired with a widget on the home page in order to show customers the most popular items from your store. Learn more about creating a Home Page widget.

The "Top Sellers" feature considers only the sales volume from the last 90 days and does not factor in the product's price. Therefore, it prioritizes products with a higher total sales count, regardless of their individual monetary value. Keep in mind that this endpoint may favor items with more frequent sales over those with a higher monetary value.

Buy it Again

The Buy It Again endpoint allows you to display items that a customer has previously purchased, making it easy for them to reorder their favorites. This feature is only available when the customer is logged into their store account.

How It Works

  • When a logged-in customer visits your store, the endpoint retrieves their past purchase history to recommend products they've bought before.

  • The endpoint can be paired with other customer-based input rules for enhanced personalization and relevance.

Pro tip: Use this endpoint along with an account page widget.

Recently Viewed

The Recently Viewed endpoint allows you to showcase products that a customer has previously navigated to and viewed on your store. This feature helps customers quickly return to items they’re interested in, improving their shopping experience and driving conversions.

How It Works

  • The endpoint tracks the products a customer has visited during their session.

  • It dynamically updates to display the most recently viewed items, keeping the list relevant and timely.

Trending Products

The Trending Products endpoint identifies and highlights products that are gaining popularity based on recent sales data. This feature is great for showcasing items that are currently in demand, driving urgency, and boosting sales.

How It Works

  • The endpoint analyzes sales data from the past few days over a 30-day sales period.

  • It compares the current sales period to the previous one, focusing on products with a noticeable increase in sales volume.

  • Products that show a strong upward trend are flagged and displayed as trending.

It is important to note that these products may differ significantly from the top-selling items. If there are no trending products in the results, the system will default to using top sellers as the closest alternative. This ensures that a listing with no results is not returned.


Custom Endpoints

Custom endpoints allow you to point a Data Source rule to another pre-configured Data Source (essentially a nested set of rules). This feature can be helpful for consolidating your rule sets and reducing the total number of rules in a single Data Source.

To get started, set the "RETURN" statement in your rule to "Endpoint", then select "Custom Endpoints".

Then search for and select your pre-existing Data Source source from the Custom Endpoints dropdown menu.

NOTE: This feature is recommended for advanced Rebuy users. For those new to Data Source custom endpoints, we recommend setting up an Optimization Call with our Merchant Success Team here to can discuss the optimal Data Source configuration for your custom use-case.

Did this answer your question?