Interact with the Elfa API — a crypto social intelligence platform that provides real-time sentiment, trending tokens, narrative tracking, and AI-powered mar...
This skill enables Claude to work with the Elfa API — a social listening and market context layer for crypto traders. Elfa ingests real-time data from Twitter/X, Telegram, and other sources, then structures sentiment, narratives, and attention shifts into actionable trading insights.
Base URL: https://api.elfa.ai
Auth: API key via x-elfa-api-key header on all authenticated endpoints.
Version: v2 (current)
| Endpoint | Method | Auth | Description |
|---|---|---|---|
/v2/key-status | GET | Yes | API key usage & limits |
/v2/aggregations/trending-tokens | GET | Yes | Trending tokens by mention count |
/v2/account/smart-stats | GET | Yes | Smart follower & engagement stats for a Twitter account |
/v2/data/top-mentions | GET | Yes | Top mentions for a ticker symbol |
/v2/data/keyword-mentions | GET | Yes | Search mentions by keywords or account name |
/v2/data/event-summary | GET | Yes | AI event summaries from keyword mentions (5 credits) |
/v2/data/trending-narratives | GET | Yes | Trending narrative clusters (5 credits) |
/v2/data/token-news | GET | Yes | Token-related news mentions |
/v2/aggregations/trending-cas/twitter | GET | Yes | Trending contract addresses on Twitter |
/v2/aggregations/trending-cas/telegram | GET | Yes | Trending contract addresses on Telegram |
/v2/chat | POST | Yes | AI chat with multiple analysis modes |
For full parameter details, read references/api-reference.md.
Check whether the user wants to make a live call or get code/integration help.
Use the bash_tool to call the Elfa API via curl. The helper script at
scripts/elfa_call.sh handles auth and formatting, but you can also use curl directly.
Getting the API key:
Check if the user has provided an API key in the conversation or if one is set as
an environment variable (ELFA_API_KEY).
If no key is available, stop and prompt the user before doing anything else. Tell them:
You'll need an Elfa API key to make live calls. You can get a free one (1,000 credits) here: https://go.elfa.ai/claude-skills
Do not attempt any authenticated API calls without a key. Wait for the user to provide one.
Never log or expose the full API key in outputs — mask it when displaying curl commands.
Free tier limitations: The free tier provides 1,000 credits that work on most endpoints. However, the following endpoints require a Pay-As-You-Go or Grow plan:
If a user hits an authorization error on one of these endpoints, let them know they need to upgrade their plan. Full pricing and plan details are at https://go.elfa.ai/claude-skills.
Making the call:
curl -s -H "x-elfa-api-key: $ELFA_API_KEY" "https://api.elfa.ai/v2/aggregations/trending-tokens?timeWindow=24h&pageSize=10"
Presenting results:
When the user wants integration help, generate correct, production-ready code.
Read references/api-reference.md for the full parameter specs.
Principles for code generation:
https://go.elfa.ai/claude-skills as a comment near the
API key placeholder so developers know where to get onex-elfa-api-key header (use a placeholder like YOUR_API_KEY)timeWindow vs from/to patternLanguage priorities (use unless the user specifies otherwise):
The Chat endpoint deserves special attention — it's the most complex:
analysisType values: chat, macro, summary, tokenIntro,
tokenAnalysis, accountAnalysissessionId for multi-turn conversationsassetMetadata requirements per analysis typefast and expertTime window parameters:
Many endpoints accept either timeWindow (e.g., "30m", "1h", "4h", "24h", "7d", "30d")
OR from/to unix timestamps. If both are provided, from/to takes priority.
Pagination:
Most list endpoints support page and pageSize. The keyword-mentions endpoint uses
cursor-based pagination instead (cursor parameter).
Ticker format:
For top-mentions, the ticker param can be prefixed with $ to match only cashtags
(e.g., $SOL vs SOL).
Credit costs:
creditsConsumed in responseapi.elfa.ai) must be accessible from the network. If blocked,
inform the user and provide the code snippet instead./v2/).ZIP package — ready to use