SiteSwapDevelopers
API reference: Catalog

Get a category

GEThttps://dev.siteswap.pro/api/v1/catalog/categories/{id}

One category with its materials or types and the questions a listing answers (send the answers under fields).

Needs the listings:read scope.

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

Path parameters

idstringrequired
The category's id

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
slugstringrequired
namestringrequired
unitsstring[]required
The units a listing may use
soil_statementbooleanrequired
Offered soil or fill needs the soil statement
live_listingsintegerrequired
marketplacestringrequired
materialsobject[]required
materials[].idstringrequired
materials[].namestringrequired
materials[].other_namesstring[]required
Regional names it is also found by
fieldsobject[]required
fields[].keystringrequired
Send the answer under fields.{key}
fields[].labelstringrequired
fields[].kindstringrequired
text, number or select
fields[].optionsstring[]required
For select: the answers allowed
fields[].unitstring | nullrequired
fields[].requiredbooleanrequired
Needed on an offered listing
SiteSwap API v1Support