List the listing attributes
const url = 'https://acme.mykreezalid.com/front_api/v1/listings/attributes?tags=size%2Ccolor&page=1&limit=75';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://acme.mykreezalid.com/front_api/v1/listings/attributes?tags=size%2Ccolor&page=1&limit=75'Returns the custom fields the marketplace defines for its listings, sorted by sort_priority, 75 per page. Works without an access token; a token changes nothing.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only return attributes that have at least one of these tags, as a comma-separated list (or repeated tags[] parameters).
Example
size,colorPage to return, starting at 1.
Number of attributes per page (at most 100).
Responses
Section titled “Responses”The attributes.
object
A custom field the marketplace defines for its listings.
object
Key of the attribute in a listing’s attributes.
Label of the attribute. May contain HTML set by the marketplace.
Label of the attribute with HTML removed (icon tags <i> are kept).
Kind of input, for example select or checkbox for attributes with a list of options.
Whether a value is required.
Whether the value is used by the marketplace search.
Whether the attribute is offered as a search filter.
Display order; the list is sorted on it.
Paging information, added next to the results of a paginated list. Request another page with the page query parameter and change the page size with limit (at most 100).
object
Number of results across all pages.
Number of the page returned, starting at 1.
Whether a next page exists.
Whether a previous page exists.
Number of results on this page.
Number of pages.
Example
{ "attributes": [ { "id": 91, "alias": "color", "title": "Color", "sanitized_title": "Color", "input_type": "select", "sort_priority": 1 } ], "pagination": { "totalResultsCount": 137, "currentPage": 1, "resultOnPageCount": 25, "pageCount": 6 }}