Retrieving a list of tags

To retrieve a list of tags, submit a GET request to:

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

PHP example

$url = "https://push-api.sare.pl/v1/tags/<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

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

Response example

[
  {
    "tag": "firstTag",
    "count": 78
  },
  {
    "tag": "otherTag",
    "count": 56
  }
]

Last updated