Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // snkrs de
- // Open devTools and paste into console
- const resp = await fetch("https://api.nike.com/product_feed/threads/v2/?anchor=0&count=36&filter=marketplace%28DE%29&filter=language%28de%29&filter=upcoming%28true%29&filter=channelId%28010794e5-35fe-4e32-aaff-cd2c74f89d61%29&filter=exclusiveAccess%28true%2Cfalse%29", {
- "headers": {
- "accept": "*/*",
- "accept-language": "en-US,en;q=0.9,ru;q=0.8",
- "appid": "com.nike.commerce.snkrs.web",
- "content-type": "application/json; charset=UTF-8",
- },
- "referrer": "https://www.nike.com/",
- "referrerPolicy": "strict-origin-when-cross-origin",
- "body": null,
- "method": "GET",
- "mode": "cors",
- "credentials": "omit"
- });
- const json = await resp.json()
- const productsObject = json.objects
- for (const product of productsObject) {
- if (!product.productInfo) continue
- const slug = product.publishedContent.properties.seo.slug
- const title = product.publishedContent.properties.coverCard.properties.title
- console.group(`${slug} - ${title}`)
- for (const model of product.productInfo) {
- console.group(model.merchProduct.labelName)
- for (const size of model.skus) {
- console.log('size:', size.nikeSize )
- }
- console.groupEnd()
- }
- console.groupEnd()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement