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
Zielgruppen
Listet die Custom Audiences eines Reddit-Werbekontos mit Typ, Größe und der Angabe, ob ein Boost sie bereits ansprechen kann.
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"
}
Listet die Custom Audiences eines Reddit-Werbekontos: Ihre Kundenlisten, Websitebesucher und jede andere Zielgruppe des Kontos. Verwenden Sie die IDs in
targeting.audiences oder targeting.excludedAudiences, wenn Sie einen Beitrag bewerben.
- Auch in Reddit Ads Manager erstellte Zielgruppen werden aufgelistet, nicht nur die über Ayrshare erstellten.
status.readyisttrue, sobald Reddit mindestens 1.000 Personen zugeordnet hat und ein Boost die Zielgruppe ansprechen kann.sizeist Reddits eigene Schätzung als Unter- und Obergrenze. Der Wert istnull, solange Reddit keine Schätzung hat.- Die Ergebnisse werden nicht zwischengespeichert: Größe und Bereitschaft einer Zielgruppe ändern sich, während sie sich füllt.
Header-Parameter
Query-Parameter
Wenn die Antwort
meta.pagination.hasMore: true enthält, senden Sie hier ihren Wert meta.pagination.next, um die nächste Seite abzurufen. Senden Sie die übrigen Parameter unverändert: Ein next-Wert aus einer anderen Anfrage liefert code: 101.Antwort
Jede Zielgruppe enthält:id: die Zielgruppen-ID für Boosts, das Hinzufügen von Personen oder das Löschen.name: der in Reddit Ads Manager angezeigte Name.type:customerList,website,engagementoderotherfür eine Zielgruppenart, die Ayrshare nicht erstellt, etwa eine Lookalike.size:{ lower, upper }, Reddits Schätzung, odernull.status:{ ready, code, description }.readyisttrue, wenn ein Boost die Zielgruppe jetzt ansprechen kann.descriptionist der Status bei Reddit, etwaPENDING,VALIDoderNOT_ENOUGH_MATCHES_ERROR.codeist auf Reddit immernull.created: wann die Zielgruppe erstellt wurde, im ISO-8601-Format, odernull.
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"
}