x402-native data gateway — bulk SERP, Google Trends, web scraping to markdown, DeFi TVL, company enrichment and research-paper lookup. Pay per call, no key.
https://router.fluxapay.xyz/api/kadec0-x402-gateway/{CREATOR_UID}Author Search: Author and researcher profile search. An author name returns matching researchers with current affiliation, publication count, total citations, h-index and i10-index, and their most-cited papers â for author lookup, disambiguation, and citation-metrics. Keyless via OpenAlex.
Congress Trades: US congressional stock trades. Stock transactions disclosed by members of the House and Senate under the STOCK Act â politician, ticker, amount, and date.
Cve: CVE vulnerability lookup. Returns security vulnerability records by CVE id or keyword from the NIST National Vulnerability Database and GitHub Security Advisories, each with CVSS score, severity, CWE weakness class, affected products, and references, filterable by severity and source. For vulne
Defi Tvl: DeFi TVL for protocols and chains. Returns total value locked per DeFi protocol or per chain via DefiLlama, with category, supported chains, and TVL change over time, filterable by category or chain. For DeFi protocol screening, chain-level TVL comparison, and tracking where liquidity is m
Dns Propagation: DNS propagation checker. Compares a DNS record across public resolvers (Google, Cloudflare, Quad9, OpenDNS) to spot propagation lag or split-horizon answers.
Domain Info: Domain WHOIS and DNS lookup. Registrar, creation and expiry dates, nameservers, and full DNS records (A, AAAA, MX, NS, TXT, CNAME) for a domain.
Enrich: Company domain enrichment. Firmographics, tech-stack detection, social profiles, and metadata for a company domain â a keyless one-call enrichment gateway.
Fda: FDA recalls and adverse events. Drug, device, and food recall and adverse-event records from openFDA with classification, recalling firm, and reason.
Gas Oracle: Ethereum gas price oracle. Returns the current Ethereum gas price as an EIP-1559 base fee plus priority-fee estimates across five confidence tiers, all in gwei, so an agent can price a transaction before it signs one. Ethereum mainnet only. Keyless, via Blocknative.
Github: GitHub data. Repository stats, user profiles, and code-search results (stars, forks, language, topics, issues) via the GitHub REST API.
Hackernews: Hacker News feed. Top, new, and best front-page stories plus full-text story search â titles, scores, comment counts, and author for tech and startup news.
Interest By Region: Google Trends interest by region for a keyword. Returns the subregional breakdown of Google Trends search interest inside a country - by state, province, or region - each ranked 0-100 relative to the strongest region. For regional demand mapping, geo targeting, and finding where
Lit Review: Literature review map in one call. Give a seed paper (DOI, arXiv id, OpenAlex id, or PMID) or a topic query and get one structured result: the seed's references, its cited-by list (most-cited first), and semantically related work, deduplicated into one uniform table with title, authors,
Market Sentiment: Market fear & greed index. Aggregated investor sentiment from CNN Fear & Greed, the crypto Fear & Greed index, and the VIX volatility gauge.
Nutrition: Food nutrition lookup. Calories, macros, and micronutrients for any food from the USDA FoodData Central database.
Paper Details: Citation lookup and reference list for a paper. Given a DOI, arXiv id, OpenAlex id, or PMID, returns its references (the works it cites) and its cited-by list (recent works that cite it), plus full metadata and citation count â for bibliography building and citation lookup. Keyless
Papers: Academic and scientific paper search API. Search research papers and scholarly literature across arXiv, PubMed, OpenAlex, Crossref, and Semantic Scholar in one call, deduplicated into a ranked result set: title, authors, year, venue, abstract, citation count, DOI, and direct PDF link. Query
Permits: Building permit records. Construction and building permits across Chicago, NYC, Seattle, and San Francisco â type, status, address, cost, and issue date.
Recalls: Consumer product recalls. A normalized multi-agency recall feed spanning FDA, CPSC, and NHTSA â product, reason, company, classification, and severity.
Related Papers: Literature review and related-paper discovery. Given a seed paper (arXiv id, DOI, or OpenAlex id) or a topic query, returns semantically similar and recommended scholarly papers to expand a reading list or systematic review, via Semantic Scholar recommendations with an OpenAlex relat
Related Queries: Google Trends related queries for a keyword. Returns the searches people run alongside a keyword in a given country: top queries scored 0-100 relative to each other, and rising queries with their percentage growth. Google Trends keyword expansion for SEO keyword research, content pl
Related Topics: Google Trends related topics for a keyword. Returns the topics and named entities associated with a keyword in a given country, as top topics scored 0-100 relative to each other and rising topics with percentage growth, each carrying its entity type. Google Trends topic discovery for
Scrape: Scrape any web page to clean markdown. A keyless web scraper that converts a single URL into LLM-ready markdown plus structured metadata (title, headings, links, word count), so an agent can read a page without running a browser. A per-call alternative to Firecrawl's scrape endpoint, with no
Sec Edgar: SEC filings full-text search. Searches SEC EDGAR filings - 10-K, 10-Q, 8-K, and every other form type - by keyword, company name, ticker, or CIK, with date-range filtering, returning company, form type, filing date, accession number, and a direct document link. For SEC filings research an
Serp: Web search results (SERP). Keyless web search returning ranked title, URL, and snippet for a query â with locale/region targeting, freshness filters (past day, week, month, year), pagination, a news mode that adds publish date and source, and selectable backend engine (auto rotation, or pin
Serp Batch: Bulk web search: up to 5 search queries in a single call, each returning ranked title, URL, and snippet, with the same locale, freshness, and news filters as the single-query web search. One paid call instead of five for research fan-out.
Serp Multi: Multi-engine web search (metasearch). One search query fanned out across 2-3 search engines (Brave, Yahoo, Yandex) with results deduplicated by URL and merged by reciprocal-rank fusion: consensus ranking across engines instead of one engine's bias, with per-engine rank attribution on eve
Serp Read: Web search plus page reading in one call: answer with sources. Runs a web search, scrapes the top results, and returns the ranked search results together with each page's content as clean LLM-ready markdown, so an agent gets the SERP AND the underlying text without a second round of scrap
Smart Search: Smart, auto-routed research paper search. A broad field term is grounded against the OpenAlex taxonomy and returned as a coherent field cluster; a natural-language question runs hybrid retrieval over OpenAlex and Semantic Scholar with reciprocal rank fusion and a SPECTER2 embedding rer
Stablecoins: Stablecoin supply data. Returns circulating supply for stablecoins broken down across chains via DefiLlama, filterable by peg type and by collateral mechanism, so you can compare fiat-backed against crypto-backed and algorithmic stablecoins. For stablecoin market share, depeg watch, and
Stackoverflow: Stack Overflow Q&A. Programming question and answer search with scores, accepted-answer flags, tags, and answer bodies via the Stack Exchange API.
Token Price: Crypto token price and market data. Returns the live price of one or many tokens by coin id or ticker symbol, in a chosen vs-currency, with market cap, 24-hour volume, and 24-hour price change. For crypto price lookups, portfolio valuation, and market data feeds. Keyless, via CoinPaprik
Topic Search: Field and topic search for research papers. Give a broad field name or short phrase (like 'crispr' or 'exercise science') and get a coherent, taxonomy-grounded seed cluster: the field is resolved against the OpenAlex topics taxonomy, then the cluster returns the top-cited plus recent-i
Trend: Google Trends interest over time for a keyword. Returns Google Trends search interest as a dated series indexed 0-100: weekly points across the default past 12 months, daily points for 30- and 90-day windows, and windows from the past hour back to 2004, with optional country targeting. For ke
Trending Coins: Trending crypto coins. The coins most searched on CoinGecko right now, with rank, price, and market-cap rank.
Usgs Quakes: Real-time earthquake feed. Recent seismic events from USGS with magnitude, location, depth, and tsunami flag, filterable by magnitude, time, and radius.
Website Audit: Instant website SEO audit. On-page SEO, performance, and accessibility snapshot for any URL â title, meta tags, headings, links, image alt, load time, and an issues list with score.
Whois Bulk: Bulk WHOIS lookup. Registrar, dates, and nameservers for up to 10 domains in a single batch call.
Yield Pools: DeFi yield and APY across pools. Returns the top yield-farming pools via DefiLlama with current APY, base and reward APY split, TVL, chain, and project, filterable by chain, project, symbol, stablecoin-only, minimum TVL, and minimum APY. For yield discovery and comparing APY across prot
Copy this prompt and paste it into your AI agent (like Claude, GPT-4, etc.) to enable automatic X-402 payment handling.
** Your task ** Call the API at: https://router.fluxapay.xyz/api/kadec0-x402-gateway/{CREATOR_UID}
Follow the steps below in order.
** Step 1 - Install FluxA Wallet CLI **
npm install -g @fluxa-pay/fluxa-wallet
Or use without installing: npx fluxa-wallet <command>
** Step 2 - Register agent **
fluxa-wallet init --name "<YOUR_AGENT_NAME>" --client "<YOUR_CLIENT>"
The response may include an authorization URL. Present the user with options: [Yes, open the link] [No, don't open]. If YES: run 'open "<URL>"' to open in their browser.
Verify: fluxa-wallet status
** Step 3 - Discover endpoints **
curl https://router.fluxapay.xyz/api/kadec0-x402-gateway/{CREATOR_UID}
Returns JSON with: name, description, endpoints (paths, methods, descriptions, prices), paymentRequired, and networks.
** Step 4 - Choose payment method **
Ask the user: [On-chain USDC (Base)] or [FluxA Monetize Credits]
If USDC:
- --currency USDC
- --amount in atomic units (6 decimals, e.g., 100000 = 0.10 USDC)
If Credits (1 credit = 1 USDC):
- --currency FLUXA_MONETIZE_CREDITS
- --amount in 2-decimal units (e.g., 10 = 0.10 credits, 100 = 1.00 credits)
** Step 5 - Create an intent mandate **
x402 v3 uses intent mandates: the user pre-approves a spending plan (budget + time window), then the agent makes autonomous payments within those limits.
fluxa-wallet mandate-create \
--desc "Spend up to <BUDGET> for <DESCRIPTION> valid for <DURATION>" \
--amount <BUDGET_IN_UNITS> \
--seconds <DURATION_IN_SECONDS> \
--currency <USDC or FLUXA_MONETIZE_CREDITS>
Options:
- --desc (required): Human-readable spending plan description
- --amount (required): Budget in units for the chosen currency (see Step 4)
- --seconds (optional, default 28800 = 8h): Duration in seconds
- --currency (optional, default USDC): USDC or FLUXA_MONETIZE_CREDITS
** Step 6 - Get user to sign the mandate **
The response from Step 5 includes mandateId and authorizationUrl (TTL: 10 minutes).
Present the user with options: [Yes, open the link] [No, don't open]. If YES: run 'open "<authorizationUrl>"' to open in their browser.
** Step 7 - Wait for mandate to be signed **
fluxa-wallet mandate-status --id <MANDATE_ID>
Poll until mandate.status is "signed". The response also includes remainingAmount.
Important: Use --id, not --mandate.
** Step 8 - Call the API **
curl https://router.fluxapay.xyz/api/kadec0-x402-gateway/{CREATOR_UID}
Optionally add the X-Agent-ID header for agent attribution (its value is the agent_id from 'fluxa-wallet status'): curl -H "X-Agent-ID: <YOUR_AGENT_ID>" https://router.fluxapay.xyz/api/kadec0-x402-gateway/{CREATOR_UID}
If it returns HTTP 402, continue to Step 9.
** Step 9 - Pay via x402 v3 **
Pass the complete HTTP 402 response body as --payload:
fluxa-wallet x402-v3 \
--mandate <MANDATE_ID> \
--payload '$PAYLOAD_402'
The payload must contain an accepts array. Do NOT extract individual fields - pass the entire 402 response JSON.
The response includes xPaymentB64 (the payment token).
** Step 10 - Retry with payment token **
Retry the same request with the X-Payment header (optionally add X-Agent-ID for attribution):
curl -H "X-Payment: <xPaymentB64>" <ORIGINAL_API_URL>
Return the raw API response to the user without post-processing.
** Opening links for user **
Whenever you need to open a URL (authorization, approval, or any external link):
1. Present the user with a choice using your interactive options/menu capability (e.g., AskUserQuestion tool)
2. Options: [Yes, open the link] [No, don't open]
3. If YES: run 'open "<URL>"' to open in their default browser
4. If NO: ask how they would like to proceed
** Error handling **
- mandate_not_signed: User hasn't signed yet - ask them to open authorizationUrl
- mandate_expired: Time window passed - create a new mandate
- mandate_budget_exceeded: Budget too low - create a new mandate with a higher limit
- agent_not_registered: No Agent ID - run 'fluxa-wallet init' first
- Invalid payload: missing accepts array: Pass the full 402 response JSON