Golang library implementation of eBay Finding API
You can check all the Finding API search options and limitations here
Example
package main
import (
"fmt"
"github.com/hotafrika/ebay-finding-api"
)
func main() {
s := finding.NewService("your-sec-app-name").WithPageLimit(50)
r := s.NewAdvancedRequest()
r.WithDescriptionSearch(true)
r.WithKeywords("harry potter")
r.WithItemFilterCondition(finding.ConditionGood, finding.ConditionNew)
r.WithItemFilterMaxPriceWithCurrency(100, finding.CurrencyIDUSD)
r.WithSortOrder(finding.SortOrderCurrentPriceHighest)
r.WithPageLimit(1)
r.WithOutputSelectors(finding.OutputSelectorAspectHistogram,
finding.OutputSelectorSellerInfo,
finding.OutputSelectorStoreInfo,
finding.OutputSelectorUnitPriceInfo,
finding.OutputSelectorGalleryInfo,
finding.OutputSelectorPictureURLSuperSize,
finding.OutputSelectorConditionHistogram,
finding.OutputSelectorCategoryHistogram,
finding.OutputSelectorPictureURLLarge)
res, err := r.Execute()
if err != nil {
panic(err)
}
fmt.Printf("%+v", res)
res2, err := r.GetPage(2)
if err != nil {
panic(err)
}
fmt.Printf("%+v", res2)
}