By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Using Browser Network Calls for Data Processing: The Search for a Dubai Chocolate Pistachio Shake | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Using Browser Network Calls for Data Processing: The Search for a Dubai Chocolate Pistachio Shake | HackerNoon
Computing

Using Browser Network Calls for Data Processing: The Search for a Dubai Chocolate Pistachio Shake | HackerNoon

News Room
Last updated: 2025/10/08 at 4:11 AM
News Room Published 8 October 2025
Share
SHARE

It was a good sunny day in Seattle, and my wife wanted to have the famous viral Dubai Chocolate Pistachio Shake. With excitement, we decided to visit the nearest Shake Shack, and to our surprise, it was sold out, and we were told to call them before visiting. There is no guarantee that it will be available the next day as well because of limited supply.

Two days later, I went there again to see if there would be any, and again I was faced with disappointment. I didn’t like the way, I either have to call them to check for an item or go to their store to check if it’s available.

This led to a few ideas for me:

  1. What if there was an AI that would do the calls for me and update me when I need a reservation, or wait in that long line for customer calls, and connect with me when I am ready to talk with someone? Some companies are already working on automating this.
  2. Is there a way to be notified when an item is available at Shake Shack? If it’s not there, can I build a cloud infrastructure for this?

Continuing on my thoughts on my second idea, I started looking into their website. It is possible to check if an item is available and add it to the cart for online ordering, which means there are some network calls through which we can identify if the Dubai Chocolate Pistachio Shake is available.

Implementation

To get the information about availability, we need a few data points.

  1. Is there a way to get the store information?
  2. How to differentiate whether a store has a shake or not?

For getting store information, when we open inspect element and look at network calls, when we select Washington, we see a few interesting calls.

n

Washington state has seven locations, and we need to know which one of these has the shake.

Washington state has seven locations

One of them has the shake

n If we look at the response of the region information, we were able to get all the state information.

curl 'https://ssma24.com/production-location/regions?isAlpha=true' 
  -H 'accept: */*' 
  -H 'accept-language: en-US,en;q=0.9' 
  -H 'authorization: Basic removedSecretCodeHere==' 
  -H 'cache-control: no-cache' 
  -H 'origin: https://shakeshack.com' 
  -H 'platform-os: macos' 
  -H 'platform-version: 1.71.20' 
  -H 'pragma: no-cache' 
  -H 'priority: u=1, i' 
  -H 'referer: https://shakeshack.com/' 
  -H 'sec-ch-ua: "Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"' 
  -H 'sec-ch-ua-mobile: ?0' 
  -H 'sec-ch-ua-platform: "macOS"' 
  -H 'sec-fetch-dest: empty' 
  -H 'sec-fetch-mode: cors' 
  -H 'sec-fetch-site: cross-site' 
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' 
  -H 'x-requested-with: XMLHttpRequest'

n

According to this, the WA ID is a3d65b58-ee3c-42af-adb9-9e39e09503c3, and we see the store information if we pass regionId to the API.

WA ID is a3d65b58-ee3c-42af-adb9-9e39e09503c3

curl 'https://ssma24.com/production-location/locations?regionId=a3d65b58-ee3c-42af-adb9-9e39e09503c3&channel=WEB&includePrivate=false' 
  -H 'accept: */*' 
  -H 'accept-language: en-US,en;q=0.9' 
  -H 'authorization: Basic removedSecretCodeHere' 
  -H 'cache-control: no-cache' 
  -H 'origin: https://shakeshack.com' 
  -H 'platform-os: macos' 
  -H 'platform-version: 1.71.20' 
  -H 'pragma: no-cache' 
  -H 'priority: u=1, i' 
  -H 'referer: https://shakeshack.com/' 
  -H 'sec-ch-ua: "Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"' 
  -H 'sec-ch-ua-mobile: ?0' 
  -H 'sec-ch-ua-platform: "macOS"' 
  -H 'sec-fetch-dest: empty' 
  -H 'sec-fetch-mode: cors' 
  -H 'sec-fetch-site: cross-site' 
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' 
  -H 'x-requested-with: XMLHttpRequest'

n This information is still not sufficient until we know how to get to a store page and identify the availability. If a store has a shake, it will display the Dubai shake in the shake section.

If a store has a shake, it will display the Dubai shake in the shake section

n

And after investigating the curl calls, I see the call for the menu option.

curl 'https://ssma24.com/v1.0/locations/82099/menus?includeOptionalCategories=utensils&platform=web' 
  -H 'accept: */*' 
  -H 'accept-language: en-US,en;q=0.9' 
  -H 'authorization: Basic removedSecretCodeHere==' 
  -H 'cache-control: no-cache' 
  -H 'channel: WEB' 
  -H 'origin: https://shakeshack.com' 
  -H 'platform-os: macos' 
  -H 'platform-version: 1.71.20' 
  -H 'pragma: no-cache' 
  -H 'priority: u=1, i' 
  -H 'referer: https://shakeshack.com/' 
  -H 'sec-ch-ua: "Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"' 
  -H 'sec-ch-ua-mobile: ?0' 
  -H 'sec-ch-ua-platform: "macOS"' 
  -H 'sec-fetch-dest: empty' 
  -H 'sec-fetch-mode: cors' 
  -H 'sec-fetch-site: cross-site' 
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' 
  -H 'x-requested-with: XMLHttpRequest'

n

If a shake is available, then we see it in the product section.

If a shake is available, then we see it in the product section n

If a store does not have it, then we will not see it in the response. So, all we need to do is get all the store information and verify which stores have the shake. If you look into the store queries, its oloId is linked in the queries related to a store. This can be mapped to the store information from the previous queries, using which I was able to get all the store IDs.

With some basic shell scripting, I was able to create this curl script, which will tell which store will have the shake.

for store in 203514 236001 265657 82099 62274 96570 203515; do
  echo $store
  curl "https://ssma24.com/v1.0/locations/$store/menus?includeOptionalCategories=utensils&platform=web" 
  -H 'accept: */*' 
  -H 'accept-language: en-US,en;q=0.9' 
  -H 'authorization: Basic removedSecretCodeHere==' 
  -H 'cache-control: no-cache' 
  -H 'channel: WEB' 
  -H 'origin: https://shakeshack.com' 
  -H 'platform-os: macos' 
  -H 'platform-version: 1.71.20' 
  -H 'pragma: no-cache' 
  -H 'priority: u=1, i' 
  -H 'referer: https://shakeshack.com/' 
  -H 'sec-ch-ua: "Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"' 
  -H 'sec-ch-ua-mobile: ?0' 
  -H 'sec-ch-ua-platform: "macOS"' 
  -H 'sec-fetch-dest: empty' 
  -H 'sec-fetch-mode: cors' 
  -H 'sec-fetch-site: cross-site' 
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' 
  -H 'x-requested-with: XMLHttpRequest' | jq| grep '"name": "Dubai Chocolate Pistachio Shake",'
done

n Where each store is the storeId, and I used the jq library to format the response into JSON output, and did a grep on this name, stores that have the shake will give a hit.

Sample response

Using the jq library

n

Based on this, we know that stores 82099, 62274, and 96570 have the shakes, and I got the store address from the previous calls and got the shakes. 🙂

Conclusion

In this document, we went through the network calls to identify the information we need and also figured out a way to get the store information through their network calls. That said, we can also automate this through Selenium (which is compute-heavy), or we can use an AI to analyze the website and figure out a way to get this infrastructure ready for us.

This will be an advancement that will remove certain QA related jobs from the industry (we are not there yet, but we will be in that position very soon). n n Most of the approaches we saw today were manual. In my next articles, I will show how we can take this simple idea and build a cloud infrastructure around it. I will be writing about building:

  1. A cloud-based serverless call to get the info from the web.
  2. A cloud-based trigger service that will trigger the serverless call.
  3. A storage system to store this data for caching — where can we store the responses?
  4. A notification system to notify through a mobile app or in various other ways.
  5. If we are getting enough data points, I will be showing how to build an ML model using sparse data points.

This is for educational purposes; me and my partner (SGG) took this real-world example to build a cloud infrastructure, and the code and other artifacts will not be published to ensure Shake Shack websites are not overloaded.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article North Korean Hackers Have Already Stolen Over $2 Billion in Crypto This Year
Next Article We’ve Already Spotted 267 Great Amazon Prime Day Deals
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Amazon Pharmacy introduces kiosks that can quickly dispense medications at the doctor’s office
Computing
There’s hundreds of pillows on sale at Amazon this Prime Day – this is the one I recommend for all sleep styles
News
Today's NYT Connections Hints, Answers for Oct. 8 #850
News
US and EU forge alliance to target China’s legacy chip dominance in semiconductor sector · TechNode
Computing

You Might also Like

Computing

Amazon Pharmacy introduces kiosks that can quickly dispense medications at the doctor’s office

5 Min Read
Computing

US and EU forge alliance to target China’s legacy chip dominance in semiconductor sector · TechNode

1 Min Read
Computing

The HackerNoon Newsletter: Blockchain Cities and Liners: Where Did They Go? (10/7/2025) | HackerNoon

2 Min Read
Computing

No Time to Waste: Embedding AI to Cut Noise and Reduce Risk

6 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?