For: autonomous agents and developers. Primary: Meteora DLMM briefs and pool detail with meta.freshness. Secondary: commerce search/offers with freshness_status. Prefer /agent.json over this HTML page.
Agent Experience (AX)
Prefer machine-readable discovery over scraping this HTML page:
GET /agent.json— authoritative map (tools, auth, MCP, error contract)GET /api/v1/examples— curl, Python, JavaScript snippetsGET /api/v1/protocol— envelopes, error codes, AX fieldsGET /changelog.json— API changelog (JSON)- /for-agents — one-page agent quickstart
Every /api/v1 response includes X-AgentShare-Discovery, X-AgentShare-Protocol, and related headers. Errors include signup_url (401), retry_after_seconds (429), and docs_for_agent_url.
MCP — connect any MCP client
Discovery (no API key): /agent.json — same as /.well-known/agentshare.json.
Sign up (free API key)
Easiest: open /signup in a browser — fill in email + password, copy the key shown once.
From a terminal (no UI):
curl -sS -X POST "https://agentshare.dev/api/v1/auth/register" -H "Content-Type: application/json" -d '{"email":"[email protected]","password":"your-secure-password"}'
Either way, send the returned key as -H "X-API-Key: …" or Authorization: Bearer … on DeFi routes, commerce /api/v1/search, MCP, etc.
Quick test (curl)
Copy-paste; replace YOUR_KEY with the key from Sign up above.
curl -sS "https://agentshare.dev/api/v1/health" (liveness; no DB on this path)
curl -sS "https://agentshare.dev/api/v1/meta"
curl -sS "https://agentshare.dev/agent.json"
curl -sS -X POST "https://agentshare.dev/api/v1/agent/defi/meteora/brief" -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" -d '{"kind":"top_pools","limit":5}'
curl -sS -H "X-API-Key: YOUR_KEY" "https://agentshare.dev/api/v1/search?q=raspberry+pi&limit=3"
(commerce — secondary)
curl -sS -H "X-API-Key: YOUR_KEY" "https://agentshare.dev/api/v1/integrations/aliexpress/affiliate/product-detail?product_ids=1005001234567890"
(replace product_ids with real AliExpress item ID; server must have Open Platform + OAuth; may deduct credit)
Endpoint (Streamable HTTP): https://agentshare.dev/mcp
Send your API key on every MCP request (same key as REST):
- Header
X-API-Key: YOUR_KEY, or Authorization: Bearer YOUR_KEY
Tools: live catalog at GET /api/v1/mcp/tools (DeFi-first: meteora_brief, meteora_pool_detail, plus commerce and scout tools). Same JSON as REST.
Disable the HTTP MCP endpoint on your deployment with MCP_HTTP_ENABLED=false (server env).
Claude Desktop: install the .mcpb from mcpb-bundle/agentshare-price-mcp (see docs/MCP_QUICKSTART.md). Cursor / other clients: Streamable HTTP at this URL with X-API-Key, Node bridge.mjs, or optional local Python integrations/mcp_server/server.py (stdio).
Authentication (dual-auth)
Mode A — API key: send your key in the header:
X-API-Key: YOUR_KEY
or Authorization: Bearer YOUR_KEY.
Mode B — x402: call without a key → if the route is gated you get HTTP 402 + PAYMENT-REQUIRED. Decode that header, settle USDC via Circle Gateway, retry with PAYMENT-SIGNATURE. Full agent instructions: #x402-agents.
Data Coverage (honesty & transparency)
We clearly communicate what we cover well vs. what we're expanding. Focus (high quality, daily updates): AI local hardware (Raspberry Pi, Jetson, SBCs), mini PCs, components, accessories, robotics (kits, arms, servos), robot/RC power (LiPo, LiFePO4, NiMH packs). Expanding/beta: phones, tablets, general consumer electronics, home appliances — data may be incomplete.
GET /coverage — canonical JSON for this scope (no auth). When you search expanding-category products, the API may return a warning and X-Data-Coverage-Warning header.
Main endpoints
DeFi (primary, dual-auth — API key or x402):
- POST /api/v1/agent/defi/meteora/brief — Ranked Meteora DLMM pools (
meta.freshness) - POST /api/v1/agent/defi/meteora/pool-detail — Single pool bin depth (live)
- GET /api/v1/agent/defi/solana/brief — Solana DEX scout (public where configured)
Discovery (no API key):
- GET /api/v1/meta — Metadata & capabilities
- GET /api/v1/agent-capabilities — Machine-readable capabilities
- GET /coverage — Data coverage spec
- GET /api/v1/mcp/tools — MCP tool catalog
Commerce (secondary, API key):
- GET /api/v1/search?q=...&limit=... — Search, multi-source prices + freshness metadata
- GET /api/v1/offers/best?q=... — Best offer (ideal for agents answering "where to buy cheapest?")
- GET /api/v1/offers/best-under-budget?q=...&max_price=... — Best offer within budget
- GET /api/v1/products/{id} — Product details + prices by source
- GET /api/v1/products/{id}/price-history — Price history
- GET /api/v1/integrations/aliexpress/affiliate/product-detail?product_ids=... — AliExpress rich product detail (IOP
productdetail.get;product_ids= one or more AliExpress item IDs, comma-separated)
Examples (curl)
curl -H "X-API-Key: YOUR_KEY" "https://agentshare.dev/api/v1/search?q=raspberry+pi+5&limit=5"
curl -H "X-API-Key: YOUR_KEY" "https://agentshare.dev/api/v1/offers/best?q=nvidia+jetson+orin"
curl -H "X-API-Key: YOUR_KEY" "https://agentshare.dev/api/v1/offers/best-under-budget?q=raspberry+pi+5&max_price=5000000"
curl -sS -H "X-API-Key: YOUR_KEY" "https://agentshare.dev/api/v1/integrations/aliexpress/affiliate/product-detail?product_ids=1005001234567890"
Response
Every successful response has status: "ok", data and meta (including last_updated, freshness_status, remaining_requests, credit_balance). For expanding-category queries, responses may include warning and coverage_url.
{"status": "ok", "data": [...], "meta": {...}, "warning": "Optional: data may be incomplete", "coverage_url": "https://agentshare.dev/coverage"}
✨ MCP-ready