How to to get your data from Swiggy programmatically
- Send an OTP to your phone. Save the
tid, sid, and deviceid.
- Submit the OTP you’ve received, and additionally save the
token you get.
- Fetch the list of Swiggy Orders. This needs your
tid, and token. This returns a maximum of 5 orders. This returns a protobuf response, so you will need to parse it using this schema.
- Fetch the list of your Instamart Orders. This needs your
tid and token.
- If you’d like additional details about a single Swiggy order, you can use the Get Single Order Details API.