santiment-api
БесплатноЗапускает вложенные скриптыНе проверенQuery the Santiment GraphQL API for on-chain, financial, social, and development crypto metrics across 2,000+ assets
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Santiment GraphQL API
Query the Santiment API — a GraphQL platform providing 750+ metrics for 2,000+ crypto assets across 12 blockchains. Fetch on-chain, financial, social, and development data for the cryptocurrency market.
Endpoint and Authentication
- GraphQL endpoint:
https://api.santiment.net/graphql - Interactive explorer:
https://api.santiment.net/graphiql
Every request requires an API key in the Authorization header (Authorization: Apikey <KEY>). The user must provide their own key — never hardcode or assume one. If $SANTIMENT_API_KEY is set in the environment, use it directly. Otherwise, ask the user for their key (free tier available at https://app.santiment.net/account#api-keys).
All requests are HTTP POST with Content-Type: application/json. Use GraphQL variables to separate the query template from runtime values — this avoids quote-escaping errors. In curl, use a heredoc with a quoted delimiter (<< 'QUERY') so the shell doesn't interpret $variable as environment variables.
curl -s -X POST https://api.santiment.net/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Apikey $SANTIMENT_API_KEY" \
-d @- << 'QUERY'
{
"query": "query($metric: String!, $slug: String, $from: DateTime!, $to: DateTime!, $interval: interval) { getMetric(metric: $metric) { timeseriesData(slug: $slug, from: $from, to: $to, interval: $interval) { datetime value } } }",
"variables": {
"metric": "price_usd",
"slug": "bitcoin",
"from": "utc_now-7d",
"to": "utc_now",
"interval": "1d"
}
}
QUERY
Variable Types
Use these GraphQL types in query(...) variable declarations:
| Parameter | Type |
|---|---|
metric |
String! |
slug |
String |
selector |
MetricTargetSelectorInputObject |
from / to |
DateTime! |
interval |
interval |
aggregation |
Aggregation |
transform |
TimeseriesMetricTransformInputObject |
Core Query: getMetric
Nearly all data flows through getMetric. Pass a metric name string and then select one sub-field that determines the shape of the response data.
Sub-fields
Choose exactly one sub-field per getMetric call:
| Sub-field | Returns | When to use |
|---|---|---|
timeseriesData |
[{datetime, value}] |
Default choice — returns a time series with explicit field selection. Use for charting, trend analysis, or any case where individual data points matter. |
timeseriesDataJson |
Pre-formatted JSON string | Quick dump without specifying return fields. Useful for rapid prototyping but less control over output shape. |
timeseriesDataPerSlugJson |
JSON object keyed by slug | Fetch the same metric for multiple assets in a single API call. Pass selector: { slugs: ["bitcoin", "ethereum"] }. This counts as one API call, making it much more efficient than separate queries per asset. |
aggregatedTimeseriesData |
Single numeric value | Need one summary number (average, sum, last value) over a time range. Lowest complexity, most quota-friendly. |
histogramData |
Array of bucketed ranges | Distribution data — e.g., how much ETH was bought at each price range. Less commonly needed. |
metadata |
Metric metadata object | Discover available slugs, aggregations, selectors, intervals, and data type for a metric. Call this before querying an unfamiliar metric. |
availableSince |
ISO 8601 date string | Check how far back data exists for a given metric and slug. Prevents wasted calls on empty time ranges. A return value of 1970-01-01T00:00:00Z means the metric has never been computed for this slug. |
lastDatetimeComputedAt |
ISO 8601 timestamp | Check data freshness — when the metric was last computed for a slug. |
Parameters
These parameters are passed to the sub-field, not to getMetric itself:
| Parameter | Type | Description | Example |
|---|---|---|---|
slug |
String | Asset identifier. Use for single-asset queries. | "bitcoin", "ethereum" |
selector |
Object | Advanced selection. Use instead of slug when you need multi-asset queries, or filtering by owner, label, holdersCount, or source. |
{ slug: "bitcoin", source: "cryptocompare" } |
from |
String | Start of time range. Accepts ISO 8601 timestamps or relative expressions. | "2024-01-01T00:00:00Z", "utc_now-30d" |
to |
String | End of time range. Same format as from. |
"utc_now" |
interval |
String | Time granularity between data points. | "5m", "1h", "1d", "7d" |
aggregation |
Enum | Override the default aggregation method. Options: AVG, SUM, LAST, FIRST, MEDIAN, MAX, MIN, ANY. |
AVG |
transform |
Object | Post-processing transform applied to the result. | See Transforms section. |
Important: slug and selector are mutually exclusive. Use slug for simple single-asset queries. Use selector when querying multiple slugs at once ({ slugs: [...] }) or when a metric requires additional
Установить santiment-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл santiment-api?
Query the Santiment GraphQL API for on-chain, financial, social, and development crypto metrics across 2,000+ assets
Как установить скилл santiment-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл santiment-api запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic