You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one's easy: https://itunes.apple.com/WebObjects/MZStoreServices.woa/ws/genres has a full list.
We are interested in first-level category 36 (App Store). The grab a list of all second-level subcategories (there are also third-level categories but only for "Games", "Magazines & Newspapers", "Stickers") :
constgenreJson=awaitfetch('https://itunes.apple.com/WebObjects/MZStoreServices.woa/ws/genres').then((r)=>r.json());constappsGenres=genreJson[36];if(appsGenres.name!=='App Store')thrownewError('Unexpected API response.');constsubgenres=Object.values(appsGenres.subgenres).reduce((acc,cur)=>({ ...acc,[cur.name]: +cur.id}),{});subgenres.all=36;console.log(subgenres);
We need a list of all the possible categories (Apple internally calls them "genres") on the App Store.
The text was updated successfully, but these errors were encountered: