PageSourceSearch

https://dawarich.app/assets/js/f3704efb.139ad55c.js

js dawarich.app collected 2026-10-03 22:11:53 UTC 8,626 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkdawarich_app=globalThis.webpackChunkdawarich_app||[]).push([[1914],{87841(e,t,i){i.r(t),i.d(t,{assets:()=>b,contentTitle:()=>f,default:()=>k,frontMatter:()=>u,metadata:()=>a,toc:()=>m});const a=JSON.parse('{"id":"api/retrieves-insights-overview-for-a-year","title":"Retrieves insights overview for a year","description":"Returns aggregated insights including totals, activity heatmap, and available years","source":"@site/docs/api/retrieves-insights-overview-for-a-year.api.mdx","sourceDirName":"api","slug":"/api/retrieves-insights-overview-for-a-year","permalink":"/docs/api/retrieves-insights-overview-for-a-year","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"retrieves-insights-overview-for-a-year","title":"Retrieves insights overview for a year","description":"Returns aggregated insights including totals, activity heatmap, and available years","sidebar_label":"Retrieves insights overview for a year","hide_title":true,"hide_table_of_contents":true,"api":"eJy1V1FP40gM/ivWPC1StC1395Q3bkG76NgTAvZhhRAyiZvMNpnJzjiBXpX/fvIkaUob2ILueClJ7c+fx5897loxZl7Ft+rceJ3l7NVdpFLyidMVa2tUrK6Ia2c8YJY5ypApBd0bgzZJUafaZMCWsfARYMK60byCnJBLrCJAkwI2qAt8KAhWhM6rSFXosCQmJ9HXymBJKlZY6fslrVSktIT+WZOTB0c/a+0oVTG7mnYJnlyew1/BySc5lajiteJVJXienTaZattoE0IIvIy/wMLvBfhO6IAtZMRj6gvr4ENKC6wL9vJtaT2Do4QMhyzhUXMOKTIeTVHThikj94xbqj2jSei+NprfSPK09wXxjWFZgnVQ6ucca08OPDFrk02y2hzYnQT0lTWevHz/23wuH89jbh1GbVIVqcQaJsNiiVVV6ATFcvbDi/l6P5x9+EGJZFo5W5Fj3QULNdo/qt2Ub3ICTwUlosng00ZqI7XvQWkjCjqHQVlMpZ8qxFTZfVfFUb9STzHt9D6Vyo44x67pXIJwOO86YS/zYDOUcgvd1OXD1AmIOQyyAXbYUEFpyKV/+U2ktFfgXSCxArsYoT4MAjoSsMTWhp0m/0n+OaA0fwe+grhxhUZ7zR25RPP7wILfM6QB/kJ7PqDag8B3Y4j7SHcF0pE+mOHK34RzFb9fVmTkKo6dethhsqQUSttQKe3RRupBZxl5/moN51MqMnURBDc98oJbBx7GzlA21bbSAv0M/tKN4LfDn+wM8aD614Wboi5Wp9Icv2yJUzEdL4qAvaQVpfAQnkht5XBBDR3UZwNcIQ7AuSOf2yINNSzx6fCe+opPuqxLCBltnWzPiU5xNTU+XhZC5xb0EBRbO0eGr9kRLg8A+tTZQyKzOKkD1g5kYY2I6WDIi87+YMhrRjc5RF6XUXALFZVj6BHBdyx3Y5yZ9O0Rzkz6In7/F6k/5sf7V1dtsObcOv2PzBHRCHFuUxWrjMKFhNKXaoaVnjXHs+GmkzuTXDOsLbUrVKxy5iqezdb9TfvFem5VpBp0Wqh3/TF+t/WoYlXYBIvceo5/n8/nQvtOYiS107y6lguzAxhWo60RV+lu7Xl9edpflpa0ggq9pxTQA0KwhM1GFsYToSN3L2e0FVESHbYGee6s9mL8GV4D2yUZEAgy3K8C4ai1WdiAqlkKq07xEZ1Ocji5PJdzI+c7oOZ4kr8MosEngpWtHSywsU4zARZMzmDQMlv4bG1WENzoUuY3fYRLZxudkgcyaWW16Te5Eg1mssdKOSRUGEtRN7p91N04PgLPyNqzTny32JbW0Uc5sMp6LjFsOX05rkjupYb8uDPahlyj6TGExGGQPktwPe5Q/9Pm3deS6YlnVYHaCP0g5HWv+luRkhTiOGhp/GGQB/XeqvX6AT19c0XbyutOadIPqfYS64UddTu3D1f9OnsE4/4+SS2IfkvcDRa1WClZnA8P+F8s8a/w62v5TnLvWt5fYbP7Q2KkdTfOJRXf3rWRyglTcqF8nfNJklC17bW3ygvKZl5+PrtRbfsvAcoFAg==","sidebar_class_name":"get api-method","info_path":"docs/api/dawarich-api","custom_edit_url":null},"sidebar":"apiSidebar","previous":{"title":"Retrieves application status","permalink":"/docs/api/retrieves-application-status"},"next":{"title":"Retrieves detailed insights with comparisons and travel patterns","permalink":"/docs/api/retrieves-detailed-insights-with-comparisons-and-travel-patterns"}}');var s=i(74848),r=i(28453),n=i(57742),o=i.n(n),l=i(78178),c=i.n(l),p=i(19624),d=i.n(p),y=i(96226),v=i.n(y),h=(i(77675),i(19365),i(51107)),g=i(21312);const u={id:"retrieves-insights-overview-for-a-year",title:"Retrieves insights overview for a year",description:"Returns aggregated insights including totals, activity heatmap, and available years",sidebar_label:"Retrieves insights overview for a year",hide_title:!0,hide_table_of_contents:!0,api:"eJy1V1FP40gM/ivWPC1StC1395Q3bkG76NgTAvZhhRAyiZvMNpnJzjiBXpX/fvIkaUob2ILueClJ7c+fx5897loxZl7Ft+rceJ3l7NVdpFLyidMVa2tUrK6Ia2c8YJY5ypApBd0bgzZJUafaZMCWsfARYMK60byCnJBLrCJAkwI2qAt8KAhWhM6rSFXosCQmJ9HXymBJKlZY6fslrVSktIT+WZOTB0c/a+0oVTG7mnYJnlyew1/BySc5lajiteJVJXienTaZattoE0IIvIy/wMLvBfhO6IAtZMRj6gvr4ENKC6wL9vJtaT2Do4QMhyzhUXMOKTIeTVHThikj94xbqj2jSei+NprfSPK09wXxjWFZgnVQ6ucca08OPDFrk02y2hzYnQT0lTWevHz/23wuH89jbh1GbVIVqcQaJsNiiVVV6ATFcvbDi/l6P5x9+EGJZFo5W5Fj3QULNdo/qt2Ub3ICTwUlosng00ZqI7XvQWkjCjqHQVlMpZ8qxFTZfVfFUb9STzHt9D6Vyo44x67pXIJwOO86YS/zYDOUcgvd1OXD1AmIOQyyAXbYUEFpyKV/+U2ktFfgXSCxArsYoT4MAjoSsMTWhp0m/0n+OaA0fwe+grhxhUZ7zR25RPP7wILfM6QB/kJ7PqDag8B3Y4j7SHcF0pE+mOHK34RzFb9fVmTkKo6dethhsqQUSttQKe3RRupBZxl5/moN51MqMnURBDc98oJbBx7GzlA21bbSAv0M/tKN4LfDn+wM8aD614Wboi5Wp9Icv2yJUzEdL4qAvaQVpfAQnkht5XBBDR3UZwNcIQ7AuSOf2yINNSzx6fCe+opPuqxLCBltnWzPiU5xNTU+XhZC5xb0EBRbO0eGr9kRLg8A+tTZQyKzOKkD1g5kYY2I6WDIi87+YMhrRjc5RF6XUXALFZVj6BH
1Bdyx3Y5yZ9O0Rzkz6In7/F6k/5sf7V1dtsObcOv2PzBHRCHFuUxWrjMKFhNKXaoaVnjXHs+GmkzuTXDOsLbUrVKxy5iqezdb9TfvFem5VpBp0Wqh3/TF+t/WoYlXYBIvceo5/n8/nQvtOYiS107y6lguzAxhWo60RV+lu7Xl9edpflpa0ggq9pxTQA0KwhM1GFsYToSN3L2e0FVESHbYGee6s9mL8GV4D2yUZEAgy3K8C4ai1WdiAqlkKq07xEZ1Ocji5PJdzI+c7oOZ4kr8MosEngpWtHSywsU4zARZMzmDQMlv4bG1WENzoUuY3fYRLZxudkgcyaWW16Te5Eg1mssdKOSRUGEtRN7p91N04PgLPyNqzTny32JbW0Uc5sMp6LjFsOX05rkjupYb8uDPahlyj6TGExGGQPktwPe5Q/9Pm3deS6YlnVYHaCP0g5HWv+luRkhTiOGhp/GGQB/XeqvX6AT19c0XbyutOadIPqfYS64UddTu3D1f9OnsE4/4+SS2IfkvcDRa1WClZnA8P+F8s8a/w62v5TnLvWt5fYbP7Q2KkdTfOJRXf3rWRyglTcqF8nfNJklC17bW3ygvKZl5+PrtRbfsvAcoFAg==",sidebar_class_name:"get api-method",info_path:"docs/api/dawarich-api",custom_edit_url:null},f=void 0,b={},m=[];function T(e){const t={p:"p",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.default,{as:"h1",className:"openapi__heading",children:"Retrieves insights overview for a year"}),"\n",(0,s.jsx)(o(),{method:"get",path:"/api/v1/insights",context:"endpoint"}),"\n",(0,s.jsx)(t.p,{children:"Returns aggregated insights including totals, activity heatmap, and available years"}),"\n",(0,s.jsx)(h.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:(0,s.jsx)(g.default,{id:"theme.openapi.request.title",children:"Request"})}),"\n",(0,s.jsx)(c(),{...i(8686)}),"\n",(0,s.jsx)(d(),{...i(78076)}),"\n",(0,s.jsx)(v(),{...i(32902)})]})}function k(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(T,{...e})}):T(e)}},53381(e,t,i){i.r(t),i.d(t,{ResponseHeaders:()=>o,default:()=>l});i(96540);var a=i(60674),s=i.n(a),r=i(67114),n=i(74848);const o=({responseHeaders:e})=>e?(0,n.jsx)("ul",{style:{marginLeft:"1rem"},children:Object.entries(e).map(([e,t])=>(0,n.jsx)(s(),{name:e,collapsible:!1,schemaName:(0,r.getSchemaName)(t),qualifierMessage:(0,r.getQualifierMessage)(t),schema:t,discriminator:!1,children:null},e))}):null,l=o},8686(e){e.exports=JSON.parse('{"parameters":[{"name":"api_key","in":"query","required":true,"description":"API Key","schema":{"type":"string"}},{"name":"year","in":"query","required":false,"description":"Year to get insights for (defaults to most recent year with data)","schema":{"type":"integer"}},{"name":"distance_unit","in":"query","required":false,"description":"Distance unit: km or mi (defaults to user setting)","schema":{"type":"string"}}]}')},78076(e){e.exports={title:"Body"}},32902(e){e.exports=JSON.parse('{"responses":{"200":{"description":"insights found","content":{"application/json":{"schema":{"type":"object","properties":{"year":{"type":"integer","description":"The selected year"},"availableYears":{"type":"array","items":{"type":"integer"},"description":"Years with available data"},"totals":{"type":"object","description":"Aggregated totals for the year","properties":{"totalDistance":{"type":"number","description":"Total distance traveled"},"distanceUnit":{"type":"string","description":"Unit of distance (km or mi)"},"countriesCount":{"type":"integer","description":"Number of countries visited"},"citiesCount":{"type":"integer","description":"Number of cities visited"},"countriesList":{"type":"array","items":{"type":"string"},"description":"List of country names"},"daysTraveling":{"type":"number","description":"Number of days with tracked movement"},"biggestMonth":{"type":"object","nullable":true,"description":"Month with most distance"}}},"activityHeatmap":{"type":"object","nullable":true,"description":"Activity heatmap data for the year","properties":{"dailyData":{"type":"object","description":"Daily activity data keyed by date"},"activityLevels":{"type":"object","description":"Activity level thresholds"},"maxDistance":{"type":"number","description":"Maximum daily distance"},"activeDays":{"type":"integer","description":"Number of active days"},"currentStreak":{"type":"integer","description":"Current consecutive active days"},"longestStreak":{"type":"integer","description":"Longest consecutive active days"},"longestStreakStart":{"type":"string","nullable":true,"description":"Start date of longest streak"},"longestStreakEnd":{"type":"string","nullable":true,"description":"End date of longest streak"}}}}}}}},"401":{"description":"unauthorized"}}}')}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.