Documentation
API Reference
Everything you need to integrate agentsvc.io into your agent. Payments run on the x402 protocol with USDC on Base.
Quickstart
Start by listing available services. No API key or authentication required.
To call a service, send a POST request with the x402 payment header:
x402 Payment Flow
agentsvc.io uses the x402 protocol — a standard for micropayments over HTTP using USDC on the Base blockchain. No subscription required, pay only for what you use.
Service Schema
Every service in the catalog follows this TypeScript interface:
The catalog API returns a paginated list response:
Supported query parameters for GET /api/v1/services:
Error Codes
All error responses follow the same structure:
Rate Limits
Currently no hard rate limits are enforced. The platform is designed for high-volume agent traffic. If you experience 503 errors from a service, use exponential backoff with a maximum of 3 retries.
Services Reference
Every service follows the same pattern: POST /api/v1/proxy/<slug> without payment → receive HTTP 402 → attach X-Payment header → get result. All inputs go in the JSON request body. All outputs are wrapped in { "success": true, "data": { ... } }.
Screenshot API
Capture any URL as a PNG screenshot. Returns image_base64 (base64 PNG — decode to get raw bytes). Full JS rendering via Playwright, works on SPAs and dynamic content. Params: url (required), width px (default 1280), height px (default 800), full_page boolean, wait_ms.
Endpoint
POST https://agentsvc.io/api/v1/proxy/screenshotInput Parameters
Response Fields — inside data
Example Request
Example Response
Weather Data
Real-time weather + 3-day forecast. Returns current (temp_c, feels_like_c, humidity_pct, wind_kph, weather_code) and forecast_3d array. Pass location as city name ('Berlin') or GPS string ('52.52,13.41'). WMO codes: 0=clear, 1-3=cloudy, 45-48=fog, 51-67=rain, 71-77=snow, 95-99=thunderstorm.
Endpoint
POST https://agentsvc.io/api/v1/proxy/weatherInput Parameters
Response Fields — inside data
Example Request
Example Response
Currency Exchange Rates
Live forex rates from European Central Bank (ECB), updated hourly. Returns rates object mapping currency codes to rates relative to base. Pass symbols array to filter (e.g. ['USD','CHF','GBP']). Empty symbols = all 30+ currencies. Use for currency conversion in invoices, pricing, or financial calculations.
Endpoint
POST https://agentsvc.io/api/v1/proxy/exchange-ratesInput Parameters
Response Fields — inside data
Example Request
Example Response
HTML to PDF
Render a URL or raw HTML string to PDF. Returns pdf_base64 (base64 PDF — decode to get raw bytes) and page_count. Provide url OR html — never both. Supports format (A4/Letter/Legal), landscape boolean, and margin settings (top/bottom/left/right in CSS units). Use for invoices, reports, or printable document generation.
Endpoint
POST https://agentsvc.io/api/v1/proxy/html-to-pdfProvide either url or html — not both.
Input Parameters
Response Fields — inside data
Example Request
Example Response
IP Geolocation
Resolve any IPv4 or IPv6 address to location and network data. Returns country, country_code, city, region, postal, lat/lon, timezone, ISP, org, and ASN. Use for fraud detection, geolocation enrichment, or access log analysis.
Endpoint
POST https://agentsvc.io/api/v1/proxy/ip-lookupInput Parameters
Response Fields — inside data
Example Request
Example Response
Webpage Reader
Fetch and extract clean readable text from any URL. Full JS rendering via Playwright — works on SPAs and dynamic sites. Returns title, text (cleaned content, default max 8000 chars), description, word_count, and optional links array. Ideal for web research, content summarization, or feeding page content to an LLM.
Endpoint
POST https://agentsvc.io/api/v1/proxy/webpage-readerInput Parameters
Response Fields — inside data
Example Request
Example Response
DNS Lookup
Resolve DNS records for any domain. Supports A, AAAA, MX, TXT, CNAME, NS. Returns records object with array per type. Default: A records only. Use to verify mail server setup (MX), check domain ownership (TXT), or debug DNS propagation.
Endpoint
POST https://agentsvc.io/api/v1/proxy/dns-lookupInput Parameters
Response Fields — inside data
Example Request
Example Response
QR Code Generator
Generate a QR code for any text or URL. Returns image_base64 (base64 PNG — decode to get raw bytes). Params: text (required), size in px (64-1024, default 256), error_correction (L/M/Q/H, default M). H = highest redundancy, survives up to 30% damage.
Endpoint
POST https://agentsvc.io/api/v1/proxy/qr-codeInput Parameters
Response Fields — inside data
Example Request
Example Response
Web Search
Search for factual information via DuckDuckGo + Wikipedia. Returns heading, abstract (plain-language summary), abstract_url, and results (list of relevant links). Best for: people, places, concepts, history, science. NOT for breaking news — use news-search instead.
Endpoint
POST https://agentsvc.io/api/v1/proxy/web-searchInput Parameters
Response Fields — inside data
Example Request
Example Response
Text Translation
Translate text between 100+ languages. Max 500 characters per call. Returns translated_text and confidence (0-1). Set target_lang to IETF code: 'de' (German), 'fr' (French), 'es' (Spanish), 'ja' (Japanese), 'zh-CN' (Chinese Simplified), 'ar' (Arabic), 'pt' (Portuguese), 'it' (Italian), 'nl' (Dutch). source_lang defaults to auto-detect.
Endpoint
POST https://agentsvc.io/api/v1/proxy/translateInput Parameters
Response Fields — inside data
Example Request
Example Response
Email Validation
Validate an email address: RFC 5322 format check, domain MX record lookup, disposable provider detection, and role address detection (e.g. info@, admin@). Returns is_valid boolean and granular checks object. Use before storing or sending to email addresses to prevent bounces.
Endpoint
POST https://agentsvc.io/api/v1/proxy/email-validateInput Parameters
Response Fields — inside data
Example Request
Example Response
SSL Certificate Check
Inspect SSL/TLS certificate for any domain. Returns valid boolean, days_remaining, issuer, valid_from, valid_to, subject_alt_names (SANs), fingerprint_sha256, and protocol version. Default port 443. Use for certificate expiry monitoring, security audits, or HTTPS verification.
Endpoint
POST https://agentsvc.io/api/v1/proxy/ssl-checkInput Parameters
Response Fields — inside data
Example Request
Example Response
WHOIS Lookup
Domain registration lookup via RDAP (modern WHOIS). Returns registrar, registrar_url, created_at, updated_at, expires_at, days_until_expiry, name_servers array, status array, and registrant_country. Clean JSON — no raw WHOIS text to parse. Covers all major TLDs.
Endpoint
POST https://agentsvc.io/api/v1/proxy/whoisInput Parameters
Response Fields — inside data
Example Request
Example Response
Crypto Price Lookup
Real-time crypto prices, market caps, and 24h % changes via CoinGecko. Pass coins as CoinGecko IDs (['bitcoin','ethereum','solana']) or tickers. Max 25 coins per call. Returns usd, usd_24h_change, usd_market_cap per coin. Add currencies param for multi-currency output (['usd','eur','gbp']).
Endpoint
POST https://agentsvc.io/api/v1/proxy/crypto-pricesInput Parameters
Response Fields — inside data
Example Request
Example Response
PDF Text Extraction
Extract all text from a PDF. Send as pdf_base64 (base64-encoded PDF, max ~10 MB decoded). Returns text (full concatenated text), pages array (per-page text + char_count), page_count, and metadata (title, author, creator). Encode with: Buffer.from(pdfBytes).toString('base64'). Ideal for RAG pipelines, document QA, or LLM ingestion.
Endpoint
POST https://agentsvc.io/api/v1/proxy/pdf-extractInput Parameters
Response Fields — inside data
Example Request
Example Response
Phone Number Validation
Parse and validate any phone number worldwide using libphonenumber. Returns is_valid, e164 (canonical international format e.g. '+4917612345678'), national_format, country_code (ISO alpha-2), and line_type (MOBILE/FIXED_LINE/VOIP/TOLL_FREE). Provide country_code hint (e.g. 'DE') for local numbers without country prefix.
Endpoint
POST https://agentsvc.io/api/v1/proxy/phone-validateInput Parameters
Response Fields — inside data
Example Request
Example Response
Stock Price Lookup
Real-time stock data via Yahoo Finance. Returns price, change, change_pct, previous_close, market_cap, pe_ratio, week_52_high, week_52_low, volume, and market_state. Max 10 symbols per call. Non-US exchange suffixes: 'SAP.DE' (Xetra), 'VOD.L' (London LSE), 'AIR.PA' (Paris Euronext), 'ASML.AS' (Amsterdam).
Endpoint
POST https://agentsvc.io/api/v1/proxy/stock-pricesInput Parameters
Response Fields — inside data
Example Request
Example Response
Geocoding
Forward geocoding: address string → lat/lon. Reverse geocoding: lat/lon → human-readable address. Powered by OpenStreetMap Nominatim. Returns results array with display_name, lat, lon, type, and structured address object. Provide address (string) for forward, or lat + lon (numbers) for reverse.
Endpoint
POST https://agentsvc.io/api/v1/proxy/geocodeInput Parameters
Response Fields — inside data
Example Request
Example Response
News Search
Search recent news articles by keyword. Returns articles with title, url, source, published_at, and snippet. Sources: HackerNews Algolia (tech) + BBC RSS (general/world). Optional category filter: general/tech/business/science/health/politics. Limit max 30. Use for current events, topic monitoring, or market sentiment.
Endpoint
POST https://agentsvc.io/api/v1/proxy/news-searchInput Parameters
Response Fields — inside data
Example Request
Example Response
OCR — Image to Text
Extract text from images using Tesseract OCR. Send image as image_base64 (PNG/JPEG/WebP/TIFF/BMP, max 10 MB decoded). Returns text and confidence (0-100, where 80+ is reliable). Set language to Tesseract code: 'eng' (default), 'deu' (German), 'fra' (French), 'chi_sim' (Chinese Simplified), 'jpn' (Japanese), 'ara' (Arabic). Use for invoices, receipts, scanned documents, or screenshots with text.
Endpoint
POST https://agentsvc.io/api/v1/proxy/ocrInput Parameters
Response Fields — inside data
Example Request
Example Response
Submit a Service
Want to offer your service to AI agents? Submit it to the marketplace and start earning USDC micropayments automatically.
Requirements for listed services:
- Expose a JSON-based POST endpoint
- Return structured, deterministic output
- Support the x402 payment header for USDC on Base
- Provide a JSON Schema for input and output
- Maintain 99.5% uptime SLA
- P99 latency under 10 seconds