MacroFactor Integration

Stream MacroFactor data. No MacroFactor API needed.

MacroFactor writes calories, macros, and weight to Apple Health and Health Connect — and Sahha’s SDK reads them into your app as normalized nutrition biomarkers, alongside every other source.

  • On-device
  • Apple Health + Health Connect
  • HIPAA
  • GDPR
  • SOC 2

Free for 30 days · No credit card

MacroFactor logo
Normalized Auto-synced
Energy
2,240 kcal
Protein
176 g
Weight
79.6 kg

Identical schema across 500+ sources

How it works

Your users connect MacroFactor. Sahha does the rest.

This is your user’s side of the story — one screen, once. Sahha ingests every MacroFactor signal, normalizes, deduplicates, and delivers it to your service — raw, or as refined intelligence your product can act on.

Apple Health A

Allow "your app"

Sleep
Activity
Heart rate
Connect
9:41LIVE
82READY
Sleep7h 12m
Steps5,993
Heart rate62 bpm
Your early-riser reward
20% off açaí bowls — today only.
Sahha
Permissions handled
Encrypted in transit
History backfilled
Background sync enabled
Cleaning · deduping · scoring
Raw data logs Biomarkers Scores Insights Archetypes Tags
Real-time webhooks
Always in sync
Query via API
Access controlled
Your service
Waiting for data…

On-device and permissioned

MacroFactor data is read on the user’s own device, only after they grant Apple Health or Health Connect permission — nothing syncs without consent.

One integration, every source

Permission is per data type, not per brand. Anything that writes to Apple Health or Health Connect — MacroFactor today, a new watch next year — flows through the same SDK with no extra prompt and no new code.

Data coverage

What MacroFactor syncs through Apple Health & Health Connect.

  • Request only what you need

    You choose exactly which of these signals to request from Apple Health / Health Connect — users are only ever prompted for those, which keeps opt-in rates high.

  • One schema, every source

    MacroFactor, Apple Watch, and Oura all return the same fields and units.

  • What crosses the bridge

    Calories, protein, carbs, fat, and weight pass through the platform; some device-exclusive metrics may not.

Nutrition

4
HealthKitHealth ConnectHealthKit / Health ConnectSahha
  • dietaryEnergyConsumedenergy_intakekcal
  • dietaryProteinprotein_intakeg
  • dietaryCarbohydratescarbohydrate_intakeg
  • dietaryFatTotalfat_intakeg

Body

1
HealthKitHealth ConnectHealthKit / Health ConnectSahha
  • bodyMassweightkg
See a real payload
HealthKit · nutrition
{
  "type": "HKQuantityTypeIdentifierDietaryEnergyConsumed",
  "value": 2240,
  "unit": "kcal",
  "startDate": "2026-06-03T20:00:00Z",
  "sourceRevision": { "source": { "name": "MacroFactor" } }
  // …protein, carbs, fat & weight samples
}
Sahha · normalized
[
  {
    "category": "nutrition",
    "type": "energy_intake",
    "value": 2240,
    "unit": "kcal",
    "periodicity": "daily",
    "aggregation": "total",
    "startDateTime": "2026-06-03T00:00:00Z",
    "endDateTime": "2026-06-03T23:59:59Z"
  }
  // …4 more normalized logs
]

MacroFactor writes calories, protein, carbohydrates, fat, and weight to Apple Health and Health Connect. Sahha normalizes them to one nutrition schema, alongside every other source.

Missing a metric you need? Talk to us in the Sahha Slack — if MacroFactor captures it, we can usually add support.

Get more than just raw data

Sahha turns these signals into biomarkers, scores, archetypes, and insights — the modeling done for you.

Build vs. buy

Reading Apple Health and Health Connect yourself? Here’s the to-do list.

Everything on the left is yours to write, test, and maintain across two platforms. Everything on the right, Sahha already did.

Every device
Build it yourself
  • Integrate Apple Health.
  • Then Health Connect, separately.
  • Then reconcile the two.
With Sahha

One SDK covers Apple Health, Health Connect, and every cloud source.

Getting the data
Build it yourself
  • Write the HealthKit queries.
  • Write the Health Connect queries.
  • Wire up background delivery.
With Sahha

The SDK handles queries, permissions, and background sync.

Keeping it clean
Build it yourself
  • Dedupe apps writing the same metric.
  • Map dozens of platform types.
  • Normalize iOS against Android.
With Sahha

Deduped, typed, one schema — one stream per user.

Turning it into insight
Build it yourself
  • Build a sleep model.
  • Build an activity model.
  • Hire a data scientist.
With Sahha

Scores, archetypes, and insights — built in.

Keeping it alive
Build it yourself
  • Apple or Google changes an API.
  • You find out in production.
With Sahha

We version the SDK. You never notice.

No MacroFactor developer account needed — Sahha reads what MacroFactor already writes to Apple Health and Health Connect.

Setup

Live in an afternoon, not a sprint.

  1. # Add the Sahha SDKnpm install sahha-react-native
    01

    Add the Sahha SDK

    Drop the Sahha SDK into your iOS or Android app — or React Native or Flutter. One dependency covers both Apple Health and Health Connect.

  2. 02

    Prompt for health permissions

    Call the SDK to show the native Apple Health or Health Connect consent sheet. The user chooses what to share — under your brand. It’s one prompt, ever: permission is per data type, not per brand, so every future source is already covered.

  3. Your app LIVE
    Sleep7h 12m
    Readiness82
    Heart rate62 bpm
    03

    Sahha reads and delivers

    Once permission is granted, the SDK reads MacroFactor data from Apple Health / Health Connect in the background, normalizes it to one schema, and streams it to your app by webhook or API.

Most teams read live MacroFactor data the same day they add the SDK. The only per-source prerequisite: your user has MacroFactor’s Apple Health / Health Connect sync switched on — most source apps enable it by default.

Destinations

Route it into your stack.

Sahha streams every update to your webhook — and a step-by-step guide takes it the rest of the way into your database, CDP, or messaging tool.

FAQ

MacroFactor integration questions

How does Sahha get MacroFactor data?

MacroFactor writes calories, macros, and weight to Apple Health and Health Connect, and Sahha reads them from there with its mobile SDK — no MacroFactor API to integrate.

Which MacroFactor metrics does Sahha provide?

Dietary energy, protein, carbohydrates, fat, and weight — all normalized to Sahha’s nutrition schema, alongside every other source in the same fields and units.

Do I need a mobile app to use the MacroFactor integration?

Yes. Because MacroFactor data lands in Apple Health / Health Connect on the user’s device, you embed the Sahha mobile SDK to read it. Cloud-only sources like Oura don’t need the SDK, but on-device sources like MacroFactor do.

Is the MacroFactor integration HIPAA and GDPR compliant?

Yes. Sahha is HIPAA and GDPR compliant and SOC 2 certified, and MacroFactor data flows through the same compliant pipeline as every other source.

More integrations

One API for every other source, too.

Add another wearable or app and the schema, webhooks, and scores are identical — no new pipeline to build.

Start streaming MacroFactor data today.

Connect once. Sahha handles consent, normalization, and real-time delivery — for MacroFactor and every other source.

Free for 30 days · No credit card

  • One API for MacroFactor and every other source
  • Real-time webhooks + on-demand REST, one normalized schema
  • Scores, archetypes & insights — no modeling required
  • HIPAA, GDPR & SOC 2 · your brand on the consent screen