Fetch and analyze brand mentions from Octolens API. Filter by source, sentiment, date range, and more with AND/OR logic.
Ships in sundial-org-awesome-openclaw-skills-4. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill when the user needs to:
The Octolens API requires a Bearer token for authentication. The user should provide their API key, which you'll use in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Important: Always ask the user for their API key before making any API calls. Store it in a variable for subsequent requests.
All API endpoints use the base URL: https://app.octolens.com/api/v1
X-RateLimit-* headers indicate current usageFetch mentions matching keywords with optional filtering. Returns posts sorted by timestamp (newest first).
Key Parameters:
limit (number, 1-100): Maximum results to return (default: 20)cursor (string): Pagination cursor from previous responseincludeAll (boolean): Include low-relevance posts (default: false)view (number): View ID to use for filteringfilters (object): Filter criteria (see filtering section)Example Response:
{
"data": [
{
"id": "abc123",
"url": "https://twitter.com/user/status/123",
"body": "Just discovered @YourProduct - this is exactly what I needed!",
"source": "twitter",
"timestamp": "2024-01-15T10:30:00Z",
"author": "user123",
"authorName": "John Doe",
"authorFollowers": 5420,
"relevance": "relevant",
"sentiment": "positive",
"language": "en",
"tags": ["feature-request"],
"keywords": [{ "id": 1, "keyword": "YourProduct" }],
"bookmarked": false,
"engaged": false
}
],
"cursor": "eyJsYXN0SWQiOiAiYWJjMTIzIn0="
}
List all keywords configured for the organization.
Example Response:
{
"data": [
{
"id": 1,
"keyword": "YourProduct",
"platforms": ["twitter", "reddit", "github"],
"color": "#6366f1",
"paused": false,
"context": "Our main product name"
}
]
}
List all saved views (pre-configured filters).
Example Response:
{
"data": [
{
"id": 1,
"name": "High Priority",
"icon": "star",
"filters": {
"sentiment": ["positive", "negative"],
"source": ["twitter"]
},
"createdAt": "2024-01-01T00:00:00Z"
}
]
}
The /mentions endpoint supports powerful filtering with two modes:
Put fields directly in filters. All conditions are ANDed together.
{
"filters": {
"source": ["twitter", "linkedin"],
"sentiment": ["positive"],
"minXFollowers": 1000
}
}
→ source IN (twitter, linkedin) AND sentiment = positive AND followers ≥ 1000
Prefix any array field with ! to exclude values:
{
"filters": {
"source": ["twitter"],
"!keyword": [5, 6]
}
}
→ source = twitter AND keyword NOT IN (5, 6)
Use operator and groups for complex logic:
{
"filters": {
"operator": "AND",
"groups": [
{
"operator": "OR",
"conditions": [
{ "source": ["twitter"] },
{ "source": ["linkedin"] }
]
},
{
"operator": "AND",
"conditions": [
{ "sentiment": ["positive"] },
{ "!tag": ["spam"] }
]
}
]
}
}
→ (source = twitter OR source = linkedin) AND (sentiment = positive AND tag ≠ spam)
| Field | Type | Description |
|---|---|---|
source | string[] | Platforms: twitter, reddit, github, linkedin, youtube, hackernews, devto, stackoverflow, bluesky, newsletter, podcast |
sentiment | string[] | Values: positive, neutral, negative |
keyword | string[] | Keyword IDs (get from /keywords endpoint) |
language | string[] | ISO 639-1 codes: en, es, fr, de, pt, it, nl, ja, ko, zh |
tag | string[] | Tag names |
bookmarked | boolean | Filter bookmarked (true) or non-bookmarked (false) posts |
engaged | boolean | Filter engaged (true) or non-engaged (false) posts |
minXFollowers | number | Minimum Twitter follower count |
maxXFollowers | number | Maximum Twitter follower count |
startDate | string | ISO 8601 format (e.g., "2024-01-15T00:00:00Z") |
endDate | string | ISO 8601 format |
This skill includes helper scripts for common operations. Use them to quickly interact with the API:
node scripts/fetch-mentions.js YOUR_API_KEY [limit] [includeAll]
node scripts/list-keywords.js YOUR_API_KEY
node scripts/list-views.js YOUR_API_KEY
node scripts/query-mentions.js YOUR_API_KEY '{"source": ["twitter"], "sentiment": ["positive"]}' [limit]
node scripts/advanced-query.js YOUR_API_KEY [limit]
X-RateLimit-*)/keywords endpoint before filtering by keyword{
"limit": 20,
"filters": {
"source": ["twitter"],
"sentiment": ["positive"],
"minXFollowers": 1000
}
}
{
"limit": 50,
"filters": {
"source": ["reddit", "github"],
"!tag": ["spam", "irrelevant"]
}
}
{
"limit": 30,
"filters": {
"operator": "AND",
"groups": [
{
"operator": "OR",
"conditions": [
{ "source": ["twitter"] },
{ "source": ["linkedin"] }
]
},
{
"operator": "AND",
"conditions": [
{ "sentiment": ["positive"] },
{ "startDate": "2024-01-20T00:00:00Z" }
]
}
]
}
}
| Status | Error | Description |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key |
| 403 | forbidden | Valid key but no permission |
| 404 | not_found | Resource (e.g., view ID) not found |
| 429 | rate_limit_exceeded | Too many requests |
| 400 | invalid_request | Malformed request body |
| 500 | internal_error | Server error, retry later |
When a user asks to query Octolens data:
User: "Show me positive mentions from Twitter in the last 7 days"
Action (using bundled script):
node scripts/query-mentions.js YOUR_API_KEY '{"source": ["twitter"], "sentiment": ["positive"], "startDate": "2024-01-20T00:00:00Z"}'
Alternative (using fetch API directly):
const response = await fetch('https://app.octolens.com/api/v1/mentions', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
limit: 20,
filters: {
source: ['twitter'],
sentiment: ['positive'],
startDate: '2024-01-20T00:00:00Z',
},
}),
});
const data = await response.json();
User: "Find mentions from Reddit or GitHub, exclude spam tag, with positive or neutral sentiment"
Action (using bundled script):
node scripts/query-mentions.js YOUR_API_KEY '{"operator": "AND", "groups": [{"operator": "OR", "conditions": [{"source": ["reddit"]}, {"source": ["github"]}]}, {"operator": "OR", "conditions": [{"sentiment": ["positive"]}, {"sentiment": ["neutral"]}]}, {"operator": "AND", "conditions": [{"!tag": ["spam"]}]}]}'
Alternative (using fetch API directly):
const response = await fetch('https://app.octolens.com/api/v1/mentions', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
limit: 30,
filters: {
operator: 'AND',
groups: [
{
operator: 'OR',
conditions: [
{ source: ['reddit'] },
{ source: ['github'] },
],
},
{
operator: 'OR',
conditions: [
{ sentiment: ['positive'] },
{ sentiment: ['neutral'] },
],
},
{
operator: 'AND',
conditions: [
{ '!tag': ['spam'] },
],
},
],
},
}),
});
const data = await response.json();
User: "Show mentions for our main product keyword"
Actions:
node scripts/list-keywords.js YOUR_API_KEY
node scripts/query-mentions.js YOUR_API_KEY '{"keyword": [1]}'
references/EXAMPLES.md (opens in a new tab)references/FILTERS.md (opens in a new tab)scripts/README.md (opens in a new tab)scripts/advanced-query.js (opens in a new tab)scripts/fetch-mentions.js (opens in a new tab)scripts/list-keywords.js (opens in a new tab)scripts/list-views.js (opens in a new tab)scripts/query-mentions.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/sundial-org-awesome-openclaw-skills-4:octolensfrom sundial-org-awesome-openclaw-skills-4
sundial-org-awesome-openclaw-skills-4@cascade-ai-ml-agents-misc-2 is listed by joshuarweaver/cascade-ai-ml-agents-misc-2 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin sundial-org-awesome-openclaw-skills-4908 skills in this plugin
/1passwordSet up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op./a11y-checkerScan HTML and JSX for accessibility issues with AI-powered fix suggestions/abm-outboundMulti-channel ABM automation that turns LinkedIn URLs into coordinated outbound campaigns. Scrapes profiles, enriches with Apollo (email + phone), gets mailing addresses via Skip Trace, then orchestrates email sequences, LinkedIn touches, and handwritten letters via Scribeless. The secret weapon for standing out in crowded inboxes.Other plugins' skills for the same job