# APIHub

Marketplace of pay-per-call APIs for AI agents. Top up once with USDC credits, then call any listed API — gasless, walletless, metered per request. Includes onboarded providers and hundreds of x402-n…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add apihub/marketplace

# Browse available tools
npx -y @smithery/cli@latest tool list apihub/marketplace

# Get full schema for a tool
npx -y @smithery/cli@latest tool get apihub/marketplace apihub_search

# Call a tool
npx -y @smithery/cli@latest tool call apihub/marketplace apihub_search '{}'
```

## Direct MCP Connection

Endpoint: `https://marketplace--apihub.run.tools`

**Required config:**
- `apiKey` (header) — Your APIHub API key, starts with ahk_. Get one free at https://apihub.io

## Tools (8)

- `apihub_search` — Search for APIs and content gateways by capability, category, or price range. Returns matching services with endpoints/…
- `apihub_list_services` — List all available API services on the marketplace with their endpoints and pricing.
- `apihub_get_service` — Get full details for a specific API service including all endpoints, schemas, and pricing.
- `apihub_call` — Make a paid API call through the APIHub proxy. Requires sufficient wallet balance. Cost is automatically debited.
- `apihub_search_external` — Search external x402-protected APIs (not operated by APIHub, but callable via credits). Returns listings with endpoint …
- `apihub_call_external` — Call an external x402-protected URL (any provider in the marketplace or any x402 API). APIHub pays the provider on your…
- `apihub_read_content` — Read web content through a paid content gateway. Returns clean, structured text extracted from the URL. Use this for co…
- `apihub_balance` — Check your credit balance, spending history, and total requests. Purchase credits via POST /v1/credits/purchase.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get apihub/marketplace <tool-name>
```
