An unofficial NodeJS API for http://www.selfridges.com
- Download selfridges.js
- Copy the file to your node directory
const selfridges = require("./selfridges.js");
const selfridges = require("./selfridges.js");
selfridges.GetProductDetails(url, stock, (data) => {
//console.log(data);
});| Name | Type | Description | Example |
|---|---|---|---|
| url | string | url of the product you are fetching data from | http://www.selfridges.com/GB/en/cat/off-white-c-o-virgil-abloh-camo-print-cotton-jersey-top_436-3003613-OMAB001S18878012 |
| stock | boolean | true/false depending on if you want to return stock data | true |
| data | object | retrieved data | N/A |
selfridges-api is licensed under MIT License.