stockx-scraper
TypeScript icon, indicating that this package has built-in type declarations

2.2.3 • Public • Published

stockx-scraper v2

Scrape sneakers data using dynamic parameters like proxy (rotating support), cookie, country and currency.

It also support typescript and full sizes conversions (EU, UK, JP...)

Install

npm i stockx-scraper

Usage

const { StockxClient } = require("stockx-scraper");

const client = new StockxClient({
    currencyCode: "EUR" // default USD
    countryCode: "FR" // default US
    languageCode: "FR" // default EN
    proxys: [
        "http://username:pass@ip:port",
        "http://username:pass@ip:port"
        ...
    ],
    cookie: "Your cookie here" // by default module create it's own
})

Methods

const products = await client.search({
    query: "yeezy"
});

const firstResult = products[0];

// fetch variants and some data
await firstResult.fetch();

// get related products
const related = await firstResult.getRelatedProducts();

// related works like normal products
await related[0].fetch();

Even without calling .fetch(), a product will always contains

  • name
  • sku
  • description
  • image (url)
  • url
  • uuid
  • seller (nike, adidas...)
  • colorway

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.2.317latest

Version History

VersionDownloads (Last 7 Days)Published
2.2.317
2.2.20
2.2.10
2.2.00
2.1.00
2.0.20
2.0.10
2.0.00
1.6.111
1.6.100
1.6.90
1.6.80
1.6.60
1.6.50
1.6.40
1.6.30
1.6.20
1.6.10
1.6.00
1.5.20
1.5.10
1.5.00
1.4.00
1.3.00
1.2.30
1.2.20
1.2.10
1.2.01
1.1.41
1.1.30
1.1.21
1.1.10
1.1.00
1.0.92
1.0.71
1.0.61
1.0.50
1.0.40
1.0.30
1.0.20
1.0.11
1.0.00

Package Sidebar

Install

npm i stockx-scraper

Weekly Downloads

26

Version

2.2.3

License

ISC

Unpacked Size

37.1 kB

Total Files

24

Last publish

Collaborators

  • iyarsius