Query and analyze brand mentions from Octolens API. An agent skill from sundial-org/awesome-openclaw-skills.

MITAuto-check passedSales & Support

Install Octolens

skills CLI
$ npx skills add sundial-org/awesome-openclaw-skills --skill octolens -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sundial-org/awesome-openclaw-skills octolens --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sundial-org/awesome-openclaw-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/octolens .claude/skills/octolens && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
octolens
GitHub stars
663
Token cost
~2.9k tokens
SKILL.md length
843 words
Files
9 (incl. scripts, references)
Skills in repo
383
Repo updated
First seen
Licence
MIT

At a glance

Query and analyze brand mentions from Octolens API. An agent skill from sundial-org/awesome-openclaw-skills.

  • Works in 3 steps: POST /mentions → GET /keywords → GET /views
  • The user wants to fetch mentions
  • SKILL.md covers When to use this skill, API Authentication, Base URL and Rate Limits, plus 8 more sections
  • Runs JavaScript scripts from its folder; calls node; reaches twitter.com; needs API_KEY

What it does

Octolens is an agent skill from sundial-org/awesome-openclaw-skills. Query and analyze brand mentions from Octolens API. Use when the user wants to fetch mentions, track keywords, filter by source platforms (Twitter, Reddit, GitHub, LinkedIn, etc.), sentiment analysis, or analyze social media engagement. Supports complex filtering with AND/OR logic, date ranges, follower counts, and bookmarks.

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts and reference files (for example `references/EXAMPLES.md`, `references/FILTERS.md` and `scripts/README.md`). Compatibility notes: Requires Node.js 18+ (for fetch API) and access to the internet

It sits in Sales & Support, covering Customer feedback analysis. It works with X (Twitter), LinkedIn, GitHub and Reddit. The repository describes itself as: Top OpenClaw skills, with the most popular and useful ones. The licence is MIT.

When your agent uses it

  • The user wants to fetch mentions
  • Filter by source platforms (Twitter
  • Sentiment analysis
  • Analyze social media engagement

Example prompts

  • “/octolens”

Requirements

  • Node.js
  • A credential in YOUR_API_KEY
  • A credential in API_KEY
  • Compatibility (from SKILL.md): Requires Node.js 18+ (for fetch API) and access to the internet
  • Pre-approved tools (allowed-tools): Node, Read

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. POST /mentions
  2. GET /keywords
  3. GET /views

What it can do on your machine

Read from SKILL.md and the folder at commit b80cde2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Node
    • Read

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 6 files in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • twitter.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Node.js 18+ (for fetch API) and access to the internet

    From compatibility in the SKILL.md frontmatter.

Context cost

Octolens loads about 2.9k tokens when it runs, and up to ~9.5k if it reads all its reference files. Until then it costs about 84 tokens; SKILL.md has 843 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~84
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from sundial-org/awesome-openclaw-skills at commit b80cde2, republished under its MIT licence (© sundial-org). 843 words, ~2,904 tokens.

Download SKILL.mdSave it as .claude/skills/octolens/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
octolens
description
Query and analyze brand mentions from Octolens API. Use when the user wants to fetch mentions, track keywords, filter by source platforms (Twitter, Reddit, GitHub, LinkedIn, etc.), sentiment analysis, or analyze social media engagement. Supports complex filtering with AND/OR logic, date ranges, follower counts, and bookmarks.
allowed-tools
Node, Read
compatibility
Requires Node.js 18+ (for fetch API) and access to the internet
license
MIT
metadata.author
octolens
metadata.version
1.0

Octolens API Skill

When to use this skill

Use this skill when the user needs to:

  • Fetch brand mentions from social media and other platforms
  • Filter mentions by source (Twitter, Reddit, GitHub, LinkedIn, YouTube, HackerNews, DevTO, StackOverflow, Bluesky, newsletters, podcasts)
  • Analyze sentiment (positive, neutral, negative)
  • Filter by author follower count or engagement
  • Search for specific keywords or tags
  • Query mentions by date range
  • List available keywords or saved views
  • Apply complex filtering logic with AND/OR conditions

API Authentication

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.

Base URL

All API endpoints use the base URL: https://app.octolens.com/api/v1

Rate Limits

  • Limit: 500 requests per hour
  • Check headers: X-RateLimit-* headers indicate current usage

Available Endpoints

1. POST /mentions

Fetch 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 response
  • includeAll (boolean): Include low-relevance posts (default: false)
  • view (number): View ID to use for filtering
  • filters (object): Filter criteria (see filtering section)

Example Response:

json
{
  "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="
}
2. GET /keywords

List all keywords configured for the organization.

Example Response:

json
{
  "data": [
    {
      "id": 1,
      "keyword": "YourProduct",
      "platforms": ["twitter", "reddit", "github"],
      "color": "#6366f1",
      "paused": false,
      "context": "Our main product name"
    }
  ]
}
3. GET /views

List all saved views (pre-configured filters).

Example Response:

json
{
  "data": [
    {
      "id": 1,
      "name": "High Priority",
      "icon": "star",
      "filters": {
        "sentiment": ["positive", "negative"],
        "source": ["twitter"]
      },
      "createdAt": "2024-01-01T00:00:00Z"
    }
  ]
}

Filtering Mentions

The /mentions endpoint supports powerful filtering with two modes:

Simple Mode (Implicit AND)

Put fields directly in filters. All conditions are ANDed together.

json
{
  "filters": {
    "source": ["twitter", "linkedin"],
    "sentiment": ["positive"],
    "minXFollowers": 1000
  }
}

→ source IN (twitter, linkedin) AND sentiment = positive AND followers ≥ 1000

Exclusions

Prefix any array field with ! to exclude values:

json
{
  "filters": {
    "source": ["twitter"],
    "!keyword": [5, 6]
  }
}

→ source = twitter AND keyword NOT IN (5, 6)

Advanced Mode (AND/OR Groups)

Use operator and groups for complex logic:

json
{
  "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)

Available Filter Fields
FieldTypeDescription
sourcestring[]Platforms: twitter, reddit, github, linkedin, youtube, hackernews, devto, stackoverflow, bluesky, newsletter, podcast
sentimentstring[]Values: positive, neutral, negative
keywordstring[]Keyword IDs (get from /keywords endpoint)
languagestring[]ISO 639-1 codes: en, es, fr, de, pt, it, nl, ja, ko, zh
tagstring[]Tag names
bookmarkedbooleanFilter bookmarked (true) or non-bookmarked (false) posts
engagedbooleanFilter engaged (true) or non-engaged (false) posts
minXFollowersnumberMinimum Twitter follower count
maxXFollowersnumberMaximum Twitter follower count
startDatestringISO 8601 format (e.g., "2024-01-15T00:00:00Z")
endDatestringISO 8601 format

Using the Bundled Scripts

This skill includes helper scripts for common operations. Use them to quickly interact with the API:

Fetch Mentions
bash
node scripts/fetch-mentions.js YOUR_API_KEY [limit] [includeAll]
List Keywords
bash
node scripts/list-keywords.js YOUR_API_KEY
List Views
bash
node scripts/list-views.js YOUR_API_KEY
Custom Filter Query
bash
node scripts/query-mentions.js YOUR_API_KEY '{"source": ["twitter"], "sentiment": ["positive"]}' [limit]
Advanced Query
bash
node scripts/advanced-query.js YOUR_API_KEY [limit]

Best Practices

  1. Always ask for the API key before making requests
  2. Use views when possible to leverage pre-configured filters
  3. Start with simple filters and add complexity as needed
  4. Check rate limits in response headers (X-RateLimit-*)
  5. Use pagination with cursor for large result sets
  6. Dates must be ISO 8601 format (e.g., "2024-01-15T00:00:00Z")
  7. Get keyword IDs from /keywords endpoint before filtering by keyword
  8. Use exclusions (!) to filter out unwanted content
  9. Combine includeAll=false with relevance filtering for quality results
Show full SKILL.md (327 more words)Show less

Common Use Cases

Find positive Twitter mentions with high followers
json
{
  "limit": 20,
  "filters": {
    "source": ["twitter"],
    "sentiment": ["positive"],
    "minXFollowers": 1000
  }
}
Exclude spam and get Reddit + GitHub mentions
json
{
  "limit": 50,
  "filters": {
    "source": ["reddit", "github"],
    "!tag": ["spam", "irrelevant"]
  }
}
Complex query: (Twitter OR LinkedIn) AND positive sentiment, last 7 days
json
{
  "limit": 30,
  "filters": {
    "operator": "AND",
    "groups": [
      {
        "operator": "OR",
        "conditions": [
          { "source": ["twitter"] },
          { "source": ["linkedin"] }
        ]
      },
      {
        "operator": "AND",
        "conditions": [
          { "sentiment": ["positive"] },
          { "startDate": "2024-01-20T00:00:00Z" }
        ]
      }
    ]
  }
}

Error Handling

StatusErrorDescription
401unauthorizedMissing or invalid API key
403forbiddenValid key but no permission
404not_foundResource (e.g., view ID) not found
429rate_limit_exceededToo many requests
400invalid_requestMalformed request body
500internal_errorServer error, retry later

Step-by-Step Workflow

When a user asks to query Octolens data:

  1. Ask for API key if not already provided
  2. Understand the request: What are they looking for?
  3. Determine filters needed: Source, sentiment, date range, etc.
  4. Check if a view applies: List views first if user mentions saved filters
  5. Build the query: Use simple mode first, advanced mode for complex logic
  6. Execute the request: Use bundled Node.js scripts or fetch API directly
  7. Parse results: Extract key information (author, body, sentiment, source)
  8. Handle pagination: If more results needed, use cursor from response
  9. Present findings: Summarize insights, highlight patterns

Examples

Example 1: Simple Query

User: "Show me positive mentions from Twitter in the last 7 days"

Action (using bundled script):

bash
node scripts/query-mentions.js YOUR_API_KEY '{"source": ["twitter"], "sentiment": ["positive"], "startDate": "2024-01-20T00:00:00Z"}'

Alternative (using fetch API directly):

javascript
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();
Example 2: Advanced Query

User: "Find mentions from Reddit or GitHub, exclude spam tag, with positive or neutral sentiment"

Action (using bundled script):

bash
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):

javascript
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();
Example 3: Get Keywords First

User: "Show mentions for our main product keyword"

Actions:

  1. First, list keywords:
bash
node scripts/list-keywords.js YOUR_API_KEY
  1. Then query mentions with the keyword ID:
bash
node scripts/query-mentions.js YOUR_API_KEY '{"keyword": [1]}'

Tips for Agents

  • Use bundled scripts: The Node.js scripts handle JSON parsing automatically
  • Cache keywords: After fetching keywords once, remember them for the session
  • Explain filters: When using complex filters, explain the logic to the user
  • Show examples: When users are unsure, show example filter structures
  • Paginate wisely: Ask if user wants more results before fetching next page
  • Summarize insights: Don't just dump data, provide analysis (sentiment trends, top authors, platform distribution)

© sundial-org, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts, references) in skills/octolens of sundial-org/awesome-openclaw-skills.

  • SKILL.md
  • references/EXAMPLES.md
  • references/FILTERS.md
  • scripts/README.md
  • scripts/advanced-query.js
  • scripts/fetch-mentions.js
  • scripts/list-keywords.js
  • scripts/list-views.js
  • scripts/query-mentions.js

Open the folder on GitHubat commit b80cde2

Compare with similar skills

Octolens next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Octolens compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Octolens this skillsundial-org/awesome-openclaw-skills663—~2.9kAutomated safety check: PassMIT
Agent ReachOotto-AI/claude-content-skills130—~1.3kAutomated safety check: PassMIT
Glim MCPaeonfun/aeon770—~1.3kAutomated safety check: WarnMIT
Agent ReachEdisonChenAI/agent-reach1151 repos~1.3kAutomated safety check: PassMIT
Auto Promotexiaotonng/pikiloom294—~629Automated safety check: NotesMIT
Media WritershareAI-lab/lab-skills315—~870Automated safety check: PassApache-2.0

Similar skills

  • Agent Reach

    Ootto-AI/claude-content-skills

    MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g.

    130 GitHub stars~1.3k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Glim MCP

    aeonfun/aeon

    Live-data research via the glim.sh MCP - web search, full page extraction, X/Twitter, Reddit, GitHub, Amazon, and YouTube transcripts - synthesized into a cited digest.

    770 GitHub stars~1.3k tokensUpdated yesterday
    Knowledge ManagementAuto-check: warnings
  • Agent Reach

    EdisonChenAI/agent-reach

    Use the internet: search, read, and interact with 13+ platforms including Twitter/X, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu (小红书), Douyin (抖音), WeChat Articles (微信公众号), LinkedIn, Boss直聘…

    115 GitHub starsUsed in 1 repo~1.3k tokens
    Productivity & AutomationAuto-check passed
  • Auto Promote

    xiaotonng/pikiloom

    无人值守推广总入口。按 promo/orchestrate.md 跨所有启用渠道(GitHub / Twitter / Reddit)跑一轮:发现→去重→起草→自我批判→护栏→按 posture 发布→记录→度量。供每日 cron(schedule / loop)调用,也可手动运行。传 "post-approved" 只执行 batch 待发队列。

    294 GitHub stars~629 tokensUpdated 5 days ago
    Productivity & AutomationAuto-check: notes
  • Media Writer

    shareAI-lab/lab-skills

    Create platform-native content that resonates with each community's culture.

    315 GitHub stars~870 tokensUpdated 25 days ago
    Productivity & AutomationAuto-check passed
  • Social Poster

    hanzili/hanzi-browse

    Post content across social platforms from your real signed-in browser.

    177 GitHub stars~1.2k tokensUpdated 5 mo ago
    Productivity & AutomationAuto-check passed

More from sundial-org/awesome-openclaw-skills

All 383 skills in this repo
  • UI UX Pro Max

    sundial-org/awesome-openclaw-skills

    UI/UX design intelligence and implementation guidance for building polished interfaces.

    663 GitHub starsUsed in 2 repos~657 tokens
    Auto-check passed
  • Web Deploy GitHub

    sundial-org/awesome-openclaw-skills

    Create and deploy single-page static websites to GitHub Pages with autonomous workflow.

    663 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Clawd Modifier

    sundial-org/awesome-openclaw-skills

    Modify Clawd, the Claude Code mascot. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~625 tokensUpdated 7 mo ago
    Auto-check passed
  • Figma

    sundial-org/awesome-openclaw-skills

    Professional Figma design analysis and asset export. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~1.7k tokensUpdated 7 mo ago
    Auto-check: notes
  • Habit Flow

    sundial-org/awesome-openclaw-skills

    AI-powered atomic habit tracker with natural language logging, streak tracking, smart reminders, and coaching.

    663 GitHub stars~3.1k tokensUpdated 7 mo ago
    Auto-check passed
  • Edge Tts

    sundial-org/awesome-openclaw-skills

    Text-to-speech conversion using node-edge-tts npm package for generating audio from text.

    663 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed

Questions about Octolens

What does Octolens do?

Query and analyze brand mentions from Octolens API. An agent skill from sundial-org/awesome-openclaw-skills. Octolens is an agent skill from sundial-org/awesome-openclaw-skills. Query and analyze brand mentions from Octolens API.

When should I use Octolens?

Octolens fits situations like: the user wants to fetch mentions; filter by source platforms (Twitter; sentiment analysis; analyze social media engagement.

How do I install Octolens in Claude Code?

Run `npx skills add sundial-org/awesome-openclaw-skills --skill octolens -a claude-code`. Or copy the skill folder (skills/octolens in sundial-org/awesome-openclaw-skills) into .claude/skills/octolens in your project. Claude Code loads it when a task matches its description.

How do I install Octolens in Codex?

Run `npx skills add sundial-org/awesome-openclaw-skills --skill octolens -a codex`. Or copy the skill folder (skills/octolens in sundial-org/awesome-openclaw-skills) into .agents/skills/octolens in your project. Codex loads it when a task matches its description.

Can I use Octolens in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sundial-org/awesome-openclaw-skills --skill octolens -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/octolens, .gemini/skills/octolens, .github/skills/octolens and .opencode/skills/octolens in your project.

What does Octolens need to run?

Going by SKILL.md and its folder, Octolens needs JavaScript for the scripts in its folder, the command-line tools its instructions call (node) and credentials named API_KEY. Our summary lists: Node.js; A credential in YOUR_API_KEY; A credential in API_KEY. Its frontmatter pre-approves these tools: Node, Read. Compatibility (from SKILL.md): Requires Node.js 18+ (for fetch API) and access to the internet.

Does Octolens access the network?

SKILL.md names 1 domain. In commands or code: twitter.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Octolens safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Octolens use?

Octolens is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Octolens use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.6k tokens, read only when the agent opens those files.

What are the alternatives to Octolens?

Skills that share tags, products or a category with Octolens: Agent Reach (Ootto-AI/claude-content-skills, 130 stars), Glim MCP (aeonfun/aeon, 770 stars), Agent Reach (EdisonChenAI/agent-reach, 115 stars) and Auto Promote (xiaotonng/pikiloom, 294 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Octolens?

sundial-org (a GitHub organization) maintains it in sundial-org/awesome-openclaw-skills, which has 663 GitHub stars. The repository holds 383 skills in this directory. The repository was last updated on March 7, 2026.

Source: sundial-org/awesome-openclaw-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.