Go Client Library for Amazon Product Advertising API

go-amazon-product-advertising-api

Build Status GoDoc Go Report Card Coverage Status

Go Client Library for Amazon Product Advertising API

How to Use

go get -u github.com/ngs/go-amazon-product-advertising-api/amazon
package main

import (
	"fmt"
	"log"

	"github.com/ngs/go-amazon-product-advertising-api/amazon"
)

func main() {
	client, err := amazon.NewFromEnvionment()
	if err != nil {
		log.Fatal(err)
	}
	res, err := client.ItemSearch(amazon.ItemSearchParameters{
		SearchIndex: amazon.SearchIndexBooks,
		Keywords:    "Go 言語",
	}).Do()
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%d results found\n\n", res.Items.TotalResults)
	for _, item := range res.Items.Item {
		fmt.Printf(`-------------------------------
[Title] %v
[URL]   %v
`, item.ItemAttributes.Title, item.DetailPageURL)
	}
}
export AWS_ACCESS_KEY_ID=${YOUR_AWS_ACCESS_KEY_ID}
export AWS_SECRET_ACCESS_KEY=${YOUR_AWS_SECRET_ACCESS_KEY}
export AWS_PRODUCT_REGION=JP
export AWS_ASSOCIATE_TAG=ngsio-22

go run item_search.go

Author

Atsushi Nagase

License

See LICENSE

Owner
Similar Resources

Aoe4-client - Client library for aoe4 leaderboards etc

AOE4 Client Overview This is a go client used to query AOE4 data from either the

Jan 18, 2022

Go client for the YNAB API. Unofficial. It covers 100% of the resources made available by the YNAB API.

YNAB API Go Library This is an UNOFFICIAL Go client for the YNAB API. It covers 100% of the resources made available by the YNAB API. Installation go

Oct 6, 2022

An API client for the Notion API implemented in Golang

An API client for the Notion API implemented in Golang

Dec 30, 2022

A Wrapper Client for Google Spreadsheet API (Sheets API)

Senmai A Wrapper Client for Google Spreadsheet API (Sheets API) PREPARATION Service Account and Key File Create a service account on Google Cloud Plat

Nov 5, 2021

A Go client library for the Twitter 1.1 API

Anaconda Anaconda is a simple, transparent Go package for accessing version 1.1 of the Twitter API. Successful API queries return native Go structs th

Jan 1, 2023

Go client library for interacting with Coinpaprika's API

Coinpaprika API Go Client Usage This library provides convenient way to use coinpaprika.com API in Go. Coinpaprika delivers full market data to the wo

Dec 8, 2022

Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://developer.github.com/v4/).

githubv4 Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql). If you're looking for a client

Dec 26, 2022

This project implements a Go client library for the Hipchat API.

Hipchat This project implements a Go client library for the Hipchat API (API version 2 is not supported). Pull requests are welcome as the API is limi

Jan 3, 2023

Client library for UptimeRobot v2 API

uptimerobot uptimerobot is a Go library and command-line client for the Uptime Robot website monitoring service. It allows you to search for existing

Jan 8, 2023
Comments
  • add parent ASIN

    add parent ASIN

    Great implementation of the API, saves me so much work.

    I need the parent ASIN to look up the parent for a variant. This is returned in the affiliate API but missing in the struct.

  • Always return an ItemLookupResponse object

    Always return an ItemLookupResponse object

    This is a proposal to change the response of the ItemLookupRequest.Do function when it gets a error, so that the function would always return an ItemLookupResponse object instead of a nil value as it does now.

    This will fix the particular problem of calling the Do function to lookup several items in which some of them have an invalid ASIN code. In this case, Amazon will still send back the data for the "good" items, so we are losing that information by returning nil.

  • Add missing attributes for vitamins

    Add missing attributes for vitamins

    Hi, I added some missing attributes for vitamins.

    There are some more but I think that this are enough:

            <ItemAttributes>
                <Binding>Health and Beauty</Binding>
                <Brand>Vitafusion</Brand>
                <CatalogNumberList>
                    <CatalogNumberListElement>NI-083</CatalogNumberListElement>
                </CatalogNumberList>
                <EAN>0027917021348</EAN>
                <EANList>
                    <EANListElement>0027917021348</EANListElement>
                    <EANListElement>4600697400488</EANListElement>
                    <EANListElement>4606144002625</EANListElement>
                    <EANListElement>4600702030273</EANListElement>
                    <EANListElement>0885810211958</EANListElement>
                    <EANListElement>0027917018737</EANListElement>
                    <EANListElement>0885260278402</EANListElement>
                </EANList>
                <Feature>Easy to take delicious gummy with 2000 IU vitamin D3 formula</Feature>
                <Feature>Made in the USA with natural colors and flavors</Feature>
                <Feature>Contains no wheat gluten or milk and no eggs or peanuts or soy</Feature>
                <Feature>Enjoyable alternative to pills and tablets or dry chalky vitamins</Feature>
                <Feature>Winner of ChefsBest award for best taste</Feature>
                <Feature>Assorted flavors in each bottle. Flavors may include Peach, Blackberry, Strawberry, Orange, or Lemon</Feature>
                <IsAdultProduct>0</IsAdultProduct>
                <ItemDimensions>
                    <Height Units="hundredths-inches">643</Height>
                    <Length Units="hundredths-inches">319</Length>
                    <Weight Units="hundredths-pounds">320</Weight>
                    <Width Units="hundredths-inches">319</Width>
                </ItemDimensions>
                <Label>Vitafusion</Label>
                <LegalDisclaimer>Actual product packaging and materials may contain more and/or different information than that shown on our Web site. We recommend that you do not solely rely on the information presented and that you always read labels, warnings, and directions before using or consuming a product. Content on this site is for reference purposes and is not intended to substitute for advice given by a physician, pharmacist, or other licensed health-care professional. You should not use this information as self-diagnosis or for treating a health problem or disease. Contact your health-care provider immediately if you suspect that you have a medical problem. Information and statements regarding dietary supplements have not been evaluated by the Food and Drug Administration and are not intended to diagnose, treat, cure, or prevent any disease or health condition. ABC Wholesale assumes no liability for inaccuracies or misstatements about products.</LegalDisclaimer>
                <ListPrice>
                    <Amount>1049</Amount>
                    <CurrencyCode>USD</CurrencyCode>
                    <FormattedPrice>$10.49</FormattedPrice>
                </ListPrice>
                <Manufacturer>Vitafusion</Manufacturer>
                <Model>1102134</Model>
                <MPN>1102134</MPN>
                <NumberOfItems>1</NumberOfItems>
                <PackageDimensions>
                    <Height Units="hundredths-inches">320</Height>
                    <Length Units="hundredths-inches">630</Length>
                    <Weight Units="hundredths-pounds">90</Weight>
                    <Width Units="hundredths-inches">320</Width>
                </PackageDimensions>
                <PackageQuantity>1</PackageQuantity>
                <PartNumber>1102134</PartNumber>
                <ProductGroup>Health and Beauty</ProductGroup>
                <ProductTypeName>HEALTH_PERSONAL_CARE</ProductTypeName>
                <PublicationDate>2011-11-28</PublicationDate>
                <Publisher>Vitafusion</Publisher>
                <Size>150 Count</Size>
                <Studio>Vitafusion</Studio>
                <Title>Vitafusion Vitamin D3 Gummy Vitamins, Assorted Flavors, 150 Count</Title>
                <UPC>027917021348</UPC>
                <UPCList>
                    <UPCListElement>027917021348</UPCListElement>
                    <UPCListElement>027917018737</UPCListElement>
                    <UPCListElement>885260278402</UPCListElement>
                    <UPCListElement>885810211958</UPCListElement>
                </UPCList>
            </ItemAttributes>
    
lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin to AWS Lambda and Amazon API Gateway.

aws-lambda-go-api-proxy makes it easy to run Golang APIs written with frameworks such as Gin with AWS Lambda and Amazon API Gateway.

Jan 6, 2023
Api-product - A basic REST-ish API that allows you to perform CRUD operations for Products

Description A basic REST-ish API that allows you to perform CRUD operations for

Jan 3, 2022
Simple program that uploads large files to Amazon S3 over slow connections.

shrimp is a small program that can reliably upload large files to Amazon S3. My personal use case is to upload large files to S3 over a slow residenti

Nov 30, 2022
A demonstration of the transactional outbox messaging pattern (+ Log Trailing) with Amazon DynamoDB (+ Streams) written in Go.
A demonstration of the transactional outbox messaging pattern (+ Log Trailing) with Amazon DynamoDB (+ Streams) written in Go.

Transactional Outbox Pattern in Amazon DynamoDB A demonstration of the transactional outbox messaging pattern (+ Log Trailing) with Amazon DynamoDB (+

Apr 12, 2022
Clusterpedia-client - clusterpedia-client supports the use of native client-go mode to call the clusterpedia API

clusterpedia-client supports the use of native client-go mode to call the cluste

Jan 7, 2022
Client-go - Clusterpedia-client supports the use of native client-go mode to call the clusterpedia API

clusterpedia-client supports the use of native client-go mode to call the cluste

Dec 5, 2022
The Bhojpur Ara is a software product used for automated resource assembly within Bhojpur.NET Platform ecosystem to enable delivery of applications and services.

Bhojpur Ara - Automated Resource Assembly The Bhojpur Ara is a service product used for automated resource assembly within the Bhojpur.NET Platform ec

Apr 28, 2022
The Bhojpur PEE is a software-as-a-service product used as a Provider's Edge Equipment based on Bhojpur.NET Platform for application delivery.

Bhojpur PEE - Provider's Edge Equipment The Bhojpur PEE is a software-as-a-service product used as a Provider's Edge Equipment based on Bhojpur.NET Pl

Dec 31, 2021
Zms - The Bhojpur ZMS is a software-as-a-service product applied in different risk management areas. It is a containment Zone Management System based on Bhojpur.NET Platform.

Bhojpur ZMS - Zone Management System The Bhojpur ZMS is a software-as-a-service product used as a Zone Management System based on Bhojpur.NET Platform

Sep 26, 2022
Nutanix-client-go - Go client for the Nutanix Prism V3 API

nutanix-client-go This repository contains portions of the Nutanix API client code in nutanix/terraform-provider-nutanix. It has been extracted to red

Jan 6, 2022