API Connector Pack

Trustedv1.0.0MITVerified88

by 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.

langchaincrewaigeneric

Quick Start

bash
agentnode install api-connector-pack

Usage

From package
python
from 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

high confidence88/100✔ Verified
smokeReturned valid result
+25/25
testsAuto-generated tests only
+8/15
importAll tools imported successfully
+15/15
installInstalled in 1.9s
+15/15
contractAll contract checks passed
+10/10
warningsNo warnings
0/0
determinismOutput consistency check
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed.

install1.9s
import256ms
smoke4.2s
tests1.8s

This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.

Python 3.12.3ffmpegpopplertesseractuv

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

CapabilityDescription
call_apiMake 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

api_integrationcall_apitool

Permissions

This package declares the following access levels. Review before installing.

Networkunrestricted
Filesystemnone
Code Executionnone
Data Accessinput_only
User Approvalonce
bash
agentnode install api-connector-pack

Files (3)

License

MIT

Stats

Downloads0
Installs0
Versionv1.0.0
Published3/16/2026
Channelstable
Typetoolpack
Entrypointapi_connector_pack.tool

Compatibility

Frameworks

langchaincrewaigeneric

Runtime

python

Python Version

>=3.10

Trust & Security

PublisherTrusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode