Command Palette

Search for a command to run...

Назад к скиллам
скилл № 35394

社媒数据接口接入 okdata

Connect okdata to this agent and check it works. okdata is a pay-per-call API for public data from Douyin, Xiaohongshu (RedNote), WeChat, Kuaishou, Bilibili…

БесплатноБез исполняемых скриптов
conn-hoот conn-ho295 установок в других каталогах

Установить 社媒数据接口接入 okdata в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Set up okdata

okdata reads public posts, accounts, comments, hot lists, transcripts, creators and ads from 17 platforms (200+
endpoints) through one key. Each call is paid (from $0.0001), and nothing needs a platform login. A call that
reaches the data source is charged even when it comes back empty, not found or failed; calls stopped before that
(bad parameters, low balance, rate limits) are free.

1. The key

  • Keys start with okd_. The person gets one at https://okdata.online/signup/?src=skill-okdata-setup.
  • Keep it in the environment variable OKDATA_API_KEY, or in the MCP client's own config in the home folder.
    Never write it into project files or commits, never echo or log it, never put it in a URL, and do not repeat it
    back in the chat. If the person pastes a key into the chat, store it and tell them where it went.
  • Without a key you can still look around: the MCP tools find and describe, account for service status, and
    GET /v1/catalog/status.

2. Connect over MCP (preferred)

Server: https://api.okdata.online/mcp, Streamable HTTP, header Authorization: Bearer <key>.

Quickest, if Node is installed: npx okdata setup --client claude-code (or cursor, codex, or several:
--client claude-code,cursor) writes the entry below into the client's config and keeps a backup of the file.

Claude Code by hand (user scope, so nothing lands in a repository; the single quotes keep the variable's name, not
the key, in the config, so OKDATA_API_KEY must be set where Claude Code starts):

claude mcp add --transport http --scope user okdata https://api.okdata.online/mcp \
  --header 'Authorization: Bearer ${OKDATA_API_KEY}'

Cursor, ~/.cursor/mcp.json:

{ "mcpServers": { "okdata": { "url": "https://api.okdata.online/mcp", "headers": { "Authorization": "Bearer ${env:OKDATA_API_KEY}" } } } }

Codex, ~/.codex/config.toml:

[mcp_servers.okdata]
url = "https://api.okdata.online/mcp"
bearer_token_env_var = "OKDATA_API_KEY"

A client that only starts local (stdio) servers can bridge with npx -y mcp-remote https://api.okdata.online/mcp --header "Authorization:${AUTH_HEADER}" and AUTH_HEADER="Bearer okd_..." in that server's env. Other
clients: https://okdata.online/agents.md.

The server has five tools: find (the endpoint for a need, in words; free), describe (parameters, fields,
price; free), call (runs an endpoint at its price), read_more (the rest of an answer cut at about 20 KB; free)
and account (balance, receipts, usage; service status without a key; free). Most clients need a restart or a new
session before new tools show up.

3. Or call it over HTTP

Over MCP (preferred when the okdata MCP server is connected): describe an endpoint id to see its
parameters, fields and price (free), then call it with the id as capability and its parameters alongside, e.g.
{"capability": "<id>", "query": "...", "max_price": "0.05", "idempotency_key": "<uuid>"}. find searches
endpoints by plain words in English or Chinese and read_more returns the rest of a long answer; both are free.
Not connected? See the okdata-setup skill.

Over HTTP (when there is no MCP): the path is the endpoint id with dots as slashes under /v1, parameters
go in the query string, and the key comes from the environment, never from the chat:

curl -sG "https://api.okdata.online/v1/weibo/trends/list" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  --data-urlencode "view=compact"

Every answer has code. "ok" carries data.items (lists, with page.next_cursor) or data.item, plus
meta.billing.amount (what the call cost) and meta.fetched_at. Anything else is an error with charged
(plus amount when it was charged) and retry. not_found, upstream_failed, upstream_busy and timeout
mean the call reached the data source, so it is charged like any call, and trying again is a new paid call: do
not retry an empty answer or not_found, and retry a source failure once at most. invalid_params costs
nothing, so fix the parameter and resend; rate_limited costs nothing either, so wait retry_after_seconds.
Use a new Idempotency-Key for every call, and reuse one only to resend the identical request when its answer
never arrived.

If the person is writing code: the Python SDK is pip install okdata, the TypeScript SDK npm install @okdata/sdk.
In a terminal, the command line needs no install: npx okdata find <words> (free), npx okdata call <id> name=value,
npx okdata login (links the terminal to their account and saves a key without printing it) and npx okdata balance.

4. Check that it works

  1. Free: account over MCP, or curl -s https://api.okdata.online/v1/catalog/status, shows how many endpoints
    are up. With a key, account (or GET /v1/account) also shows the balance.
  2. The smallest paid call is `
Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл 社媒数据接口接入 okdata?

Connect okdata to this agent and check it works. okdata is a pay-per-call API for public data from Douyin, Xiaohongshu (RedNote), WeChat, Kuaishou, Bilibili, Weibo, Zhihu, TikTok, X (Twitter), YouTube, Instagram, Reddit and more, served as a remote MCP server, plain HTTP, SDKs and a command line. Use when the user wants to set up okdata, add its MCP server, store an okdata API key, see the price list, check the balance, or fix an okdata error such as unauthorized or insufficient_balance. 配置 okdata:接入 MCP、保存 key、查价格和余额、排查报错。

Как установить скилл 社媒数据接口接入 okdata?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл 社媒数据接口接入 okdata запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить 社媒数据接口接入 okdata с