Closed rugved-bodke-stigya closed 2 months ago
In [243]: CatalogItems(credentials=obj.credentials, version=CatalogItemsVersion.V_2022_04_01, marketplace=Marketplaces.US).search_catalog_items(keywords=["lemon essential oil"], marketplaceIds=[Marketplaces.U ...: S.marketplace_id], includedData=["summaries"], pageSize=1).payload Out[243]: {'numberOfResults': 1983, 'refinements': {'brands': [{'numberOfResults': 311, 'brandName': 'Generic'}, {'numberOfResults': 132, 'brandName': 'Crysalis'}, {'numberOfResults': 106, 'brandName': 'Plant Therapy'}, {'numberOfResults': 82, 'brandName': 'Mystic Moments'}, {'numberOfResults': 82, 'brandName': 'GreenHealth'}, {'numberOfResults': 66, 'brandName': 'Home Genie'}, {'numberOfResults': 66, 'brandName': 'Eclectic Lady'}, {'numberOfResults': 60, 'brandName': 'Plant Guru'}, {'numberOfResults': 57, 'brandName': 'Aura Cacia'}, {'numberOfResults': 54, 'brandName': 'Handcraft Blends'}], 'classifications': [{'numberOfResults': 2321, 'displayName': 'Health & Household', 'classificationId': '3760931'}, {'numberOfResults': 429, 'displayName': 'Home & Kitchen', 'classificationId': '1063498'}, {'numberOfResults': 7, 'displayName': 'Beauty & Personal Care', 'classificationId': '11055981'}, {'numberOfResults': 3, 'displayName': 'Arts, Crafts & Sewing', 'classificationId': '2617942011'}]}, 'items': [{'asin': 'B0757XL7ZH', 'summaries': [{'marketplaceId': 'ATVPDKIKX0DER', 'adultProduct': False, 'autographed': False, 'brand': 'Handcraft Blends', 'browseClassification': {'displayName': 'Essential Oil Singles', 'classificationId': '18502612011'}, 'itemClassification': 'BASE_PRODUCT', 'itemName': 'Handcraft Blends Lemon Essential Oil - Huge 4 Fl Oz - 100% Pure and Natural - Premium Grade with Glass Dropper', 'manufacturer': 'Handcraft Blends', 'memorabilia': False, 'modelNumber': 'Essential Oils', 'packageQuantity': 1, 'partNumber': 'Essential Oils', 'size': '4 Fl Oz (Pack of 1)', 'tradeInEligible': False, 'websiteDisplayGroup': 'health_and_beauty_display_on_website', 'websiteDisplayGroupName': 'Health and Beauty'}]}]}
as you can check I was trying to request for the search catalog results but at most I can only get the 20 results after setting up the pageSize but unable to get more results due to pagination data is not there in the response
Platform - Windows Python - 3.9
thanks
Hi,
here's the documentation:
You're printing ApiResponse.payload. Try printing ApiResponse instead.
as you can check I was trying to request for the search catalog results but at most I can only get the 20 results after setting up the pageSize but unable to get more results due to pagination data is not there in the response
Platform - Windows Python - 3.9
thanks