diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -41,6 +41,7 @@ function WooCommerceAPI(opt) {
  */
 WooCommerceAPI.prototype._setDefaultsOptions = function(opt) {
   this.url             = opt.url;
+  this.wpAPI           = opt.wpAPI || false;
   this.version         = opt.version || 'v3';
   this.isSsl           = /^https/i.test(this.url);
   this.consumerKey     = opt.consumerKey;
@@ -94,7 +95,9 @@ WooCommerceAPI.prototype._normalizeQueryString = function(url) {
  */
 WooCommerceAPI.prototype._getUrl = function(endpoint) {
   var url = '/' === this.url.slice(-1) ? this.url : this.url + '/';
-  url = url + 'wc-api/' + this.version + '/' + endpoint;
+  var api = this.wpAPI ? 'wp-json/' : 'wc-api/';
+
+  url = url + api + this.version + '/' + endpoint;
 
   // Include port.
   if ('' !== this.port) {
Added support for WP REST API