Install
openclaw skills install rapidapiClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Template-driven RapidAPI client with auto-registered actions and a universal call entrypoint
openclaw skills install rapidapiUse {baseDir}/index.js to call RapidAPI with templates from {baseDir}/templates.
Prefer this skill when the task involves RapidAPI endpoints or template-defined actions.
This skill is a minimal RapidAPI client that turns RapidAPI endpoint definitions into callable actions. It is meant for:
ok/status/data/error/meta shapeIt is not a server. It is a small local client you can call from scripts or other skills.
{baseDir}/templates/*.jsonlistActions() enumerates all registered actions with schemascallAction(name, params) calls a template-defined endpointcallRapidApi(payload) allows direct RapidAPI calls without a templatescripts/import-endpoint.js converts a RapidAPI endpoint JSON payload into a template fileUse 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 }
});
Templates are plain JSON. They should contain:
name, host, path, methodquerySchema (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"}
}
}
Use this skill when you need a consistent, reusable RapidAPI interface without building a backend. It is especially useful for: