# API Integration

> Connect to REST APIs, handle authentication, and process JSON responses

- Skill: `majiayu000/api-integration` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/api-integration`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/api-integration/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/api-integration

---


# API Integration

Connect to external REST APIs and process responses.

## Capabilities

- Make HTTP requests (GET, POST, PUT, DELETE)
- Handle authentication (API keys, OAuth, Bearer tokens)
- Parse and transform JSON responses
- Handle pagination and rate limiting

## Authentication Methods

| Method | Header Format |
|--------|---------------|
| API Key | `X-API-Key: <key>` |
| Bearer | `Authorization: Bearer <token>` |
| Basic | `Authorization: Basic <base64>` |

## Request Template

```python
import requests

response = requests.get(
    "https://api.example.com/v1/resource",
    headers={"Authorization": "Bearer TOKEN"},
    params={"limit": 100}
)
data = response.json()
```

## Error Handling

- 4xx: Client errors - check request parameters
- 5xx: Server errors - implement retry with backoff
- Timeout: Set reasonable timeouts (30s default)

