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
Interesses
Pesquise pelo nome os interesses de anúncios do Reddit, até 25 resultados, e obtenha os IDs a enviar em targeting.interests ao impulsionar um post.
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."
}
Encontre interesses do Reddit para segmentar. Envie o
id de cada um que você escolher em targeting.interests ao impulsionar uma publicação.
searchcorresponde a qualquer parte do nome de um interesse, sem diferenciar maiúsculas de minúsculas.- São retornadas até 25 correspondências, em uma única página.
meta.pagination.hasMoreé semprefalse. - Um
searchausente, vazio ou com mais de 100 caracteres retornacode: 101.
Parâmetros de cabeçalho
Parâmetros de consulta
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."
}