import urllib.request

apikey = "xxxxxxxxxxxxxxxxxxx"

url = "https://api.element14.com/catalog/products?callInfo.apiKey=" + apikey + "&"

url += "callInfo.responseDataFormat=JSON&"
url += "callInfo.omitXmlSchema=1&"
url += "term=id:1791454&"
url += "storeInfo.id=de.farnell.com&"
url += "resultsSettings.responseGroup=large"

#?callInfo.responseDataFormat={XML|JSON}
# &callInfo.omitXmlSchema={...}
#&callInfo.callback={...}
#&term={field:term} 
#&storeInfo.id={storeInfoId|...}
#&callInfo.apiKey={...}
#&userInfo.signature={...}
#&userInfo.timestamp={...}
#&userInfo.billAccNum={...}
#&userInfo.customerId={...}
#&userInfo.contractId={...}
#&resultsSettings.offset={...}
#&resultsSettings.numberOfResults={...}
#&resultsSettings.refinements.filters={rohsCompliant,inStock}
#&resultsSettings.responseGroup={none,small,medium,large, Prices, Inventory}




result = urllib.request.urlopen(url).read()

print (result)
