Connect with Apple

With Terra's Apple Health SDK integration, you can use the Terra iOS SDK to gain access to all data users see in their app, including user-tracked workouts & activity summaries

Start Receiving Data From Apple In 5 Minutes

Apple

Apple

Enable Apple through your Terra dashboard

Select a Wearable

Apple

Apple

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 Apple on your app or website

You Can Receive...

Recent Data with Webhooks
Historical Data with HTTP Requests

When data is available from an Apple 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 Apple integration in case you wish to request historical data or data over extended periods of time.

Our Apple integration with Terra offers instant data delivery, eliminating the need for periodic requests. Apple 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 an Apple 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 Apple integration with Terra offers instant data delivery, eliminating the need for periodic requests. Apple notifies Terra whenever new data is available, and we then POST the normalized data to your webhook.

Apple's

Activity


Payload Preview

Apple's

Body


Payload Preview

Apple's

Daily


Payload Preview

Apple's

Menstruation


Payload Preview

Apple's

Nutrition


Payload Preview

Apple's

Sleep


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

Apple's Avaliable Data Types

Activity Payload (JSON)

{

calories_data: { ... }

power_data: { ... }

position_data: { ... }

metadata: { ... }

heart_rate_data: { ... }

device_data: { ... }

movement_data: { ... }

active_durations_data: { ... }

distance_data: { ... }

}

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

People Often Ask Us...

Can I use Apple via the web API?

Apple Health does not offer a web API, which means that you will need to use the Terra mobile SDK (in Swift, React Native, or Flutter) to manage the data connection & flow from Apple Health. Once a connection is established using the SDK, any data that is synced with the Terra servers will then be automatically pushed to you via webhook or any other destination connector of choice, and will be available to be requested via HTTP requests as well.

Can I write data into Apple Health?

Yes! Our various methods on the SDK allow you to write data into Apple Health as well as reading it from Apple Health.

Can't Find Your Question?

Connect with our Apple Integration

Ask, Learn, and Connect

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

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.