Terra

Integration

API
Unified API
SDK
SDK
Authentication
Authentication
Streaming
Streaming
Blood
Blood Report API
Planned Workout
Planned Workout
AI Interface
AI Interface

User engagement

Graph API
Graph API
Scores
Health Scores
Rewards
Health Rewards

Use cases

Enterprise
Enterprise
Insurance
Insurance

Developers

Wearable Data
Wearable Data
Community
Community
Documentation
Documentation

Learn

Blog
Blog
Podcast
Podcast
Events
Events
Reports
Reports

Company

Customers
Customers
Careers
Careers
Partners
Partners
Support
Support
Become an integration
Become an integration

MacrosFirst API Integration

With Terra's MacrosFirst web API integration, your app can access nutrition tracking and macro counting data from the MacrosFirst platform. The integration delivers macronutrient breakdowns, caloric intake, and meal timing data, pushed to your systems via webhooks as users log their meals.

Start Receiving Data From MacrosFirst In 5 Minutes

MacrosFirst

MacrosFirst

Enable MacrosFirst through your Terra dashboard

Select a Wearable

MacrosFirst

MacrosFirst

Connect

Connect users to your app

0. "active_durations_data":{...}
1. "calories_data": {...}
2. "device_data": {...}
3. "distance_data": {...}
4. "heart_rate_data": {...}
5. "movement_data": {...}
6. "position_data": {...}

Start receiving data from MacrosFirst on your app or website

You Can Receive...

Recent Data with Webhooks
Historical Data with HTTP Requests

When data is available from a MacrosFirst device, it will be streamed to you via our webhooks. During your Terra account setup, you'll be prompted to provide a callback URL, allowing Terra to PUSH data using POST requests.

You may also use HTTP requests with your MacrosFirst integration in case you wish to request historical data or data over extended periods of time.

Our MacrosFirst integration with Terra offers instant data delivery, eliminating the need for periodic requests. MacrosFirst notifies Terra whenever new data is available, and we then POST the normalized data to your webhook.

Most HTTP endpoints can take additional parameters start_date and end_date which allow you to request data over a specific period for the given user.

When data is available from a MacrosFirst device, it will be streamed to you via our webhooks. During your Terra account setup, you'll be prompted to provide a callback URL, allowing Terra to PUSH data using POST requests.

Our MacrosFirst integration with Terra offers instant data delivery, eliminating the need for periodic requests. MacrosFirst notifies Terra whenever new data is available, and we then POST the normalized data to your webhook.

MacrosFirst's

Nutrition


Payload Preview



Terra API preserves the raw data from the wearable, it just standardizes the units and the json format. It doesn’t augment or change the raw data in any way.

Data is organized into one of 6 data types.

Learn More

MacrosFirst's Avaliable Data Types

Nutrition Payload (JSON)

{

summary: { ... }

metadata: { ... }

meals: [ ... ]

}

Data can also be sent as a FIT File or with the FHIR Format.

Terra API preserves the raw data from the wearable, it just standardizes the units and the json format. It doesn’t augment or change the raw data in any way.

Data is organized into one of 6 data types.

Learn More

Effortless Backend Integrations

Send your users data to a variety of different destinations.
WebhookWebhook
FirestoreFirestore
SQLSQL
Mongo DBMongo DB
Google Cloud Storage BucketGoogle Cloud Storage Bucket
WebhookWebhook
FirestoreFirestore
SQLSQL
Mongo DBMongo DB
Google Cloud Storage BucketGoogle Cloud Storage Bucket
AWS S3 BucketAWS S3 Bucket
AWS Simple Queue ServiceAWS Simple Queue Service
KafkaKafka
SupabaseSupabase
Azure BlobAzure Blob
AWS S3 BucketAWS S3 Bucket
AWS Simple Queue ServiceAWS Simple Queue Service
KafkaKafka
SupabaseSupabase
Azure BlobAzure Blob

What devices are supported?

Terra API integrates with any MacrosFirst device currently supported by MacrosFirst.

MacrosFirst

Connect with our MacrosFirst Integration

Similar Integrations

These integrations also offer Nutrition data.

Apple

Apple

Google Fit

Google Fit

Fitbit

Fitbit

Fatsecret

Fatsecret

Samsung

Samsung

Cronometer

Cronometer

Nutracheck

Nutracheck

MyFitness Pal

MyFitness Pal

Wger

Wger

PUL

PUL

EatThisMuch

EatThisMuch

virtuagym

virtuagym

Ask, Learn, and Connect

Explore the community forum and connect to Terra API with ease.

The world's best health apps run on Terra data

ProductsIntegrations Authentication Mobile Development Documentation GraphAPI
DocumentationAPI SDK Quickstart
CommunityBlog Research Community Podcast Github
CompanyAboutCareersCustomersBecome an IntegrationCookies PolicyGDPRPrivacy PolicyTerms of Purchase
© Terra API. 2025 — All rights reserved.

Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.