This skill enables AI agents to interact with new APIs, useful for developers and researchers. It streamlines API integration and enhances functionality in AI applications.
$ npx skills add https://github.com/quantumnous/skills --skill newapiThe newapi skill enables AI agents to interact with new-api, an open-source AI gateway platform. It provides commands to list available models, manage user groups, monitor account balance, and handle API tokens securely. Developers can create tokens, switch token groups, and apply credentials to config files or commands without exposing sensitive keys. The skill streamlines gateway resource management within AI applications by automating token lifecycle operations and configuration management.
Install via the command provided.
Integrating AI with external APIs
Developing chatbot features using APIs
Enhancing data retrieval for AI agents
$ npx skills add https://github.com/quantumnous/skills --skill newapigit clone https://github.com/quantumnous/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as an API integration specialist and help integrate the [API_NAME] API into [COMPANY]'s [INDUSTRY] workflow. Provide the exact HTTP requests, authentication steps, and response parsing needed to fetch [DATA] from the API. Include error handling for common issues like rate limits or invalid parameters. Use this API documentation for reference: [API_DOCUMENTATION_LINK].
### API Integration Guide for [COMPANY]
Here’s a step-by-step integration of the **WeatherAPI** into your logistics tracking system to fetch real-time temperature data for delivery routes:
---
#### 1. **Authentication Setup**
- **API Key:** `your_api_key_here` (Replace with your actual key from WeatherAPI’s dashboard).
- **Base URL:** `https://api.weatherapi.com/v1/current.json`
- **Headers:** Add `key: your_api_key_here` to all requests.
#### 2. **Fetching Data for Route Optimization**
**Endpoint:** `/current.json`
**Request:**
```http
GET https://api.weatherapi.com/v1/current.json?key=your_api_key_here&q=New+York&aqi=no
```
**Response Example:**
```json
{
"location": {
"name": "New York",
"region": "New York",
"country": "United States",
"lat": 40.71,
"lon": -74.01
},
"current": {
"temp_c": 12.5,
"condition": {
"text": "Partly cloudy",
"icon": "//cdn.weatherapi.com/weather/64x64/day/116.png"
},
"wind_kph": 15.3,
"humidity": 68
}
}
```
#### 3. **Error Handling**
- **403 Forbidden:** Check if the API key is valid or expired.
- **429 Too Many Requests:** Implement a 1-second delay between calls.
- **404 Not Found:** Verify the location parameter (e.g., `q=San+Francisco`).
---
**Next Steps:**
- Cache responses for 10 minutes to reduce API calls.
- Use the `temp_c` value to adjust delivery routes for extreme weather.
Let me know if you need help parsing this data into your system!Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan