API Connector Pack
★Trustedv1.0.0MIT✔Verified88by AgentNode · published 22 days ago · toolpack
Connect to external REST APIs with authentication and retry logic.
Universal REST API client with OAuth, API key, and bearer token support.
Quick Start
agentnode install api-connector-packUsage
From packagefrom api_connector_pack.tool import run
result = run(
capability="call_api",
params={
"method": "GET",
"url": "https://api.open-meteo.com/v1/forecast",
"query": {
"latitude": 40.7128,
"longitude": -74.0060,
"current_weather": True
},
"timeout": 10
}
)
weather = result["body"]["current_weather"]
print(f"NYC Temperature: {weather['temperature']}°C")
print(f"Wind speed: {weather['windspeed']} km/h")
print(f"Status code: {result['status_code']}")Verification
Package installs and imports correctly. runtime checks passed.
This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.
Last verified 18d ago· Runner v2.0.0
Use this when you need to...
- ›Fetch data from third-party REST APIs with auth headers
- ›Post form submissions to webhook endpoints
- ›Poll paginated API endpoints and collect all results
- ›Chain multiple API calls with data dependencies
- ›Retry flaky external service requests with backoff
README
API Connector Pack
Connect to external REST APIs with built-in authentication, retry logic, and response parsing. Supports GET, POST, PUT, PATCH, DELETE with headers, query params, and JSON bodies.
Quick Start
agentnode install api-connector-pack
from api_connector_pack.tool import run
result = run(
capability="call_api",
params={"method": "GET", "url": "https://api.github.com/zen"}
)
print(result["body"])
Usage
GET with query parameters
result = run(
capability="call_api",
params={
"method": "GET",
"url": "https://api.open-meteo.com/v1/forecast",
"query": {"latitude": 51.5074, "longitude": -0.1278, "current_weather": True}
}
)
print(result["body"]["current_weather"]["temperature"])
POST with authentication
result = run(
capability="call_api",
params={
"method": "POST",
"url": "https://api.example.com/v1/records",
"headers": {"Authorization": "Bearer sk-live-abc123"},
"body": {"name": "New Record", "status": "active"},
"retries": 2
}
)
Paginated collection
result = run(
capability="call_api",
params={
"method": "GET",
"url": "https://api.example.com/v1/items",
"query": {"page": 1, "per_page": 100},
"paginate": True,
"max_pages": 5
}
)
print(f"Collected {len(result['body'])} items across {result['pages_fetched']} pages")
API Reference
| Capability | Description |
|---|---|
call_api | Make an HTTP request to any REST endpoint |
Parameters: method, url (required), headers, query, body, timeout, retries, backoff_factor, paginate, max_pages.
Returns: status_code, headers, body, elapsed_ms, attempts, pages_fetched.
Requirements
No API keys required by this pack. Authentication for target APIs should be passed via headers.
License
MIT
Version History
Capabilities
Permissions
This package declares the following access levels. Review before installing.
agentnode install api-connector-packFiles (3)
License
MITStats
Compatibility
Frameworks
Runtime
pythonPython Version
>=3.10Trust & Security
Publisher
AgentNode
@agentnode