---
title: Get Analytics
slug: v2/get-analytics
description: Learn how to utilize the "itranalytics" endpoint API to access detailed income tax return analytics. Follow our comprehensive API documentation to understand the required headers, input data format (JSON), and how to obtain the necessary reference ID. Ret
createdAt: 2023-04-07T09:22:00.000Z
---

## Introduction

This API documentation is for the **itranalytics** endpoint that allows users to retrieve analytics related to income tax returns. The API requires specific headers and input data in JSON format, including a reference ID obtained from another API. Upon successful processing of the request, the API returns analytics data in the response body.

# Sample cURL

```curl
curl --request POST \
  --url https://signzy.tech/api/v2/patrons/..your-patron-id../itranalytics \
  --header 'Accept: */*' \
  --header 'Accept-Language: en-US,en;q=0.8' \
  --header 'Authorization: <Access-Token>' \
  --header 'content-type: application/json' \
  --data '{"task":"getAnalytics","essentials":{"referenceId":"...referenceId from getReferenceId API..."}}'
```

| Parameter Name  | Data Type | Required | Description                                                                                                                                            |
| --------------- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| task            | string    | Yes      | The analytics task to perform. The only supported task is "getAnalytics" for retrieving income tax return analytics.                                   |
| essentials      | JSON      | Yes      | A JSON object that contains essential data for the API to process the request, including the **referenceId** obtained from the **getReferenceId** API. |
| referenceId     | string    | Yes      | A reference ID is obtained from the **getReferenceId** API, which identifies the income tax return for which the analytics are requested.              |
| Accept          | string    | No       | The acceptable media types for the response. By default, the server can respond with any content type.                                                 |
| Accept-Language | string    | No       | The preferred language for the response, in case the server supports multiple languages.                                                               |
| Authorization   | string    | Yes      | An access token that authenticates the user's access to the API.                                                                                       |
| Content-Type    | string    | Yes      | The format of the input data must be set to **application/json**.                                                                                      |

# Sample Response

```javascript
{
    "result": {
        "excelUrl" : "A Downloadable Excel Sheet URL"
        "data":  "JSON Data of ITR Analytics";
        "statusMessage": "Status Message",
        "referenceId": " Reference ID"
      }
    }
```

| Parameter Name | Data Type | Required | Description                                                              |
| -------------- | --------- | -------- | ------------------------------------------------------------------------ |
| excelUrl       | string    | Yes      | A downloadable Excel Sheet URL containing the data of the ITR Analytics. |
| data           | string    | Yes      | JSON data containing the ITR Analytics.                                  |
| statusMessage  | string    | Yes      | A status message of the API call.                                        |
| referenceId    | string    | Yes      | Reference ID received from the getReferenceId API call.                  |

