---
title: getClickCountByUrl
slug: campaign/docs/getclickcountbyurl
docTags: 
createdAt: 2026-07-02T19:01:46.338Z
---

**Type**: int\[ ]

**Parameters**

| Name      | Type    | Value                                                                                                                                            |
| --------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| sessionId | String  | ID of the session                                                                                                                                |
| mailingId | long    | ID of the mailing                                                                                                                                |
| URLs      | String  | Link URLs of the mailing to be analyzed                                                                                                          |
| unique    | Boolean | TRUE: Double counts of recipients that clicked a link in the mailing several times are removed. FALSE: The overall number of clicks is returned. |

**Return values**

Number of clicks for each URL

**Code structure**

```javascript
int[] getClickCountByUrl(String sessionId, long mailingId, String[] URLs, boolean unique)
```
