# Inisghts

The `inisghts`query returns a series of tracking-related insights for the given date in relation to the previous two weeks.

### Required Arguments

<table data-header-hidden><thead><tr><th></th><th width="219"></th><th></th></tr></thead><tbody><tr><td>Argument</td><td>Type</td><td>Description</td></tr><tr><td><code>date</code></td><td>DateTime!</td><td>Date to analyze</td></tr><tr><td><code>category</code></td><td>InisghtsCategory</td><td>Optional. To filter by category.</td></tr></tbody></table>

### Available Fields

|               |        |                           |
| ------------- | ------ | ------------------------- |
| Field Name    | Type   | Description               |
| `highlight`   | String | Value of the change       |
| `text`        | String | Description of the change |
| `description` | String | Supporting content        |

### Example

{% tabs %}
{% tab title="Request" %}

```graphql
query($date: Date!, $category: InsightsCategory){
    insights(date: $date, category: $category){
        category fields{ highlight text description}
    }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
   "data":{
      "insights":[
         {
            "category":"SLEEP",
            "fields":{
               "highlight":"+1",
               "text":"You've increased your sleep time by 1 hours in the past 7 days.",
               "description":"Quality sleep is the foundation of a healthy mind and body."
            }
         },
         {
            "category":"STEPS",
            "fields":{
               "highlight":"-408",
               "text":"You've decreased your daily step count by 408 on average in the past seven days.",
               "description":"Embrace each stride, your wellness journey begins with every step."
            }
         }
      ]
   }
}
```

{% endtab %}
{% endtabs %}
