curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/interests?search=beauty"
{
"status": "success",
"kind": "interests",
"results": [
{
"id": "SLC_2",
"name": "Beauty Mavens",
"path": "/Beauty/Beauty Mavens",
"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."
}
Snapchat Ads
Interests
Search Snapchat’s interest categories by keyword to get the interest IDs you can target in a Snapchat boost.
GET
/
ads
/
snapchat
/
interests
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/interests?search=beauty"
{
"status": "success",
"kind": "interests",
"results": [
{
"id": "SLC_2",
"name": "Beauty Mavens",
"path": "/Beauty/Beauty Mavens",
"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."
}
Search Snapchat’s interest categories by keyword. Send the
id of each interest you want in targeting.interests when you boost a Snap.
- Snapchat’s interests are its Snap Lifestyle Categories, such as “Bargain Hunters” or “Beauty Mavens”.
- The search matches any interest whose name contains your term. Case does not matter.
- The response returns up to 25 matching interests, all on one page. Use a more specific term to narrow the list.
- Results come from Snapchat’s US list of categories.
- Each result has its
id,nameandpath.pathshows where the interest sits in Snapchat’s category tree.
Header Parameters
Query Parameters
The term to search for, 1 to 100 characters. Escape it in the URL, for example
beauty%20mavens.curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/interests?search=beauty"
{
"status": "success",
"kind": "interests",
"results": [
{
"id": "SLC_2",
"name": "Beauty Mavens",
"path": "/Beauty/Beauty Mavens",
"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."
}