> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/faq/help-topics/data-api-sdk/data-model-fields-and-units/activity-elapsed-vs-active-seconds.md).

# Why doesn't activity end time equal start plus active seconds?

**The two durations measure different things, so a mismatch is expected.**

* The `start_time` to `end_time` span is the total **elapsed** duration of the workout, including any pauses or inactivity.
* `activity_seconds` (under `active_durations_data`) is the **active** moving/exercising time only.

So an activity recorded over many hours can have a much shorter active duration. Both match what the provider's own app shows.

The `low_intensity_seconds`, `moderate_intensity_seconds` and `vigorous_intensity_seconds` fields break down portions of `activity_seconds`, roughly relating as `activity = low + moderate + vigorous + rest`. Providers report these independently, so they are not guaranteed to sum exactly, and some providers do not support all buckets.

Field definitions are in the [activity data model](https://docs.tryterra.co/reference/health-and-fitness-api/data-models).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tryterra.co/faq/help-topics/data-api-sdk/data-model-fields-and-units/activity-elapsed-vs-active-seconds.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
