Skip to main content
GET
/
subscriptions
/
{subscriptionRef}
Get subscription results (alias of cloud)
curl --request GET \
  --url https://{host}/subscriptions/{subscriptionRef}
import requests

url = "https://{host}/subscriptions/{subscriptionRef}"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://{host}/subscriptions/{subscriptionRef}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/subscriptions/{subscriptionRef}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://{host}/subscriptions/{subscriptionRef}"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://{host}/subscriptions/{subscriptionRef}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://{host}/subscriptions/{subscriptionRef}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "subscription": {
    "name": "<string>",
    "description": "<string>",
    "created": "<string>",
    "createdBy": "<string>",
    "updated": "<string>",
    "updatedBy": "<string>",
    "lastRefreshed": "<string>",
    "owner": "<string>"
  },
  "count": 123,
  "results": [
    {
      "divider": "<string>",
      "tags": [
        "<string>"
      ]
    }
  ]
}

Path Parameters

subscriptionRef
string
required

Unique subscription identifier.

Query Parameters

divider
enum<string>
default:true

Display divider between properties and tags in each result: "true" (default) shows "divider": "------------------------", "false" hides it.

Available options:
true,
false
limit
integer
default:3000

Maximum number of results to return. Default 3000; valid range 1–30000. Only applies to on-demand queries (no limit for scheduled webhook pushes).

Required range: 1 <= x <= 30000

Response

200 - application/json

Subscription results (same shape as above)

subscription
object
required
count
integer
required

Number of recommendations in results.

results
object[]
required