tradera-js
v1.0.1
Published
A JavaScript API wrapper for Tradera
Readme
tradera-js
tradera-js allows users to search tradera.com for auctions.
Tradera.com is an online marketplace based in Stockholm, Sweden. With its 3,6 million members, 6 million weekly visits and more than 3 million listings at any given point (2024), it's the largest marketplace in the Nordics for sustainable shopping. Tradera was founded in 1999 with Daniel Kaplan as CEO.
🧑💻️ Install
Install tradera-js via npm...
npm install tradera-js💁♀️ Usage
import { GetCategories, Search, SearchAdvanced } from 'tradera-js'
# Get all categories
const response = await GetCategories({
appId: process.env.appId,
appKey: process.env.appKey,
});
# search for iPhone in the Phones, Tablets & Wearables category ordered by the most relevant
const response = await Search({
appId: process.env.appId,
appKey: process.env.appKey,
query: "iPhone",
categoryId: 26,
pageNumber: 1,
OrderBy: "Relevance"
});
# search for iPhone in the Phones, Tablets & Wearables category ordered by the most relevant with advanced search
const response = await SearchAdvanced({
appId: process.env.appId,
appKey: process.env.appKey,
searchWords: "iPhone",
categoryId: 26,
searchInDescription: false,
mode: "And",
priceMinimum: 200,
priceMaximum: 2500,
bidsMinimum: 1,
bidsMaximum: 10,
countyId: 0,
alias: null,
orderBy: "Relevance",
itemStatus: "Active",
itemType: "All",
onlyAuctionsWithBuyNow: false,
onlyItemsWithThumbnail: false,
itemsPerPage: 500,
pageNumber: 1,
itemCondition: "All",
sellerType: "All",
});
📝 Notes
- Source repo: https://github.com/iTristanM/tradera-js
- npm: https://npmjs.com/package/tradera-js
