SiteSwapDevelopers
API reference: Listings

Search listings

GEThttps://dev.siteswap.pro/api/v1/listings

Live listings of one marketplace, with the same filters as the browse pages on the site. Nearest first when you send a zip, newest first without one. Pages follow each other by cursor, so listings added meanwhile never move a page.

Needs the listings:read scope.

Needs an API key or sign-in token in Authorization: Bearer or X-API-Key. Authentication

Query parameters

marketplacestringdefault "materials"
A marketplace key, as GET /marketplaces lists them, for example materials
qstring
Words to look for: titles, materials, brands, regional names
zipstring
Sort by distance from here
radius"25" | "50" | "100"
Miles from zip
kind"have" | "need"
Only offered or only wanted
deal"sale" | "trade" | "both"
Marketplaces with trades
categorystring
A category slug
materialstring
With category: materials or types by their short name, comma separated, as in a browse address on the site
brandstring
A brand or maker id
linestring
A product line id
colorstring
A color id
modelstring
A model id
platformstring
A battery platform id
price"fixed" | "offers" | "free" | "pays_to_take"
Materials: only this kind of price
delivers"1"
Only listings that can deliver
pickup"1"
Only pickup only listings
loading"1"
Materials: loading on site
ships"1"
Tools: ships
companystring
Only this company's listings, by its slug
cursorstring
The next_cursor of the page before. Leave it out for the first page
limitintegerdefault 25
How many to return on one page

Responses

200OK
400bad_request, key_in_url or invalid_json: the request could not be read
401missing_key or invalid_key: no key, or a key that is not valid or was revoked
403key_pending, key_declined, scope_missing, terms_required or account_unavailable: see Errors
404not_found: nothing here that you may see
413too_large: the body is over 256 KB
429rate_limited or daily_quota: wait for Retry-After seconds

Response fields

idstringrequired
The listing's id
urlstringrequired
The listing on SiteSwap
marketplacestringrequired
The marketplace key
kind"have" | "need"required
have for something offered, need for something wanted
deal"sale" | "trade" | "both"required
Marketplaces with trades: for sale, for trade or either; sale everywhere else
status"active" | "paused" | "closed"required
Only active listings are found by search; your own can be paused or closed
titlestringrequired
descriptionstringrequired
categoryobjectrequired
category.idstringrequired
category.slugstringrequired
category.namestringrequired
materialstring | nullrequired
The material or type, or the name typed under Other
brandstring | nullrequired
The brand or maker
product_linestring | nullrequired
The product line
colorstring | nullrequired
The color
modelstring | nullrequired
The model
quantityobjectrequired
quantity.totalnumberrequired
Listed in all
quantity.opennumberrequired
Still open: not promised to an accepted offer and not handed over
quantity.unitstringrequired
quantity.basisstringrequired
measured or estimated
priceobjectrequired
price.modelstringrequired
fixed, offers, free or pays_to_take (the poster pays to have it taken)
price.centsinteger | nullrequired
Per unit, in US cents; null without a price
locationobjectrequired
location.citystringrequired
location.regionstringrequired
The state
location.distance_minumber | nullrequired
Straight-line miles from the zip you sent; null without one
pickup_onlybooleanrequired
can_deliverbooleanrequired
can_loadbooleanrequired
available_fromstring | nullrequired
The first day, YYYY-MM-DD
fieldsobject (by key)required
The category's questions and their answers, by key (see GET /catalog/categories/{id})
photostring | nullrequired
A small picture of the first photo
companyobjectrequired
company.slugstringrequired
The company's address on SiteSwap, /c/{slug}
company.namestringrequired
company.kindstringrequired
What kind of company, for example contractor or supplier
company.urlstringrequired
Its public page
samplebooleanrequired
True for sample data on test servers
created_atstringrequired
When it was posted. ISO 8601 in UTC
SiteSwap API v1Support