Skip to content

stephanedealburn/Nager.AmazonProductAdvertising

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nager.AmazonProductAdvertising

Allow access to amazon product advertising API (paapi5), you can search a product over the name or a keyword. You can visit a demo here

Installation

The package is available on nuget

PM> install-package Nager.AmazonProductAdvertising

Usage

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
Item Search (simple)
var authentication = new AmazonAuthentication("accesskey", "secretkey");
var client = new AmazonProductAdvertisingClient(authentication, AmazonEndpoint.US, "nager-20");
var result = await client.SearchItemsAsync("canon eos");
Item Search (advanced)
var authentication = new AmazonAuthentication("accesskey", "secretkey");
var client = new AmazonProductAdvertisingClient(authentication, AmazonEndpoint.US, "nager-20");
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);
Item Lookup
var authentication = new AmazonAuthentication("accesskey", "secretkey");
var client = new AmazonProductAdvertisingClient(authentication, AmazonEndpoint.US, "nager-20");
var result = await client.GetItemsAsync("B00BYPW00I");
Multi Item Lookup
var authentication = new AmazonAuthentication("accesskey", "secretkey");
var client = new AmazonProductAdvertisingClient(authentication, AmazonEndpoint.US, "nager-20");
var result = await client.GetItemsAsync(new string[] { "B00BYPW00I", "B004MKNBJG" });

Amazon Documentation

About

.NET Amazon Product Advertising Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 82.2%
  • HTML 17.7%
  • Classic ASP 0.1%