intelligence-api
Provides tools for searching Amazon products and performing deep ASIN analysis to estimate FBA profitability, monthly revenue, and calculate opportunity scores.
Enables searching for businesses via Google Maps to generate qualified sales leads with lead quality scores and tailored outreach hints.
Allows for the comprehensive analysis of Shopify stores, including product catalog extraction, pricing distribution, theme detection, and identification of installed apps.
rothy Intelligence API
An x402-powered intelligence API for Shopify, Amazon, and Google Maps data. AI agents pay per call in USDC on Base — no signup, no API keys, no human in the loop.
What This Does
Tool | What It Returns | Price |
| Products, pricing, apps, theme, collections for any Shopify store | $0.08 |
| Paginated product catalog from any Shopify store | $0.02 |
| Amazon search results with Opportunity Score | $0.05 |
| Single ASIN analysis with FBA profitability estimate | $0.08 |
| Google Maps business search with Lead Quality Score | $0.05 |
| Qualified sales leads with outreach hints | $0.10 |
Free endpoints: GET /health, GET /.well-known/mcp.json, GET /openapi.json
Related MCP server: x402-bazaar-mcp
How x402 Payment Works
x402 is a protocol for machine-native micropayments using HTTP 402. No accounts, no rate-limit keys, no billing — agents pay per call in USDC on Base.
Flow:
Agent → GET /shopify/analyze?url=example.myshopify.com
Server → 402 Payment Required
X-PAYMENT-REQUIRED: {"price": "$0.08", "network": "base", ...}
Agent → signs USDC TransferWithAuthorization (ERC-3009)
Agent → GET /shopify/analyze?url=example.myshopify.com
X-PAYMENT: <signed-payment-header>
Server → verifies payment on Base
Server → 200 OK + intelligence dataAgents need a funded Base wallet with USDC. USDC settles directly to the server wallet — no intermediary, no escrow.
Endpoints
GET /shopify/analyze
Analyzes a Shopify store: product catalog, pricing distribution, top vendors, product types, detected apps (Klaviyo, Yotpo, ReCharge, etc.), theme detection.
Query params:
url(required) — store URL, e.g.example.myshopify.com
Example:
curl "https://api.example.com/shopify/analyze?url=gymshark.com" \
-H "X-PAYMENT: <signed-payment>"Response:
{
"store_url": "https://gymshark.com",
"store_name": "Gymshark",
"product_count": 342,
"collection_count": 28,
"price_range": { "min": 18.00, "max": 65.00, "avg": 38.50 },
"top_vendors": [{ "vendor": "Gymshark", "count": 342 }],
"has_sale_items": true,
"sale_percentage": 23,
"detected_apps": ["Klaviyo", "Yotpo", "Sezzle"],
"detected_theme": "Dawn",
"analyzed_at": "2026-03-22T10:00:00Z"
}GET /shopify/products
Paginated product catalog. Pages up to 250 products per call.
Query params:
url(required)page(optional, default: 1)limit(optional, default: 50, max: 250)
GET /amazon/search
Searches Amazon products and returns an Opportunity Score (0–100) for each. High score = strong demand + quality gap + good price tier.
Query params:
keyword(required)marketplace(optional:US|UK|DE|CA|AU, default:US)
Example:
curl "https://api.example.com/amazon/search?keyword=yoga+mat&marketplace=US" \
-H "X-PAYMENT: <signed-payment>"Response:
{
"keyword": "yoga mat",
"marketplace": "US",
"total_results": 24,
"products": [
{
"asin": "B08N5WRWNW",
"title": "Premium Yoga Mat Non Slip...",
"price": 28.99,
"rating": 4.3,
"review_count": 12453,
"prime": true,
"opportunity_score": 72,
"url": "https://www.amazon.com/dp/B08N5WRWNW"
}
]
}Opportunity Score formula:
Reviews >1000 (proven demand): +15
Rating <4.0 (quality gap to fill): +8–15
Price $15–$60 (mass market sweet spot): +10
Prime eligible: +5
GET /amazon/product
Deep analysis of a single ASIN including FBA fee/profit estimates.
Query params:
asin(required) — 10-character Amazon product IDmarketplace(optional, default:US)
Response includes FBA estimate:
{
"asin": "B08N5WRWNW",
"fba_estimate": {
"estimated_monthly_sales": 400,
"estimated_monthly_revenue": 11596,
"estimated_fba_fee": 9.84,
"estimated_profit_margin": 28,
"opportunity_tier": "medium"
}
}GET /maps/search
Searches Google Maps businesses and scores each as a sales lead.
Query params:
query(required) — business type, e.g.coffee shopslocation(required) — city/area, e.g.Austin TXmax(optional, default: 20, max: 60)google_key(required) — your Google Places API key
Response includes Lead Quality Score:
{
"businesses": [
{
"name": "Brew & Co Coffee",
"rating": 3.8,
"website": null,
"phone": "+1-512-555-0100",
"lead_quality_score": 68,
"outreach_hints": [
"No website detected — pitch web presence / digital marketing",
"Low rating (3.8) — pitch reputation management or review improvement"
]
}
]
}Lead Quality Score formula:
Has website: +20
Has phone: +10
Rating <4.0: +8–15
Reviews >50: +10–15
Price level ≥2: +10
Business OPERATIONAL: +10
GET /maps/leads
Returns only businesses above a quality score threshold, sorted by score. Best for building targeted outreach lists.
Query params:
industry(required)location(required)min_score(optional, default: 60)google_key(required)
Getting a Google Places API Key
Maps endpoints require your own Google Places API key (the server never stores it):
Go to console.cloud.google.com
Create or select a project
Enable Places API
Create an API key under APIs & Services → Credentials
Pass it as
?google_key=YOUR_KEYon every Maps request
Agent Discovery
x402scan
Agents discover x402-enabled APIs via x402scan. The server returns proper x402 headers on every 402 response.
MCP Discovery
GET /.well-known/mcp.jsonReturns the MCP plugin manifest pointing to the OpenAPI spec at /openapi.json.
OpenAI Plugin Discovery
GET /.well-known/ai-plugin.jsonCompatible with ChatGPT plugin discovery format.
Running the Server
Setup
npm install
cp .env.example .env
# Edit .env: set WALLET_ADDRESS to your Base USDC walletDevelopment
npm run devProduction
npm run build
npm startEnvironment Variables
WALLET_ADDRESS=0x... # Your USDC-receiving wallet on Base (required)
PORT=3000 # Default: 3000
NODE_ENV=productionx402 Payment Flow (Technical)
When an agent makes a request without payment:
HTTP/1.1 402 Payment Required
X-PAYMENT-REQUIRED: {
"version": "1",
"price": "$0.08",
"network": "base",
"payTo": "0xYourWalletAddress",
"asset": "USDC"
}The agent:
Signs a
TransferWithAuthorization(ERC-3009) for the USDC amountRetries with
X-PAYMENT: <base64-encoded-signed-authorization>Server verifies the signature on-chain and serves the response
USDC settles atomically to WALLET_ADDRESS on Base mainnet.
Error Responses
All errors return JSON:
{
"error": "Human-readable error message",
"detail": "Technical detail (optional)",
"retry_after": 30
}Status | Meaning |
400 | Bad request — check query params |
402 | Payment required — send x402 payment header |
503 | Upstream rate limited (Amazon) — retry after 30s |
502 | Upstream error (scraping failed) |
Available Tools
6 toolsamazon_productA
Deep analysis of a single Amazon product by ASIN. Includes FBA fee estimate, profit margin, and opportunity tier.
Inputs: asin (required), marketplace.
amazon_searchA
Search Amazon products by keyword. Returns an Opportunity Score (0–100) for each result based on demand, rating gap, and price.
Inputs: keyword (required), marketplace.
maps_leadsB
Find qualified sales leads on Google Maps filtered by Lead Quality Score. Best for building targeted outreach lists.
Inputs: industry (required), location (required), google_key (required), min_score.
maps_searchB
Search Google Maps businesses by type and location. Returns each business with a Lead Quality Score (0–100) and outreach hints.
Inputs: query (required), location (required), google_key (required), max.
shopify_analyzeB
Analyze any Shopify store — products, pricing distribution, top vendors, detected apps (Klaviyo, Yotpo, etc.), theme, and collections.
Inputs: url (required).
shopify_productsB
Fetch a paginated product catalog from any Shopify store. Up to 250 products per call.
Inputs: url (required), page, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct domain and action: Amazon product details vs search, Maps lead filtering vs search, Shopify store analysis vs product catalog. No overlap in purpose.
All tool names follow a consistent 'domain_action' pattern using lowercase with underscores (e.g., amazon_search, maps_leads). Uniform and predictable.
Six tools split evenly across three domains (2 each). This is well-scoped for an intelligence API covering Amazon, Maps, and Shopify without bloat.
Each domain has core operations (search and detail for Amazon, search and leads for Maps, analysis and products for Shopify). Minor gaps exist, such as no review analysis for Amazon or order data for Shopify, but the surface is reasonably complete for its stated purpose.
Maintenance
Related MCP Connectors
Pay-per-use MCP tools for AI agents. USDC on Base via x402. No API keys.
Agent-commerce MCP server for x402/USDC payments and affiliate splits on Base.
MCP server for X420's pay-per-call agent services (x402, USDC on Base, paid from your own wallet).
15 paid AI agent primitives via x402 (USDC on Base). Pay-per-call MCP server.
Related MCP Servers
- AlicenseCqualityDmaintenanceMCP server bringing 100+ x402-paid APIs to AI agents (Claude, Cursor, MCP-aware clients). Auto-discovers tools from CDP Bazaar; handles USDC micropayments on Base.10067 npm1MIT
- AlicenseBqualityBmaintenanceMCP server exposing x402 Bazaar's paid Base APIs (token risk/honeypot, prices, gas, wallet intel, tx decode + AI utilities) as agent tools. Your agent pays per call in USDC over x402 — no API keys, no signup.17124 npmMIT
- FlicenseAqualityCmaintenanceMCP server for a live x402 payment gateway on Base (USDC). Lets AI agents discover, preview for free, then pay per call — with prepaid gasless payments, signed receipts, and delta delivery.7-
- AlicenseNot gradedqualityDmaintenanceMCP server that provides AI agents with pay-per-call access to a suite of tools (honeypot check, token market, DeFi yields, etc.) via USDC on Base using the x402 protocol.MIT