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 की ad interests नाम से खोजें, अधिकतम 25 matches, और Reddit post boost करते समय targeting.interests में भेजने के लिए interest IDs पाएँ।
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."
}
Target करने के लिए Reddit interests खोजें। जब आप कोई पोस्ट boost करें, तो चुनी गई हर interest का
id targeting.interests में भेजें।
searchinterest के नाम के किसी भी हिस्से से मेल खाता है, अक्षरों के case को अनदेखा करते हुए।- अधिकतम 25 परिणाम एक ही पेज में लौटाए जाते हैं।
meta.pagination.hasMoreहमेशाfalseहोता है। searchन भेजने, खाली भेजने या 100 characters से लंबा भेजने पर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."
}