SiteSwapDevelopers
Guides

Read listings

Search a marketplace with the browse filters, page by page.

GET /listings answers what a browse page on the site shows, with the same filters and in the same order: nearest first when you send a zip, newest first without one.

curl -H "Authorization: Bearer ssk_YOUR_KEY" "https://dev.siteswap.pro/api/v1/listings?marketplace=materials&q=rebar&zip=01801&radius=50"

Filters

FilterWhat it does
marketplaceWhich marketplace. GET /marketplaces lists the open ones.
qWords, matched like the search box: titles, materials, brands, regional names.
zip, radiusDistance from a ZIP, and only within 25, 50 or 100 miles.
kind, dealOffered or wanted; for sale, for trade or both.
category, materialA category slug, then materials or types of it.
brand, line, color, model, platformCatalog picks, by id.
price, delivers, pickup, loading, shipsThe quick filters of the browse page.
companyOne company's live listings, by its slug.

A filter the marketplace does not have is left out, as on the site. A closed marketplace answers 404 marketplace_closed.

One listing

GET /listings/{id} answers a live listing, or your own company's listing in any state. Add zip to get its distance.

SiteSwap API v1Support