List audiences
curl --request GET \
--url https://api.getlurk.com/v1/audiences \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/audiences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/audiences"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"kind": "list",
"conditions": [
{
"active": {
"days": 183,
"within_days": 365
}
}
],
"summary": "<string>",
"status": "ok",
"problems": [
{
"condition": 1,
"code": "community_removed",
"message": "<string>"
}
],
"users": 1,
"refreshed_at": "2023-11-07T05:31:56Z",
"used_by": [
{
"type": "rule",
"id": "<string>",
"name": "<string>",
"status": "draft"
}
],
"created_at": "2023-11-07T05:31:56Z",
"unknown": 1
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Audiences
List audiences
The groups of people rules can read, newest first, with how many are in each, which rules read it and whether a condition is broken (status, problems). A condition audience’s members are worked out every five minutes: refreshed_at says when, and a rule sees it as it stood then.
GET
/
v1
/
audiences
List audiences
curl --request GET \
--url https://api.getlurk.com/v1/audiences \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/audiences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/audiences"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"kind": "list",
"conditions": [
{
"active": {
"days": 183,
"within_days": 365
}
}
],
"summary": "<string>",
"status": "ok",
"problems": [
{
"condition": 1,
"code": "community_removed",
"message": "<string>"
}
],
"users": 1,
"refreshed_at": "2023-11-07T05:31:56Z",
"used_by": [
{
"type": "rule",
"id": "<string>",
"name": "<string>",
"status": "draft"
}
],
"created_at": "2023-11-07T05:31:56Z",
"unknown": 1
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}