I need to fetch all categories and their attributes for further processing. I have problems with fetching category metainfo for understanding which attributes are in it. The most convenient way for fetching all categories and their attributes that I've discovered is to search through "api/v2/search" endpoint with OTSubType=131, and then, when receiving categories content as a stream, - try to parse it in convenient format(list of attributes metadata).
Question: is there any way to get the categories metadata(attribute types, names, etc.) as a JSON or some other simple structure instead of content stream?