api-integration

API 集成技能 - 掌握 RESTful API 调用、GraphQL 支持、API 认证管理等核心能力

3,891 stars

Best use case

api-integration is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

API 集成技能 - 掌握 RESTful API 调用、GraphQL 支持、API 认证管理等核心能力

Teams using api-integration should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/api-integration/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/alsoforever/api-integration/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/api-integration/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How api-integration Compares

Feature / Agentapi-integrationStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

API 集成技能 - 掌握 RESTful API 调用、GraphQL 支持、API 认证管理等核心能力

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 🔌 api-integration - API 集成技能

**Slogan:** 连接世界,集成万物

---

## 📋 技能描述

**提供完整的 API 集成能力,从 RESTful 到 GraphQL,**
**帮助 AI Agent 快速接入第三方服务,扩展能力边界。**

---

## 🎯 核心知识

### 1. RESTful API

```
HTTP 方法:
- GET - 获取资源
- POST - 创建资源
- PUT - 更新资源
- DELETE - 删除资源

状态码:
- 200 - 成功
- 201 - 创建成功
- 400 - 请求错误
- 401 - 未授权
- 404 - 资源不存在
- 500 - 服务器错误
```

---

### 2. 认证方式

| 方式 | 说明 | 安全性 |
|------|------|--------|
| **API Key** | 简单密钥 | 中 |
| **OAuth2** | 授权框架 | 高 |
| **JWT** | Token 认证 | 高 |
| **Basic Auth** | 基础认证 | 低 |

---

### 3. GraphQL

```
特点:
- 按需查询
- 强类型
- 单一端点
- 实时订阅
```

---

## 🛠️ 应用能力

### 能力 1:RESTful 调用

```python
import requests

def call_api(endpoint, method='GET', data=None, headers=None):
    response = requests.request(
        method=method,
        url=endpoint,
        json=data,
        headers=headers
    )
    response.raise_for_status()
    return response.json()
```

### 能力 2:认证管理

```python
# OAuth2 认证
def get_oauth_token(client_id, client_secret):
    response = requests.post(
        'https://api.example.com/oauth/token',
        data={
            'grant_type': 'client_credentials',
            'client_id': client_id,
            'client_secret': client_secret
        }
    )
    return response.json()['access_token']
```

### 能力 3:错误处理

```python
def safe_api_call(endpoint):
    try:
        return call_api(endpoint)
    except requests.exceptions.HTTPError as e:
        if e.response.status_code == 404:
            return {'error': 'Resource not found'}
        elif e.response.status_code == 401:
            return {'error': 'Unauthorized'}
        else:
            return {'error': str(e)}
```

---

## 💚 滚滚的话

**好的 API 集成,**
**稳定、安全、高效。**

**滚滚陪你一起,**
**连接更多服务!** 🔌💚

---

**创建人:** 滚滚 & 地球人  
**创建时间:** 2026-03-15  
**状态:** ✅ 学习完成

Related Skills

amap-integration

3891
from openclaw/skills

Map and location services for search, routing, and visualization. Provides geocoding, POI search, route planning, and heatmap generation capabilities.

Craft.do Integration Skill

3891
from openclaw/skills

Complete REST API integration for Craft.do - the beautiful note-taking and document app.

Jira & Confluence Integration Skill

3891
from openclaw/skills

## Purpose

upi-payment-integration

3891
from openclaw/skills

Design and implement robust UPI payment integrations (collect, intent, QR, and autopay mandates) with production-grade webhook handling, idempotency, reconciliation, and RBI-aligned authentication/compliance guardrails. Use when building or debugging UPI payment flows, payment status issues, recurring mandates, settlement mismatches, or gateway timeout edge cases.

pydantic-ai-model-integration

3891
from openclaw/skills

Configure LLM providers, use fallback models, handle streaming, and manage model settings in PydanticAI. Use when selecting models, implementing resilience, or optimizing API calls.

stripe-integration-expert

3891
from openclaw/skills

Stripe Integration Expert

multi-omics-integration-strategist

3891
from openclaw/skills

Design multi-omics integration strategies for transcriptomics, proteomics, and metabolomics data analysis

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation

find-skills

3891
from openclaw/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

General Utilities

tavily-search

3891
from openclaw/skills

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.

Data & Research

baidu-search

3891
from openclaw/skills

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.

Data & Research