# Retrieving a list of subscribers

To retrieve a list of subscribers, submit a **GET** request to:

```
https://push-api.sare.pl/v1/subscribers/<YOUR_WEBSITE_UID>
```

| Query parameters | Description                                     |
| ---------------- | ----------------------------------------------- |
| limit            | Number of entries (Optional)                    |
| offset           | Indicates entry number to start from (Optional) |
| segment          | From specified segment (Optional)               |

#### PHP example

```php
$url = "https://push-api.sare.pl/v1/subscribers/<YOUR_WEBSITE_UID>";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Basic <YOUR_API_KEY>']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
```

#### Bash example

```bash
curl --include \
     --header "Authorization: Basic <YOUR_API_KEY>" \
     https://push-api.sare.pl/v1/subscribers/<YOUR_WEBSITE_UID>
```

#### Response example

```javascript
[
  {
    "uid": "426bf38b8d799f028aa1a7aadde10272",
    "subscribed": 1568127299,
    "visited": 1568127328,
    "sessions": 1,
    "visits": 2,
    "lastActive": 1568127398,
    "language": "pl",
    "city":"Kielce",
    "country":"Poland",
    "system": "macos",
    "browser": "firefox",
    "device": "desktop",
    "sent": 47,
    "delivered": 1,
    "clicked": 1,
    "test": 1
  },
  {
    "uid": "ed56eb3d462ff94abcdf5822e4171d0d",
    "subscribed": 1569436489,
    "visited": 1569436592,
    "sessions": 1,
    "visits": 4,
    "lastActive": 1569876317,
    "language": "pl",
    "city":"Kielce",
    "country":"Poland",
    "system": "windows",
    "browser": "opera",
    "device": "desktop",
    "sent": 23,
    "delivered": 2,
    "clicked": 0,
    "test": 0
  }
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://push-help.sare.pl/api/retrieving-a-list-of-subscribers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
