curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/audiences?accountId=a2_abcdefg"
const API_KEY = "API_KEY";
fetch("https://api.ayrshare.com/api/ads/reddit/audiences?accountId=a2_abcdefg", {
method: "GET",
headers: {
"Authorization": `Bearer ${API_KEY}`
}
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
headers = {'Authorization': 'Bearer API_KEY'}
r = requests.get('https://api.ayrshare.com/api/ads/reddit/audiences?accountId=a2_abcdefg', headers=headers)
print(r.json())
{
"status": "success",
"audiences": [
{
"id": "ca.129482487242828",
"name": "Buyers",
"type": "customerList",
"size": { "lower": 140000, "upper": 160000 },
"status": { "ready": true, "code": null, "description": "VALID" },
"created": "2026-11-20T09:12:00.000Z"
},
{
"id": "ca.129482487242999",
"name": "Site visitors 30d",
"type": "website",
"size": null,
"status": { "ready": false, "code": null, "description": "PENDING" },
"created": "2026-12-01T16:40:00.000Z"
}
],
"meta": { "pagination": { "hasMore": false } }
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "accountId is required."
}
{
"action": "ads",
"status": "error",
"code": 370,
"message": "Error getting audiences. Please try again.",
"details": "Reddit's reason"
}
Reddit Ads
Аудиторії
Список користувацьких аудиторій рекламного облікового запису Reddit із типом, розміром і тим, чи може просування вже на них націлюватися.
GET
/
ads
/
reddit
/
audiences
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/audiences?accountId=a2_abcdefg"
const API_KEY = "API_KEY";
fetch("https://api.ayrshare.com/api/ads/reddit/audiences?accountId=a2_abcdefg", {
method: "GET",
headers: {
"Authorization": `Bearer ${API_KEY}`
}
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
headers = {'Authorization': 'Bearer API_KEY'}
r = requests.get('https://api.ayrshare.com/api/ads/reddit/audiences?accountId=a2_abcdefg', headers=headers)
print(r.json())
{
"status": "success",
"audiences": [
{
"id": "ca.129482487242828",
"name": "Buyers",
"type": "customerList",
"size": { "lower": 140000, "upper": 160000 },
"status": { "ready": true, "code": null, "description": "VALID" },
"created": "2026-11-20T09:12:00.000Z"
},
{
"id": "ca.129482487242999",
"name": "Site visitors 30d",
"type": "website",
"size": null,
"status": { "ready": false, "code": null, "description": "PENDING" },
"created": "2026-12-01T16:40:00.000Z"
}
],
"meta": { "pagination": { "hasMore": false } }
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "accountId is required."
}
{
"action": "ads",
"status": "error",
"code": 370,
"message": "Error getting audiences. Please try again.",
"details": "Reddit's reason"
}
Список користувацьких аудиторій рекламного облікового запису Reddit: ваших списків клієнтів, відвідувачів сайту та будь-якої іншої аудиторії облікового запису. Використовуйте ID у
targeting.audiences або targeting.excludedAudiences, коли просуваєте допис.
- Аудиторії, створені в Reddit Ads Manager, також потрапляють у список, а не лише ті, що створені через Ayrshare.
status.readyстаєtrue, щойно Reddit зіставить щонайменше 1 000 людей і просування зможе націлюватися на аудиторію.size— власна оцінка Reddit у вигляді нижньої та верхньої межі. Вона дорівнюєnull, доки в Reddit немає оцінки.- Результати не кешуються: розмір і готовність аудиторії змінюються, поки вона наповнюється.
Параметри заголовка
Параметри запиту
Коли відповідь містить
meta.pagination.hasMore: true, надішліть сюди її значення meta.pagination.next, щоб отримати наступну сторінку. Інші параметри надсилайте без змін: значення next з іншого запиту повертає code: 101.Відповідь
Кожна аудиторія містить:id: ID аудиторії для просування, додавання людей або видалення.name: назва, яку показує Reddit Ads Manager.type:customerList,website,engagementабоotherдля типу аудиторії, який Ayrshare не створює, наприклад схожої аудиторії.size:{ lower, upper }, оцінка Reddit, абоnull.status:{ ready, code, description }.readyдорівнюєtrue, коли просування може націлюватися на аудиторію вже зараз.description— статус у Reddit, наприкладPENDING,VALIDабоNOT_ENOUGH_MATCHES_ERROR.codeу Reddit завждиnull.created: коли аудиторію створено, у форматі ISO 8601, абоnull.
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/audiences?accountId=a2_abcdefg"
const API_KEY = "API_KEY";
fetch("https://api.ayrshare.com/api/ads/reddit/audiences?accountId=a2_abcdefg", {
method: "GET",
headers: {
"Authorization": `Bearer ${API_KEY}`
}
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
headers = {'Authorization': 'Bearer API_KEY'}
r = requests.get('https://api.ayrshare.com/api/ads/reddit/audiences?accountId=a2_abcdefg', headers=headers)
print(r.json())
{
"status": "success",
"audiences": [
{
"id": "ca.129482487242828",
"name": "Buyers",
"type": "customerList",
"size": { "lower": 140000, "upper": 160000 },
"status": { "ready": true, "code": null, "description": "VALID" },
"created": "2026-11-20T09:12:00.000Z"
},
{
"id": "ca.129482487242999",
"name": "Site visitors 30d",
"type": "website",
"size": null,
"status": { "ready": false, "code": null, "description": "PENDING" },
"created": "2026-12-01T16:40:00.000Z"
}
],
"meta": { "pagination": { "hasMore": false } }
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "accountId is required."
}
{
"action": "ads",
"status": "error",
"code": 370,
"message": "Error getting audiences. Please try again.",
"details": "Reddit's reason"
}