Mentions API
Base URL
/api
All endpoints require authentication using Authorization: Bearer <token>.
Endpoints
GET /mentions
Retrieve a list of all mentions/targeted account contents.
Headers:
Authorization: Bearer <token>
Query Parameters:
project_id(optional): Filter by project IDkeyword(optional): Filter by keyworddate_from(optional): Start date filter (YYYY-MM-DD)date_to(optional): End date filter (YYYY-MM-DD)limit(optional): Items per page (default: 20)offset(optional): Pagination offset (default: 0)
Response:
{
"mentions": [
{
"id": "string",
"account_name": "string",
"account_username": "string",
"content": "string",
"platform": "string",
"url": "string",
"posted_at": "datetime",
"engagement": {
"likes": 0,
"comments": 0,
"shares": 0
},
"sentiment": "positive|negative|neutral",
"project_id": "string",
"keyword": "string"
}
],
"pagination": {
"total": 150,
"limit": 20,
"offset": 0,
"has_next": true
}
}
Error Responses
401 Unauthorized
{
"error": "Invalid or missing token"
}
403 Forbidden
{
"error": "Access denied"
}
500 Internal Server Error
{
"error": "Internal server error"
}
Response Fields Explanation
Mention object
id: Unique identifier for the mentionaccount_name: Name of the account that posted the mentionaccount_username: Account username/handlecontent: Text content of the mentionplatform: Social media platform (twitter, instagram, etc.)url: URL to the original contentposted_at: Time the content was postedengagement: Engagement statistics (likes, comments, shares)sentiment: Sentiment analysis result for the contentproject_id: Related project IDkeyword: Keyword that triggered the mention
Pagination object
total: Total number of itemslimit: Number of items per pageoffset: Starting position of the datahas_next: Whether there is a next page