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
Sở thích
Tìm sở thích quảng cáo của Reddit theo tên, tối đa 25 kết quả, và lấy ID sở thích để gửi trong targeting.interests khi boost bài đăng 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."
}
Tìm các sở thích Reddit để nhắm mục tiêu. Gửi
id của từng sở thích bạn chọn trong targeting.interests khi bạn boost một bài đăng.
searchkhớp với bất kỳ phần nào trong tên sở thích, không phân biệt chữ hoa chữ thường.- Trả về tối đa 25 kết quả, trong một trang.
meta.pagination.hasMoreluôn làfalse. searchbị thiếu, rỗng hoặc dài hơn 100 ký tự sẽ trả vềcode: 101.
Tham số Header
Tham số truy vấn
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."
}