Need an API to get categories for Snaps


#1

I’m currently developing linuxappstore.io. I need an API to get categories associated with snaps.

Is there currently an API for this? I’m looking for an API in JSON format.

The current API I use doesn’t have categories listed.
https://search.apps.ubuntu.com/api/v1/search


#2

Yes, there is. You’re talking to an ancient endpoint though and I’m not sure that it’s the same code behind it (it might end up being what the api docs call legacy_search for example). Take a read at the store api docs for search. Note that search is still a v1 api, so it calls categories ‘sections’ (in v2 we fixed that but there is no v2 search just yet).