🔗 AgentServices — Agent Integration Examples

Ready-to-use prompts and commands for AI agents. Copy, paste, execute.

Quick Start for AI Agents

AgentServices provides 50+ APIs for AI agents. Free endpoints work immediately. Paid endpoints use x402 (USDC micropayments on Base).

x402 USDC Base Mainnet MCP OpenAPI 3.1

1. Free Endpoints — No Payment Needed

Crypto Prices

# Get current price for any crypto curl https://agentservices.to/v1/prices?symbols=BTC,ETH,SOL # Single asset curl https://agentservices.to/v1/price/BTC

Market Overview

# Global market stats curl https://agentservices.to/v1/global # Fear & Greed Index curl https://agentservices.to/v1/fear-greed # Trending tokens curl https://agentservices.to/v1/trending # Latest crypto news curl https://agentservices.to/v1/news

Agent-Ready Context

# Paste-ready market context for LLMs curl https://agentservices.to/v1/agent-context

2. MCP Integration — Connect to Claude, Cursor, or Any MCP Client

AgentServices exposes a remote MCP server at /mcp. No installation required.

# Claude Desktop / Cursor config (add to mcp.json) { "mcpServers": { "agentservices": { "url": "https://agentservices.to/mcp" } } } # List available MCP tools curl https://agentservices.to/mcp/tools

36 MCP tools available — crypto data, market intelligence, search, DeFi, on-chain analytics, and more.

3. Paid Endpoints — x402 Payments $0.01-$0.25

Paid endpoints return HTTP 402 with payment instructions. Use any x402-compatible wallet.

Web Search $0.01

# AI-powered web search curl https://agentservices.to/v1/search?q=latest+AI+agent+frameworks # Returns 402 → pay with x402 wallet → get results

Technical Indicators $0.02

curl https://agentservices.to/v1/indicators/BTC # RSI, Bollinger Bands, ATR, Support/Resistance

DeFi Yields $0.02

curl https://agentservices.to/v1/yields # Top yield pools by TVL across chains

4. Bundled Intelligence — One Call, Full Analysis BEST VALUE

Aggregated endpoints that replace multiple API calls. Higher value, lower total cost.

Deep Research $0.05

# Search + Extract + Synthesize in one call curl "https://agentservices.to/v1/research?q=ethereum+merge+impact+on+defi"

Portfolio Intelligence $0.10

# Price + Signal + Risk + Sentiment + Verdict curl "https://agentservices.to/v1/portfolio?symbol=BTC"

Market Pulse $0.05

# Sentiment + Trending + News + Whales + Global snapshot curl https://agentservices.to/v1/market-pulse

DeFi Strategy Report $0.25

# Yields + TVL + Cross-chain comparison + Risk assessment curl "https://agentservices.to/v1/defi-strategy?chain=ethereum"

On-Chain Overview $0.15

# Whales + Exchange flows + Stablecoin flows + Correlation + DeFi TVL curl https://agentservices.to/v1/onchain-overview

5. LLM Inference Gateway $0.03

# List models curl https://agentservices.to/v1/models # Chat completion (OpenAI-compatible) curl -X POST https://agentservices.to/v1/inference \ -H "Content-Type: application/json" \ -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"What is DeFi?"}]}'

6. Use-Case: Portfolio Monitoring Agent

# Step 1: Get free prices curl "https://agentservices.to/v1/prices?symbols=BTC,ETH,LINK" # Step 2: Get technical signals ($0.02) curl https://agentservices.to/v1/indicators/BTC # Step 3: Get full portfolio intelligence ($0.10) curl "https://agentservices.to/v1/portfolio?symbol=ETH" # Total cost for full portfolio check: ~$0.14

7. Use-Case: Market Intelligence Agent

# Step 1: Market pulse ($0.05) — full snapshot curl https://agentservices.to/v1/market-pulse # Step 2: Deep research on a topic ($0.05) curl "https://agentservices.to/v1/research?q=base+chain+ecosystem+growth+2026" # Step 3: On-chain overview ($0.15) — smart money flows curl https://agentservices.to/v1/onchain-overview # Total cost for full market intelligence: ~$0.25

8. Discovery Manifests

# x402 payment manifest curl https://agentservices.to/.well-known/x402 # OpenAPI 3.1 spec curl https://agentservices.to/openapi.json # Agent skills manifest curl https://agentservices.to/.well-known/agentskills/agentservices/SKILL.md # MCP server card curl https://agentservices.to/.well-known/mcp/server-card.json # llms.txt for LLM crawlers curl https://agentservices.to/llms.txt

9. x402 Payment Flow

All paid endpoints use the x402 protocol. When you hit a paid endpoint:

# 1. Agent sends GET request curl https://agentservices.to/v1/search?q=base+chain # 2. Server responds with 402 Payment Required: # { # "x402Version": 2, # "accepts": { # "url": "https://agentservices.to/v1/search?q=base+chain", # "maxAmountRequired": 1000, # "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", # "network": "eip155:8453" # } # } # 3. Agent pays via x402 wallet (CDP, Coinbase Smart Wallet, etc.) # 4. Server returns data with payment receipt

Network: Base Mainnet (Chain ID 8453). Asset: USDC. Facilitator: CDP.

← Back to AgentServices | API Docs | OpenAPI Spec | GitHub

AgentServices — Paid APIs for AI agents. 51 services. x402/USDC on Base.