import requests headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0", "Accept": "*/*", "Accept-Language": "en-US,en;q=0.9", # 'Accept-Encoding': 'gzip, deflate, br, zstd', "Content-Type": "application/x-www-form-urlencoded", "Origin": "https://www.samsung.com", "Connection": "keep-alive", "Referer": "https://www.samsung.com/", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "Priority": "u=0", # Requests doesn't support trailers # 'TE': 'trailers', } data = { "clientCode": "b2c", "clientName": "scom_pf", "firstSearchYN": "true", "countryCode": "us", "storeID": "us_education", "startIndex": "0", "requestCount": "16", "category_code": "08030000", # "filters": '[{"name":"Type","values":["Wall Ovens"],"value_norm":["Wall Ovens"]}]', "sort": "newest", } response = requests.post( "https://sribsrch.ecom.samsung.com/estoresearch-api/v1/scom/us/pf_search", headers=headers, data=data, ) print(response.json()) with open("resp.json", "w") as write_resp: import json json.dump(response.json(), write_resp, indent=4)