Agent skill
api-integration
Connect to REST APIs, handle authentication, and process JSON responses
Install this agent skill to your Project
npx add-skill https://github.com/tatat/agents-playground/tree/main/skills/api-integration
SKILL.md
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
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)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
research-assistant
Conduct research, synthesize information, and create structured summaries
presentation-builder
Structure compelling presentations with clear narratives and visual suggestions
sql-query
Generate and optimize SQL queries for data retrieval and analysis
language-tutor
Teach languages with lessons, practice exercises, and conversation practice
fitness-coach
Create personalized workout plans and provide exercise guidance
travel-planner
Plan trips with itineraries, budgets, and local recommendations
Didn't find tool you were looking for?