Write one line of JavaScript to get class count & other summarized data.
Update on 2023-06-23: You can now get your class count in Orangetheory’s app!
Open your Orangetheory app
Under Base (which should be your default tab), scroll down and you should see a Brag Board → And that’s your class count!
tl;dr
💡 Members API Endpoint (https://api.orangetheory.co/member/members/<member ID>?include=memberClassSummary) gives us some solid high-level metrics around class count. (Credit to
💡 Auth tokens & member IDs are stored in localStorage once you logged on to otlive.orangetheory.com.
🟡 Once you logged in to otlive.orangetheory.com, you can open up Chrome Dev Tools, and run the following script in Console to get your first OTF visit, total # of classes booked, attended, and the # studios visited.
await fetch(`https://api.orangetheory.co/virtual-class/proxy-cors/?url=https://api.orangetheory.co/member/members/${Object.entries(window.localStorage).filter(([key, value]) => { if (key.endsWith('LastAuthUser')) { return value } })[0][1]
}?include=memberClassSummary`, {
"headers": {
"accept": "application/json",
"accept-language": "en-US,en;q=0.9",
"authorization": Object.entries(window.localStorage).filter(([key, value]) => { if (key.endsWith('idToken')) { return value } })[0][1],