https://github.com/hotafrika/ebay-finding-api
Golang client for eBay Finding API
https://github.com/hotafrika/ebay-finding-api
ebay ebay-api ebay-search ebay-searches go golang
Last synced: 5 months ago
JSON representation
Golang client for eBay Finding API
- Host: GitHub
- URL: https://github.com/hotafrika/ebay-finding-api
- Owner: hotafrika
- License: gpl-3.0
- Created: 2021-12-06T12:52:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-25T14:57:11.000Z (over 4 years ago)
- Last Synced: 2024-06-21T03:14:53.790Z (almost 2 years ago)
- Topics: ebay, ebay-api, ebay-search, ebay-searches, go, golang
- Language: Go
- Homepage:
- Size: 68.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

Golang library implementation of eBay [Finding API](https://developer.ebay.com/Devzone/finding/Concepts/FindingAPIGuide.html)
You can check all the Finding API search options and limitations [here](https://developer.ebay.com/Devzone/finding/CallRef/index.html)
### Example
```go
package main
import (
"fmt"
"github.com/hotafrika/ebay-finding-api"
)
func main() {
// Create Finding API service
s := finding.NewService("your-sec-app-name").WithPageLimit(50)
// Create findItemsAdvanced call request
r := s.NewAdvancedRequest()
// Set few search parameters
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)
// Get first page
res, err := r.Execute()
if err != nil {
panic(err)
}
fmt.Printf("%+v", res)
// Get second page
res2, err := r.GetPage(2)
if err != nil {
panic(err)
}
fmt.Printf("%+v", res2)
}
```