Open HrishiSonar opened 3 months ago
Swigggy keeps changing the API's and the structure of the APi's you need to debug the API using developer's tool(network tab),you can refer this : const { itemCards } = resInfo?.cards[4]?.groupedCard?.cardGroupMap?.REGULAR?.cards[1]?.card?.card;
const categories = resInfo?.cards[4].groupedCard.cardGroupMap.REGULAR.cards.filter( (c) => c.card?.["card"]?.["@type"] === "type.googleapis.com/swiggy.presentation.food.v2.ItemCategory" );
Hope this will help you
Hello Omkar, I was watching the NR episode 7 and was not unable to access the Menu API. How did you access it?