← 返回
开发者工具 Key 中文

rapidapi

Template-driven RapidAPI client with auto-registered actions and a universal call entrypoint
模板驱动的 RapidAPI 客户端,支持动作自动注册和统一调用入口
web3aivc
开发者工具 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 697
下载
💾 7
安装
1
版本
#latest

概述

Use {baseDir}/index.js to call RapidAPI with templates from {baseDir}/templates.

Prefer this skill when the task involves RapidAPI endpoints or template-defined actions.

What This Skill Actually Does

This skill is a minimal RapidAPI client that turns RapidAPI endpoint definitions into callable actions.

It is meant for:

  • converting a RapidAPI endpoint into a stable action name
  • standardizing inputs into query/body/header/path params
  • returning a consistent ok/status/data/error/meta shape

It is not a server. It is a small local client you can call from scripts or other skills.

Key Capabilities

  • Auto-registers templates from {baseDir}/templates/*.json
  • listActions() enumerates all registered actions with schemas
  • callAction(name, params) calls a template-defined endpoint
  • callRapidApi(payload) allows direct RapidAPI calls without a template
  • scripts/import-endpoint.js converts a RapidAPI endpoint JSON payload into a template file

Basic Usage

Use config-driven init (recommended):

import { createRapidApiSkill } from "{baseDir}/index.js";
import config from "{baseDir}/config.json" assert { type: "json" };

const skill = await createRapidApiSkill({ config });
const res = await skill.callAction("get_user_tweets", {
  user: "2455740283",
  count: 20
});

Or direct call (no template):

const skill = await createRapidApiSkill({ config });
const res = await skill.callRapidApi({
  host: "twitter241.p.rapidapi.com",
  path: "/user-tweets",
  method: "GET",
  query: { user: "2455740283", count: 20 }
});

Template Design Notes

Templates are plain JSON. They should contain:

  • name, host, path, method
  • querySchema (and optionally bodySchema, headerSchema, pathParams)

Example snippet:

{
  "name": "get_user_tweets",
  "host": "twitter241.p.rapidapi.com",
  "path": "/user-tweets",
  "method": "GET",
  "querySchema": {
    "user": {"type": "string", "required": true},
    "count": {"type": "number", "required": true},
    "cursor": {"type": "string"}
  }
}

Where It Fits

Use this skill when you need a consistent, reusable RapidAPI interface without building a backend.

It is especially useful for:

  • social data APIs (X/Twitter, TikTok, LinkedIn)
  • search/aggregation APIs
  • repeated RapidAPI calls across multiple tasks or workflows

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 14:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

wechat-style-publisher

web3aivc
支持多账号微信公众号发布,提供自定义文章主题、文章开头/结尾模板。当用户需要将带样式的文章发布到一个或多个微信公众号时使用此工具。
★ 1 📥 741
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,812
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,288