< Blogs
Elliott

Elliott

May 30, 2022

The Power of the Data Generator

One of our many tasks was: How can we let developers test our API quickly?

Reading from our docs, you as a developer can see what format we send our data in. However, when it comes to playing around with the API, you may not be completely sure as to what to expect in your webhook for each provider. Things such as what fields from sleep payload does Apple provide or does Google Fit provide Nutrition data. You can now get a comprehensive understanding of what kind of data you expect to receive using our data generator!

Who gives what

When you communicate with Terra, you are always given the same data structure. However, it would be really helpful to know during development the exact type of data each provider provides.

Let's say you are trying to integrate with us for Sleep data with Oura, Google Fit and Garmin. With our data generator, you can preemptively find out if these providers provide sleep data, and most importantly, which fields in our sleep data model do they provide.

Generating Oura Sleep Data

Looking at the above example, you can see that Oura do indeed provide Sleep data. However, does not provide body, nutrition, or activity. Knowing this information before hand allows you to deal with cases where you can avoid unnecessary requests or unexpected empty responses from Terra. In addition, you can also confirm exactly which fields Oura provides so you can avoid hitting null cases, or making sure that the field is populated with an int or a double!

Robust Testing

The data generator sends the data to your webhook exactly as shown in the terminal screen when you press "Send to Webhook". This feature is exceptionally useful for testing. Using generated data, you can make sure your backend is storing the data correctly, handling null or empty values as expected, or getting the data type you are expecting. The data generator also allows you to develop and test for a wearable or provider without you actually having the wearable itself!

Give it a go!

Always been on the edge on whether you should use Terra because you do not know the flow of our data or the data structure well? Now is the time for you to be completely sure of it. Go to our dashboard, sign up, and test it out for yourself!

More Topics

All Blogs
Team Spotlight
Startup Spotlight
How To
Blog
Podcast
Product Updates
Wearables
See All >
March '25 Updates by Terra

March '25 Updates by Terra

🚀 Terra enhances biomarker tracking, improves dashboard usability, and launches a dedicated support page for potential new users—boosting clarity and confidence! 📊✨

Alex VenetidisAlex Venetidis
April 1, 2025
Product Engineering at Terra API - Stalk your users

Product Engineering at Terra API - Stalk your users

In the latest podcast, our product engineer Vanessa breaks down how to get inside your users' heads to build products that people love.

Terra APITerra API
March 3, 2025
Co-Founder of Zoe - George Hadjigeorgiou

Co-Founder of Zoe - George Hadjigeorgiou

In this live podcast with Kyriakos the CEO of Terra, George Hadjigeorgiou shares his journey in building the world’s largest nutrition study.

Terra APITerra API
February 11, 2025
Co-Founder of GoCardless & Nested - Matt Robinson

Co-Founder of GoCardless & Nested - Matt Robinson

In this live podcast with Kyriakos the CEO of Terra, Matt Robinson, founder of GoCardless, discusses the challenges and lessons from building a billion-dollar business.

Terra APITerra API
February 11, 2025
February '25 Updates by Terra

February '25 Updates by Terra

🚀 Terra introduces Blood Report Automation, new insurer-focused use cases boosting loyalty through wearable data, and freshly revamped developer documentation! 📊✨

Alex VenetidisAlex Venetidis
February 1, 2025
next ventures
pioneer fund
samsung next
y combinator
general catalyst

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.