Allow access to amazon product advertising API (paapi5
), you can search a product over the name or a keyword.
Please check the AmazonEndpoint is correct for your Country.
- Amazon Germany use
AmazonEndpoint.DE
- Amazon Spain use
AmazonEndpoint.ES
- Amazon United Kingdom use
AmazonEndpoint.UK
var signer = new AwsSigner();
var client = new AmazonProductAdvertisingClient(signer,"accesskey", "secretkey",AmazonEndpoint.US, "yourPartnerTag");
var result = await client.SearchItemsAsync("canon eos");
var signer = new AwsSigner();
var client = new AmazonProductAdvertisingClient(signer,"accesskey", "secretkey",AmazonEndpoint.US, "yourPartnerTag");
var searchRequest = new SearchRequest
{
Keywords = "canon eos",
ItemPage = 2,
Resources = new []
{
//You can found all available Resources in the documentation
//https://webservices.amazon.com/paapi5/documentation/search-items.html#resources-parameter
"Images.Primary.Large",
"ItemInfo.Title",
"ItemInfo.Features"
}
};
var result = await client.SearchItemsAsync(searchRequest);
var signer = new AwsSigner();
var client = new AmazonProductAdvertisingClient(signer,"accesskey", "secretkey",AmazonEndpoint.US, "yourPartnerTag");
var result = await client.GetItemsAsync("B00BYPW00I");
var signer = new AwsSigner();
var client = new AmazonProductAdvertisingClient(signer,"accesskey", "secretkey",AmazonEndpoint.US, "yourPartnerTag");
var result = await client.GetItemsAsync(new string[] { "B00BYPW00I", "B004MKNBJG" });