Use JustGains with Zapier
Send finished workouts, runs, meals and completed goals from JustGains to Google Sheets, Slack, Notion and thousands of other apps, or log food and weight from them.
Finish a workout and have it land as a new row in a Google Sheet. Hit your water goal and get a Slack message. Fill in a form with what you ate and see it in your food diary. Zapier connects JustGains to the other apps you use, and each connection (Zapier calls it a Zap) runs on its own once you set it up.
A Zap has a trigger, the event that starts it, and one or more actions, the things it does next. JustGains can be either side.
Connect your JustGains account
- In Zapier, create a Zap and search for JustGains as the trigger or action app.
- Choose Sign in to JustGains. A JustGains sign-in page opens in your browser.
- Sign in with the account you use on your phone. Zapier returns to the Zap editor with the account connected under your username.
- Pick a trigger or action from the lists below and select Test to see a real record from your account.
There is no API key to copy. Zapier never sees your password, and the connection appears as "Zapier" in your JustGains connected devices.
Triggers: when something happens in JustGains
| Trigger | Fires when | Options |
|---|---|---|
| Workout Completed | You finish a strength or gym workout. Includes the exercises, sets, reps, volume and duration. | Minimum duration |
| Activity Completed | A run, walk, ride, swim or other activity is recorded, including ones synced from Apple Health, Health Connect, Strava or Garmin. Includes distance, pace, calories and heart rate. | Activity types |
| Meal Logged | A meal is finished, with every food in it and the meal totals. | Which meals, wait time |
| Food Logged | Any single food or drink is added to your diary. | Which meals |
| Goal Completed | You hit a goal for the day, week or month, the moment JustGains shows it as done. | One goal or all |
| Task Completed | You check off a to-do in the Goals tab. | None |
| Weight Logged | A new body weight is saved, by hand or from a synced scale. | None |
Every trigger gives you both units, so you can map pounds or kilograms, miles or kilometers, without converting anything yourself. Zapier checks JustGains for new records every few minutes, depending on your Zapier plan.
How Meal Logged decides a meal is done
Most people add a meal one food at a time, so Meal Logged waits until nothing has been added to that meal for 10 minutes, then fires once with the full list and totals. You can change the wait in the trigger options. A food added to the same meal after it fired shows up in Food Logged but does not send the meal again. If you want every item the moment you log it, use Food Logged instead.
How Goal Completed counts
A count goal such as "8 glasses of water a day" or "3 workouts a week" fires when that day or week reaches its target, and only once for that period, even if you keep logging. Check-in goals (a tick, a star rating, a mood, a timer) fire once for each day you complete them. Counter goals have no target, so they never fire.
Actions: do something in JustGains
- Log Food adds one or more foods to breakfast, lunch, dinner or a snack. Give each food a name and, ideally, its weight in grams. Calories and macros are optional; JustGains uses a reliable match from its food database when it finds one and your numbers when it does not.
- Log Weight saves a body weight in pounds or kilograms.
- Log Activity records a run, walk, ride or other session with its start time, duration and optional distance, calories, heart rate and steps.
- Add Water adds an amount in milliliters, fluid ounces, cups or liters to the day's total. A negative amount takes water off.
Log Food and Log Activity have an optional Dedupe Key. Map a unique ID from your trigger, such as a form response ID, and a Zap that runs twice for the same record logs it once. A repeated Log Activity updates the activity it already made.
Searches
Find Food looks up a food and returns its calories and macros per 100 g and per serving. Get Daily Nutrition Summary returns a day's calories, protein, carbs, fat and fiber, the calories for each meal, and your targets with calories remaining. Both are handy as a middle step, for example to post your totals to Slack each evening with Zapier's Schedule trigger.
Zaps to try
- Workout Completed → Google Sheets: add a row with the date, title, duration, sets and volume in pounds.
- Activity Completed (runs only) → Notion: add each run with distance in miles and pace per mile.
- Meal Logged → Slack: send yourself the foods and calories for every meal.
- Goal Completed → Discord or Slack: tell your training group when you hit your weekly workout goal.
- Google Forms or Typeform → Log Food: log meals from a simple form, with the response ID as the Dedupe Key.
- Schedule (every day at 9 PM) → Get Daily Nutrition Summary → Email: a nightly recap of what you ate against your targets.
Dates and timezones
Zapier runs on UTC, but "today" in JustGains actions means today in your JustGains timezone. Add Water, Log Food and Get Daily Nutrition Summary all default to your own day, so a 10 PM dinner does not end up on tomorrow's diary.
Manage or disconnect
Changes made by a Zap reach your phone through its normal sync. To stop access, remove the JustGains connection in your Zapier account settings, or revoke the Zapier device in JustGains. Revoking, changing your password, or leaving the connection unused for 90 days signs Zapier out; reconnect from Zapier when it asks.
Common questions
Keep reading
The natural next steps from this guide.
Use JustGains inside Claude
Connect JustGains to Claude to log meals, track calories and macros, build workouts, and review your real training data.
Use JustGains inside ChatGPT
Connect JustGains to ChatGPT to log food, track calories and macros, build workouts, and review your real training data.
Log food and macros
Track enough to learn something, without becoming a barcode monk.
How streaks work
JustGains streaks count distinct local workout days, with rest tolerance and Streak Freezes.