1. Home
  2. Docs
  3. Leo Product Recommendatio...
  4. Developer Docs
  5. REST API (Pro Feature)

REST API (Pro Feature)

To get product recommendation date for specific product use following API.

GET: /wp-json/lpr/v1/product-recommend/<id>
id: Product ID 

For example: To get production json data of product id 10
yourwebsite.com/wp-json/lpr/v1/product-recommendations/10

Leo Product Recommendations also provides API endpoint for getting date.

GET: /wp-json/wpr/v1/settings

Example: To get json date of WooCommerce Product Recommendations
yourwebsite.com/wp-json/wpr/v1/settings

How can we help?