curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/interests?search=tech"
{
"status": "success",
"kind": "interests",
"results": [
{ "id": "2707000000101", "name": "Technology", "kind": "interests" },
{ "id": "2707000000102", "name": "Tech News", "kind": "interests" }
],
"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": "Targeting search needs a query of 1 to 100 characters."
}
Reddit Ads
الاهتمامات
ابحث عن اهتمامات إعلانات Reddit بالاسم، حتى 25 نتيجة، واحصل على معرّفات الاهتمامات لإرسالها في targeting.interests عند تعزيز منشور على Reddit.
GET
/
ads
/
reddit
/
interests
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/interests?search=tech"
{
"status": "success",
"kind": "interests",
"results": [
{ "id": "2707000000101", "name": "Technology", "kind": "interests" },
{ "id": "2707000000102", "name": "Tech News", "kind": "interests" }
],
"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": "Targeting search needs a query of 1 to 100 characters."
}
ابحث عن اهتمامات Reddit لاستهدافها. أرسل
id كل اهتمام تختاره في targeting.interests عندما تعزّز منشورًا.
- يطابق
searchأي جزء من اسم الاهتمام، دون التمييز بين الأحرف الكبيرة والصغيرة. - تُرجَع 25 نتيجة كحد أقصى، في صفحة واحدة. تكون قيمة
meta.pagination.hasMoreدائمًاfalse. - يؤدي غياب
search، أو إرساله فارغًا، أو أطول من 100 حرف، إلى إرجاعcode: 101.
معاملات الترويسة
معاملات الاستعلام
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/interests?search=tech"
{
"status": "success",
"kind": "interests",
"results": [
{ "id": "2707000000101", "name": "Technology", "kind": "interests" },
{ "id": "2707000000102", "name": "Tech News", "kind": "interests" }
],
"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": "Targeting search needs a query of 1 to 100 characters."
}