> For the complete documentation index, see [llms.txt](https://docs.userlane.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.userlane.com/developers/analytics-api/public/get-heart-export-data.md). Agents can also search and read this documentation through its [MCP server](https://docs.userlane.com/~gitbook/mcp).

# Get Heart Export Data

Provides daily HEART v2 metrics for a property over the requested date range, for export into a BI tool.

One row per day that has a snapshot, newest first, carrying the five dimension scores (Happiness, Efficiency, Adoption, Risk, Task Success) and the composite HEART score. Every score on a row covers the 90 days ending on that row's date, so consecutive rows overlap and the series reads as a trend rather than a daily reading.

The composite weights the dimensions 10/20/30/15/25 in the order above. A dimension that produced no value for the window drops out and its weight is redistributed across the rest, so the composite stays on the 0-100 scale instead of being dragged down by missing data.

Only complete days are served, so `end` comes back pulled at yesterday when the request reaches into today. A day the rollup never produced is absent from the response rather than returned with null scores, so a range reaching back before the rollup started returns a shorter series than the range implies.

```json
{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"servers":[{"url":"https://api.userlane.com/analytics"}],"security":[{"ApiTokenAuth":[]}],"components":{"securitySchemes":{"ApiTokenAuth":{"type":"http","scheme":"bearer"}},"schemas":{"HeartExportResponse":{"properties":{"start":{"type":"string","format":"date","title":"Start","description":"Start of the requested time window."},"end":{"type":"string","format":"date","title":"End","description":"End of the time window actually served. Pulled back to yesterday when the request reached into today or beyond, since the current day's snapshot is still being rewritten."},"heartData":{"items":{"$ref":"#/components/schemas/HeartExportRow"},"type":"array","title":"Heartdata","description":"One row per day in the window that has a snapshot, ordered by date descending. Days the rollup never produced are absent rather than null-filled."},"pagination":{"$ref":"#/components/schemas/PaginationResponse","description":"Page position and total counts for the requested window."}},"type":"object","required":["start","end","heartData","pagination"],"title":"HeartExportResponse","description":"A page of daily HEART v2 snapshots, newest first."},"HeartExportRow":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"End date of the 90-day window the scores on this row were calculated over."},"users":{"type":"integer","title":"Users","description":"Distinct users with a session in the 90-day window."},"sessions":{"type":"integer","title":"Sessions","description":"Sessions in the 90-day window."},"happiness":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Happiness","description":"Happiness score, 0-100: the share of CSAT responses rating 4 or 5 on the 1-5 scale. Null when the property received no CSAT response in the window."},"efficiency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Efficiency","description":"Efficiency score, 0-100: how consistently users complete tasks close to the typical completion time for those tasks. Null when the property had no task completions in the window."},"adoption":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Adoption","description":"Adoption score, 0-100: licence utilisation, engaged user rate, and user persistence combined. Null when none of the three could be calculated for the window."},"risk":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk","description":"Risk score, 0-100: the share of monitored data entries that were compliant, so a higher score is better. Null when the property had no monitored data entries in the window."},"taskSuccess":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tasksuccess","description":"Task success score, 0-100: task completions as a share of task starts. Null when no task was started in the window."},"heart":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Heart","description":"Composite HEART score, 0-100: the weighted mean of the dimensions present on this row, weighting happiness 10, efficiency 20, adoption 30, risk 15, and task success 25. A null dimension drops out and its weight is spread across the rest, so the composite stays on the 0-100 scale rather than being dragged down by missing data."}},"type":"object","required":["date","users","sessions","happiness","efficiency","adoption","risk","taskSuccess","heart"],"title":"HeartExportRow","description":"One daily HEART v2 snapshot.\n\nEvery score on the row describes the 90 days ending on `date`, not that day\nalone: the rollup recomputes each dimension over a trailing 90-day window per\nsnapshot date. Consecutive rows therefore overlap heavily, which is what makes\nthe series a trend line rather than a daily reading.\n\nScores are integers on a 0-100 scale.\nA dimension is null when it had no input over the snapshot's lookback window;\nthe composite `heart` then redistributes that dimension's weight across the\nrest, so a null dimension never reads as a zero score."},"PaginationResponse":{"properties":{"page":{"type":"integer","exclusiveMinimum":0,"title":"Page"},"limit":{"type":"integer","exclusiveMinimum":0,"title":"Limit"},"totalElements":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Totalelements"},"totalPages":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Totalpages"}},"type":"object","required":["page","limit"],"title":"PaginationResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/public/v2/heart/property_id/{property_id}":{"get":{"tags":["public"],"summary":"Get Heart Export Data","description":"Provides daily HEART v2 metrics for a property over the requested date range,\nfor export into a BI tool.\n\nOne row per day that has a snapshot, newest first, carrying the five dimension\nscores (Happiness, Efficiency, Adoption, Risk, Task Success) and the composite\nHEART score. Every score on a row covers the 90 days ending on that row's\ndate, so consecutive rows overlap and the series reads as a trend rather than\na daily reading.\n\nThe composite weights the dimensions 10/20/30/15/25 in the order above. A\ndimension that produced no value for the window drops out and its weight is\nredistributed across the rest, so the composite stays on the 0-100 scale\ninstead of being dragged down by missing data.\n\nOnly complete days are served, so `end` comes back pulled at yesterday when\nthe request reaches into today. A day the rollup never produced is absent from\nthe response rather than returned with null scores, so a range reaching back\nbefore the rollup started returns a shorter series than the range implies.","operationId":"get_heart_export_data_public_v2_heart_property_id__property_id__get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"exclusiveMinimum":0,"description":"Number of records per page","default":1000,"title":"Limit"},"description":"Number of records per page"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Type of date range..","default":"custom","title":"Type"},"description":"Type of date range.."},{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Start date of the range, inclusive. Required. Can be an ISO date ('2024-01-01') or datetime ('2024-01-01T00:00:00.000Z').","title":"Start"},"description":"Start date of the range, inclusive. Required. Can be an ISO date ('2024-01-01') or datetime ('2024-01-01T00:00:00.000Z')."},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date","description":"End date of the range, inclusive. Required. Can be an ISO date ('2024-12-31') or datetime ('2024-12-31T23:59:59.999Z').","title":"End"},"description":"End date of the range, inclusive. Required. Can be an ISO date ('2024-12-31') or datetime ('2024-12-31T23:59:59.999Z')."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeartExportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.userlane.com/developers/analytics-api/public/get-heart-export-data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
