Use client.market to browse and retrieve in-game market vendors that list ships, items, and other assets for sale on the Star Wars Combine marketplace.
The client.market resource provides access to the Star Wars Combine in-game marketplace. Vendors are the sellers on the market — characters or factions that list assets for sale. You can list all vendors to browse the marketplace or fetch a specific vendor by UID to inspect their listings in detail.
const vendors = await client.market.vendors.list();console.log(vendors.total); // Total number of active vendorsfor await (const vendor of vendors) { console.log(vendor.name, vendor.uid);}
import { SWCombine } from 'swcombine-sdk';const client = new SWCombine({ token: process.env.SWC_ACCESS_TOKEN! });// Browse the first page of vendorsconst firstPage = await client.market.vendors.list({ item_count: 25 });console.log(`${firstPage.total} vendors on the market`);// Get details for the first vendorif (firstPage.data.length > 0) { const vendor = await client.market.vendors.get({ uid: firstPage.data[0].uid, }); console.log(`Vendor: ${vendor.name}`);}// Auto-paginate through all vendorsfor await (const vendor of await client.market.vendors.list()) { console.log(vendor.name, vendor.uid);}
The market can have many vendors. If you need to find a specific seller, paginate through vendors.list() and filter client-side, or fetch by UID directly if you already know it.