smithery.ai

http-client

Make HTTP requests to external APIs. Supports GET, POST, PUT, DELETE with JSON and form data. Use for fetching data, calling APIs, and webhooks.

First seen Apr 20, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,836 B
  • docs SUMMARY.md 163 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

HTTP Client

Make HTTP requests to external APIs and services.

Quick Start

GET Request

node /path/to/skills/http-client/scripts/request.js GET https://api.example.com/data

POST with JSON

node /path/to/skills/http-client/scripts/request.js POST https://api.example.com/users '{"name":"John"}'

With Headers

node /path/to/skills/http-client/scripts/request.js GET https://api.example.com/data --header "Authorization: Bearer token123"

Scripts

request.js

General-purpose HTTP request script.

Usage:

node request.js <METHOD> <URL> [BODY] [OPTIONS]

Options:

  • --header "Key: Value" - Add custom header (can be used multiple times)
  • --output <file> - Save response to file
  • --timeout <ms> - Request timeout (default: 30000)

fetch-json.js

Simplified script for JSON APIs.

Usage:

node fetch-json.js <URL> [--post '{"data":"value"}']

Examples

Fetch JSON Data

node request.js GET https://jsonplaceholder.typicode.com/posts/1

Post Form Data

node request.js POST https://httpbin.org/post '{"key":"value"}' --header "Content-Type: application/json"

Download File

node request.js GET https://example.com/file.pdf --output downloaded.pdf

Response Format

The script outputs JSON with:

{
  "status": 200,
  "headers": { "content-type": "application/json" },
  "body": { "response": "data" }
}

Error Handling

  • Network errors return exit code 1 with error message
  • HTTP errors (4xx, 5xx) return the response with status code
  • Timeout errors after 30 seconds (configurable)