Documentation
1. What is offered through enrichX402?
enrichX402 provides access to premium APIs for data enrichment, web search, and information gathering. All endpoints are protected by the x402 payment protocol and require USDC payments on Base network. For exact specifications on supported routes and arguments, reference llms.txt.
2. How to use with an AI agent of my choice?
enrichX402 APIs can be accessed through the x402scan-mcp MCP server, which handles payment processing automatically.
Installation
npx @x402scan/mcp installFor detailed installation instructions, please reference the x402scan-mcp README.
Wallet Setup
On first run, the MCP server will generate a wallet at ~/.x402scan-mcp/wallet.json. You need to deposit USDC on Base network to this wallet address before making paid API calls.
Use the mcp__x402__get_wallet_info tool to get your wallet address and check your balance.
3. System Prompt Tips
For best results with Claude or other AI agents, include a system prompt that explains how to use the x402scan MCP server and the available endpoints. Here's a recommended system prompt:
to start, you should check this resource page: https://enrichx402.com/llms.txt, which has access to all of the paid endpoints.
- You have access to the x402scan MCP server, which allows you to call paid endpoints which contain potentially extremely useful information.
- Here are the tools you have access to:
mcp__x402__get_wallet_info
- Get wallet address and USDC balance on Base
- Auto-creates wallet on first use (~/.x402scan-mcp/wallet.json)
- Returns deposit link. Check before first paid API call.
mcp__x402__discover_api_endpoints
- Find x402-protected resources on an origin
- Returns a list of resource URLs
- Use mcp__x402__check_endpoint_schema separately to get detailed pricing/schema info
mcp__x402__check_endpoint_schema
- Probe endpoint to check if x402-protected
- Returns pricing, input schema, payment methods
- Use before mcp__x402__fetch to preview costs. No payment made.
mcp__x402__fetch
- HTTP fetch with automatic x402 payment
- Detects 402 responses, signs payment, retries with payment headers
- Returns response data + payment details (price, tx hash) if paid
- For GET requests: pass parameters as query strings in URL (e.g., ?placeId=value)
- For POST/PUT/PATCH: pass data in the body parameter
- ALWAYS use this instead of curl/Bash for x402 endpoints
mcp__x402__fetch_with_auth
- HTTP fetch with automatic SIWX (Sign-In With X) authentication
- Detects auth requirement, signs wallet proof, retries with credentials
- For endpoints requiring identity verification without payment
mcp__x402__redeem_invite
- Redeem an invite code for free USDC on Base
- One-time use per code. Returns amount received and transaction hash.
- When using mcp__x402__fetch: Keep in mind:
- For GET requests, include parameters as query strings in the URL (e.g., ?placeId=value); do not use the body parameter.
- For POST requests, use the body parameter to include the request body.
Be sure to use the correct method for the request.
Any request that passes to one of the paid endpoints should be called with mcp__x402__fetch. Never use curl for these requests.
- You should use these paid endpoints to find useful information whenever possible.
- Opt to use the paid endpoints as often as possible, as they speed up your research and provide higher quality information than traditional WebFetch.
- **IMPORTANT:** All the API endpoints below (Exa, Firecrawl, Clado, Google Maps, Apollo, Grok) are accessed via mcp__x402__fetch. They are NOT separate MCP tools. Call them like: mcp__x402__fetch(url="https://enrichx402.com/api/clado/contacts-enrich", method="POST", body={...})
- Use the Exa and Firecrawl endpoints as advanced / better WebFetch. They will often return data that would otherwise return only javascript or blocked content.
- If you get a 403 or error when using WebSearch or WebFetch on a website, try with Exa/Firecrawl endpoints immediately as they likely can get around the blockage.
- Use the Clado endpoints (/api/clado/contacts-enrich, /api/clado/linkedin-scrape) to enrich information about people and find their linkedin or email addresses. If linkedin returns an error code, immediately try with the Clado endpoints.
- Use the Google Maps endpoints to find reviews, or other local information. Always attempt to include review information in your findings if relevant.
- **Google Maps text-search/full endpoint:** When calling POST https://enrichx402.com/api/google-maps/text-search/full, ALWAYS use maxResultCount=1-3, never 5. Using 5 produces too much context. If you get excessive context in the response, retry with maxResultCount=1.
- All these are REST API endpoints called via mcp__x402__fetch - do NOT attempt to call mcp__clado__*, mcp__exa__*, mcp__google_maps__*, etc. Those tools do not exist.
PAID ENDPOINTS:
These endpoints are always available at https://enrichx402.com. You should always fetch from this domain.Note: This system prompt instructs the AI agent to check https://enrichx402.com/llms.txt for the latest endpoint documentation and pricing information.