AmazonProductAdvertising.SDK 3.0.1

dotnet add package AmazonProductAdvertising.SDK --version 3.0.1
NuGet\Install-Package AmazonProductAdvertising.SDK -Version 3.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AmazonProductAdvertising.SDK" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AmazonProductAdvertising.SDK --version 3.0.1
#r "nuget: AmazonProductAdvertising.SDK, 3.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AmazonProductAdvertising.SDK as a Cake Addin
#addin nuget:?package=AmazonProductAdvertising.SDK&version=3.0.1

// Install AmazonProductAdvertising.SDK as a Cake Tool
#tool nuget:?package=AmazonProductAdvertising.SDK&version=3.0.1

Nager.AmazonProductAdvertising

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

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

Amazon Documentation

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.1 124 3/21/2024
3.0.0 77 3/21/2024

Initiliaze Resources properties in Requests with = Array.Empty