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.
Start building (agent credentials)
Easiest: open /signup — email + password, copy dual-auth credentials shown once (free tier). Agents can also settle x402 per request with no key.
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 gated routes, commerce /api/v1/search, MCP, etc. — or pay via HTTP 402/x402.
Quick test (curl)
Copy-paste; replace YOUR_KEY with credentials from Start building 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 (agent-paid rails + commerce + DeFi demos + request_capability). Same JSON as REST.
Capability gaps: when fixed tools are insufficient, call MCP request_capability or
POST /api/v1/agent/capabilities/request with capability, desired_input,
desired_output, why_insufficient, budget_usd. Dual-auth + rate limits +
~$0.05 stake; requests land in the admin web inbox for human review — no runtime codegen.
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).
Objective Trust — rank before you pay
Separate MCP for choosing among endpoints the agent already has. It does not call those servers and it does not pay them. Sponsored listings stay labeled, and that label is not part of the score.
Endpoint: https://agentshare.dev/mcp/objective-trust
set_objective— free. One owner sentence becomes weights. The sentence is not stored. Ambiguous text returnsneeds_confirmation.rank_tools_for_task— API key, or HTTP 402 at $0.005. Returnspickandfallbacks.executeiscaller.record_outcome— free. Writes this key's success, latency, and cost for the next rank.
REST: POST /api/v1/objective-trust/objective, POST /api/v1/objective-trust/rank, POST /api/v1/objective-trust/outcome.
{ "mcpServers": { "objective-trust": { "url": "https://agentshare.dev/mcp/objective-trust" } } }
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 — honest scope map (HTML for browsers; ?format=json or agent Accept for JSON). Includes DeFi positioning vs DefiLlama / Meteora / Birdeye-class feeds, plus commerce categories. No auth. Expanding-category searches may return a warning and X-Data-Coverage-Warning header.
Main endpoints
Agent-paid rails (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)
- POST /api/v1/agent/capabilities/request — Custom Request Tool (capability gap intake; human review)
- POST /api/v1/objective-trust/rank — Rank MCP candidates before paying them ($0.005, or an API key). Policy and outcome routes are free.
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"}