HM - Hennes Mauritz

फ्रीमियम
द्वारा Api Dojo | अपडेट किया गया 10 महीने पहले | eCommerce
लोकप्रियता

9.4 / 10

लेटेंसी

4,473ms

सेवा का स्तर

100%

सभी चर्चाओं पर वापस जाएं

current page 1001 of total number of pages 1004 returns zero products

avatar
dwalter
एक वर्ष पहले

https://apidojo-hm-hennes-mauritz-v1.p.rapidapi.com/products/list?country=de&lang=de&currentpage=1001&pagesize=30

{5 items
"results":[0 items
]
"pagination":{6 items
"pageSize":30
"currentPage":1001
"sort":"stock"
"numberOfPages":1004
"totalNumberOfResults":30100
"totalNumberOfResultsUnfiltered":0
}
"facets":[...]32 items
"freeTextSearch":""
"baseUrl":"https://www2.hm.com"
}
avatar
dwalter commented एक वर्ष पहले

Only 330 pages return products. So we cant get the complete list of products stated in pagination field:

pagination":{6 items
"pageSize":30
"currentPage":333
"sort":"stock"
"numberOfPages":1001
"totalNumberOfResults":30020
"totalNumberOfResultsUnfiltered":0
}
avatar
apidojo commented एक वर्ष पहले

Hello,

You may try the official site/application and they should have the same behaviour. In general, all endpoints follow UX/UI design the site/application, they are intended to be use with an actual interface, but you want to scrape for data, don’t you? There is no users going through that large amount of pages in real world.

Regards.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें
रेटिंग: 5 - वोट: 1