{"openapi":"3.1.0","info":{"title":"PageText","version":"1.8.1","contact":{"name":"PageText","url":"https://pagetext.yashil.workers.dev"},"description":"Pay-per-call web and AI tools for agents: web page to Markdown, page summaries and Q&A, translation, chat, image generation, metadata, links, website security headers and uptime checks, DNS, WHOIS, currency rates, crypto prices, token prices and swap quotes from DEX pools, weather forecasts, air quality, PDF to text, time zones, secure random values, and blockchain reads (wallet balances, tokens, transactions, gas, ENS) on Base, Ethereum and 5 more chains.","x-guidance":"Every tool is a GET request with query parameters and returns JSON, except POST /v1/chat/completions (OpenAI chat format). Pay per call with x402 (USDC on Base); calls that fail (page unreachable, bad input, AI unavailable) return an error and are not charged. A wallet's first successful call (any tool but /image) is free (verified, not settled; header x-pagetext-first-call: free). Use /extract to read a web page as clean Markdown for LLM context, /summarize for a short summary of a page, /ask to get one answer from a page, /translate for text translation, /chat for a one-shot LLM answer, /image to generate a picture, /meta for link previews and SEO tags, /links to crawl, /headers to audit a website's security headers (graded), /up to check if a website is up and how fast, /dns and /whois for domain checks, /fx for currency conversion, /balance for wallet balances (native, USDC, USDT, any ERC-20), /token for token metadata, /tx to check a transaction or verify a payment, /gas for live gas prices on several chains, /ens to resolve ENS names and Basenames, /price for crypto and gold prices (Chainlink), /tokenprice for any token by contract address (DEX pools), /quote for a swap quote (read-only), /weather for a forecast by city name or lat/lon, /airquality for PM2.5/PM10 and AQI by city or point, /pdf to read a PDF as text, /time for time zones, /random for secure random numbers, UUIDs and passwords, /wikipedia to search Wikipedia in any language, /ip to see who owns an IP address (network, owner, country, hosting), /company for US company financials and SEC filings by ticker, POST /v1/chat/completions for an OpenAI-compatible chat model. Blockchain tools take ?chain= (base by default)."},"servers":[{"url":"https://pagetext.yashil.workers.dev"}],"paths":{"/extract":{"get":{"operationId":"extract","summary":"Web page to Markdown","description":"Web page to Markdown: fetch any public URL and return its main readable content as clean Markdown (reader mode), plus title, description and word count. Ideal for LLM context and RAG. Not charged if the page cannot be fetched.","tags":["web","scraping","markdown","extraction","url-to-markdown"],"parameters":[{"name":"url","in":"query","required":true,"description":"Absolute http(s) URL of a public web page","example":"https://example.com","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"finalUrl":{"type":"string"},"status":{"type":"number"},"contentType":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"markdown":{"type":"string"},"wordCount":{"type":"number"},"truncated":{"type":"boolean"}}},"example":{"url":"https://example.com","finalUrl":"https://example.com/","status":200,"contentType":"text/html","title":"Example Domain","description":"","markdown":"# Example Domain\n\nThis domain is for use in illustrative examples in documents. ...","wordCount":28,"truncated":false}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/meta":{"get":{"operationId":"meta","summary":"Website metadata / link preview","description":"Website metadata / link preview: title, description, Open Graph and Twitter card tags, canonical URL, language, favicon, image, author, published date, RSS feeds and H1/H2 headings of any public URL. Not charged on fetch errors.","tags":["web","metadata","seo","open-graph","link-preview"],"parameters":[{"name":"url","in":"query","required":true,"description":"Absolute http(s) URL of a public web page","example":"https://example.com","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"finalUrl":{"type":"string"},"status":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"canonical":{"type":"string"},"language":{"type":"string"},"siteName":{"type":"string"},"image":{"type":"string"},"favicon":{"type":"string"},"author":{"type":"string"},"publishedTime":{"type":"string"},"type":{"type":"string"},"twitterCard":{"type":"string"},"feeds":{"type":"array"},"headings":{"type":"object","properties":{"h1":{"type":"array","items":{"type":"string"}},"h2":{"type":"array"}}},"robots":{"type":"string"}}},"example":{"url":"https://example.com","finalUrl":"https://example.com/","status":200,"title":"Example Domain","description":"","canonical":"","language":"en","siteName":"","image":"","favicon":"https://example.com/favicon.ico","author":"","publishedTime":"","type":"","twitterCard":"","feeds":[],"headings":{"h1":["Example Domain"],"h2":[]},"robots":""}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/links":{"get":{"operationId":"links","summary":"Extract all links from a web page","description":"Extract all links from a web page: absolute URLs with anchor text, internal/external and nofollow flags, de-duplicated (up to 500). Useful for crawling, sitemaps and link audits. Not charged on fetch errors.","tags":["web","links","crawler","scraping","seo"],"parameters":[{"name":"url","in":"query","required":true,"description":"Absolute http(s) URL of a public web page","example":"https://example.com","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"finalUrl":{"type":"string"},"total":{"type":"number"},"returned":{"type":"number"},"internal":{"type":"number"},"external":{"type":"number"},"links":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"text":{"type":"string"},"internal":{"type":"boolean"},"nofollow":{"type":"boolean"}}}}}},"example":{"url":"https://example.com","finalUrl":"https://example.com/","total":1,"returned":1,"internal":0,"external":1,"links":[{"url":"https://www.iana.org/domains/example","text":"More information...","internal":false,"nofollow":false}]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/headers":{"get":{"operationId":"headers","summary":"Website security headers audit","description":"Website security headers audit: check any URL for HSTS, Content-Security-Policy, X-Frame-Options (clickjacking), X-Content-Type-Options, Referrer-Policy, Permissions-Policy, cookie flags and version leaks. Returns a grade (A+ to F), score and findings with fixes. Not charged on fetch errors.","tags":["security","http-headers","web","audit","hsts"],"parameters":[{"name":"url","in":"query","required":true,"description":"Website URL or domain, e.g. https://example.com or example.com","example":"https://example.com","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"finalUrl":{"type":"string"},"status":{"type":"number"},"grade":{"type":"string"},"score":{"type":"number"},"https":{"type":"boolean"},"findings":{"type":"array","items":{"type":"object","properties":{"header":{"type":"string"},"severity":{"type":"string"},"issue":{"type":"string"},"fix":{"type":"string"}}}},"headers":{"type":"object","properties":{"server":{"type":"string"}}},"cookies":{"type":"array"},"redirects":{"type":"array"}}},"example":{"url":"https://example.com","finalUrl":"https://example.com/","status":200,"grade":"C","score":55,"https":true,"findings":[{"header":"Strict-Transport-Security","severity":"high","issue":"Missing: browsers may be downgraded to HTTP.","fix":"Add: Strict-Transport-Security: max-age=31536000; includeSubDomains"}],"headers":{"server":"cloudflare"},"cookies":[],"redirects":[]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/up":{"get":{"operationId":"up","summary":"Is this website up? Uptime / status check for any URL","description":"Is this website up? Uptime / status check for any URL: reachable or down, HTTP status, response time in ms, redirect chain, final URL, HTTPS, server, and a plain reason when down (DNS, timeout, TLS, refused, 5xx). A down site is a valid answer.","tags":["uptime","monitoring","status","web","health-check"],"parameters":[{"name":"url","in":"query","required":true,"description":"Website URL or domain, e.g. https://example.com or example.com","example":"https://example.com","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"up":{"type":"boolean"},"status":{"type":"number"},"reason":{},"responseMs":{"type":"number"},"finalUrl":{"type":"string"},"https":{"type":"boolean"},"redirects":{"type":"array"},"server":{"type":"string"},"contentType":{"type":"string"},"checkedAt":{"type":"string"}}},"example":{"url":"https://example.com/","up":true,"status":200,"reason":null,"responseMs":84,"finalUrl":"https://example.com/","https":true,"redirects":[],"server":"cloudflare","contentType":"text/html","checkedAt":"2026-11-28T12:00:00.000Z"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/dns":{"get":{"operationId":"dns","summary":"DNS lookup","description":"DNS lookup: resolve A, AAAA, MX, TXT, NS, CNAME, SOA, SRV or CAA records for any domain over encrypted DNS (Cloudflare 1.1.1.1), with TTLs, status (NOERROR/NXDOMAIN) and DNSSEC validation flag.","tags":["dns","domain","network","mx","lookup"],"parameters":[{"name":"name","in":"query","required":true,"description":"Domain name, e.g. example.com","example":"example.com","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Record type (default A)","example":"MX","schema":{"type":"string","enum":["A","NS","CNAME","SOA","MX","TXT","AAAA","SRV","CAA"]}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"dnssecValidated":{"type":"boolean"},"answers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"ttl":{"type":"number"},"data":{"type":"string"}}}}}},"example":{"name":"example.com","type":"MX","status":"NOERROR","dnssecValidated":true,"answers":[{"name":"example.com","type":"MX","ttl":300,"data":"0 ."}]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/whois":{"get":{"operationId":"whois","summary":"Domain WHOIS (RDAP) lookup","description":"Domain WHOIS (RDAP) lookup: registrar, creation, update and expiry dates, status codes, nameservers and DNSSEC for any domain, from the official registry RDAP service.","tags":["whois","rdap","domain","registrar","expiry"],"parameters":[{"name":"domain","in":"query","required":true,"description":"Registered domain name, e.g. example.com","example":"example.com","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"registrar":{"type":"string"},"registrarIanaId":{"type":"string"},"created":{"type":"string"},"updated":{"type":"string"},"expires":{"type":"string"},"status":{"type":"array","items":{"type":"string"}},"nameservers":{"type":"array","items":{"type":"string"}},"dnssec":{"type":"boolean"},"source":{"type":"string"}}},"example":{"domain":"example.com","registrar":"RESERVED-Internet Assigned Numbers Authority","registrarIanaId":"376","created":"1995-08-14T04:00:00Z","updated":"2025-08-14T07:01:44Z","expires":"2026-08-13T04:00:00Z","status":["client delete prohibited"],"nameservers":["a.iana-servers.net","b.iana-servers.net"],"dnssec":true,"source":"https://rdap.verisign.com/com/v1/domain/example.com"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/fx":{"get":{"operationId":"fx","summary":"Currency exchange rates and conversion","description":"Currency exchange rates and conversion: latest official European Central Bank reference rates for ~30 fiat currencies (USD, EUR, GBP, JPY, SEK, ...). Convert an amount from one currency to one or more others.","tags":["currency","exchange-rate","fx","conversion","finance"],"parameters":[{"name":"from","in":"query","required":true,"description":"ISO 4217 code to convert from, e.g. USD","example":"USD","schema":{"type":"string"}},{"name":"to","in":"query","required":true,"description":"Comma-separated ISO 4217 codes, e.g. EUR,SEK","example":"EUR,SEK","schema":{"type":"string"}},{"name":"amount","in":"query","required":false,"description":"Amount to convert (default 1)","example":"100","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"amount":{"type":"number"},"date":{"type":"string"},"rates":{"type":"object","properties":{"EUR":{"type":"number"},"SEK":{"type":"number"}}},"converted":{"type":"object","properties":{"EUR":{"type":"number"},"SEK":{"type":"number"}}},"source":{"type":"string"}}},"example":{"from":"USD","amount":100,"date":"2026-11-25","rates":{"EUR":0.91449,"SEK":10.2775},"converted":{"EUR":91.449,"SEK":1027.75},"source":"European Central Bank reference rates (via Frankfurter)"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/balance":{"get":{"operationId":"balance","summary":"Wallet balance","description":"Wallet balance: native coin balance plus USDC/USDT (or any ERC-20 tokens you list) for an address on Base, Ethereum, Arbitrum One, OP Mainnet, Polygon PoS, BNB Smart Chain, Avalanche C-Chain. Also returns nonce (transaction count) and whether the address is a contract.","tags":["blockchain","wallet","balance","usdc","erc20"],"parameters":[{"name":"address","in":"query","required":true,"description":"Wallet or contract address (0x...)","example":"0x81a7031258011929544B25983c803F1D21DA673f","schema":{"type":"string"}},{"name":"chain","in":"query","required":false,"description":"Chain (default base)","example":"base","schema":{"type":"string","enum":["base","ethereum","arbitrum","optimism","polygon","bsc","avalanche"]}},{"name":"tokens","in":"query","required":false,"description":"Comma-separated token contracts or shortcuts usdc,usdt (default: the chain's USDC/USDT)","example":"usdc","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string"},"chain":{"type":"string"},"chainId":{"type":"number"},"block":{"type":"number"},"isContract":{"type":"boolean"},"nonce":{"type":"number"},"native":{"type":"object","properties":{"symbol":{"type":"string"},"balance":{"type":"string"},"raw":{"type":"string"}}},"tokens":{"type":"array","items":{"type":"object","properties":{"token":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"number"},"balance":{"type":"string"},"raw":{"type":"string"}}}}}},"example":{"address":"0x81a7031258011929544B25983c803F1D21DA673f","chain":"base","chainId":8453,"block":38912345,"isContract":false,"nonce":12,"native":{"symbol":"ETH","balance":"0.0021","raw":"2100000000000000"},"tokens":[{"token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","decimals":6,"balance":"4.25","raw":"4250000"}]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/token":{"get":{"operationId":"token","summary":"ERC-20 token info","description":"ERC-20 token info: name, symbol, decimals and total supply of any token contract on Base, Ethereum, Arbitrum One, OP Mainnet, Polygon PoS, BNB Smart Chain, Avalanche C-Chain.","tags":["blockchain","token","erc20","metadata","evm"],"parameters":[{"name":"address","in":"query","required":true,"description":"Token contract address (0x...)","example":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","schema":{"type":"string"}},{"name":"chain","in":"query","required":false,"description":"Chain (default base)","example":"base","schema":{"type":"string","enum":["base","ethereum","arbitrum","optimism","polygon","bsc","avalanche"]}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"chain":{"type":"string"},"chainId":{"type":"number"},"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"number"},"totalSupply":{"type":"string"},"totalSupplyRaw":{"type":"string"}}},"example":{"token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chain":"base","chainId":8453,"name":"USD Coin","symbol":"USDC","decimals":6,"totalSupply":"4012345678.123456","totalSupplyRaw":"4012345678123456"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/tx":{"get":{"operationId":"tx","summary":"Transaction status and details on Base, Ethereum, Arbitrum One, OP Mainnet, Polygon PoS, BNB Smart Chain, Avalanche C-Chain","description":"Transaction status and details on Base, Ethereum, Arbitrum One, OP Mainnet, Polygon PoS, BNB Smart Chain, Avalanche C-Chain: success/failed/pending, block, time, confirmations, from/to, value, fee, and decoded ERC-20/NFT token transfers with symbols and amounts. Use it to verify a payment.","tags":["blockchain","transaction","receipt","payment-verification","evm"],"parameters":[{"name":"hash","in":"query","required":true,"description":"Transaction hash (0x + 64 hex digits)","example":"0x9220916148a23320e20972f871fd0f398293331f4d5a2694ecbb016b06ca6ba4","schema":{"type":"string"}},{"name":"chain","in":"query","required":false,"description":"Chain (default base)","example":"base","schema":{"type":"string","enum":["base","ethereum","arbitrum","optimism","polygon","bsc","avalanche"]}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"hash":{"type":"string"},"chain":{"type":"string"},"chainId":{"type":"number"},"from":{"type":"string"},"to":{"type":"string"},"value":{"type":"string"},"valueRaw":{"type":"string"},"nativeSymbol":{"type":"string"},"nonce":{"type":"number"},"status":{"type":"string"},"blockNumber":{"type":"number"},"timestamp":{"type":"string"},"confirmations":{"type":"number"},"contractCreated":{},"gasUsed":{"type":"string"},"effectiveGasPriceGwei":{"type":"string"},"fee":{"type":"string"},"logCount":{"type":"number"},"tokenTransfers":{"type":"array","items":{"type":"object","properties":{"standard":{"type":"string"},"token":{"type":"string"},"symbol":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"string"},"raw":{"type":"string"}}}}}},"example":{"hash":"0x9220916148a23320e20972f871fd0f398293331f4d5a2694ecbb016b06ca6ba4","chain":"base","chainId":8453,"from":"0x67B9CE703d9ce658d7C4ac3c289cEa112fE662Af","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","value":"0","valueRaw":"0","nativeSymbol":"ETH","nonce":3754745,"status":"success","blockNumber":63057623,"timestamp":"2026-11-27T17:51:40.000Z","confirmations":1534,"contractCreated":null,"gasUsed":"86262","effectiveGasPriceGwei":"0.01","fee":"0.000000869449602025","logCount":2,"tokenTransfers":[{"standard":"ERC-20","token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","from":"0x6ea154ecb4B8B9AB2429674E146C5DED20BB68b6","to":"0x81a7031258011929544B25983c803F1D21DA673f","amount":"0.001","raw":"1000"}]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/gas":{"get":{"operationId":"gas","summary":"Live gas prices across chains in one call","description":"Live gas prices across chains in one call: gas price, base fee and priority fee (gwei), latest block, and the cost of a plain transfer, for Base, Ethereum, Arbitrum One, OP Mainnet, Polygon PoS, BNB Smart Chain, Avalanche C-Chain.","tags":["blockchain","gas","gas-price","fees","multichain"],"parameters":[{"name":"chains","in":"query","required":false,"description":"Comma-separated chains (default all: base,ethereum,arbitrum,optimism,polygon,bsc,avalanche)","example":"base,ethereum","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"string"},"chains":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string"},"chainId":{"type":"number"},"nativeSymbol":{"type":"string"},"gasPriceGwei":{"type":"string"},"baseFeeGwei":{"type":"string"},"priorityFeeGwei":{"type":"string"},"block":{"type":"number"},"blockTime":{"type":"string"},"nativeTransferCost":{"type":"string"}}}}}},"example":{"updated":"2026-11-27T12:00:00.000Z","chains":[{"chain":"base","chainId":8453,"nativeSymbol":"ETH","gasPriceGwei":"0.006","baseFeeGwei":"0.005","priorityFeeGwei":"0.001","block":38912345,"blockTime":"2026-11-27T11:59:59.000Z","nativeTransferCost":"0.000000126"}]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/ens":{"get":{"operationId":"ens","summary":"ENS and Basenames lookup","description":"ENS and Basenames lookup: resolve a name (vitalik.eth, jesse.base.eth) to its address, or an address to its verified primary ENS name and Basename.","tags":["blockchain","ens","basenames","name-resolution","reverse-lookup"],"parameters":[{"name":"name","in":"query","required":false,"description":"Name to resolve, e.g. vitalik.eth or jesse.base.eth","example":"vitalik.eth","schema":{"type":"string"}},{"name":"address","in":"query","required":false,"description":"Or: address (0x...) to find its primary names","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"},"resolver":{"type":"string"},"resolvedOn":{"type":"string"},"type":{"type":"string"}}},"example":{"name":"vitalik.eth","address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","resolver":"0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63","resolvedOn":"ethereum","type":"ens"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/summarize":{"get":{"operationId":"summarize","summary":"AI summary of any public web page","description":"AI summary of any public web page: fetches the URL, extracts the readable text and returns a concise Markdown summary (short, medium or long) in the page's language. Not charged on fetch or AI errors.","tags":["ai","summarize","summary","web","llm"],"parameters":[{"name":"url","in":"query","required":true,"description":"Absolute http(s) URL of a public web page","example":"https://example.com","schema":{"type":"string"}},{"name":"length","in":"query","required":false,"description":"Summary length (default medium)","example":"short","schema":{"type":"string","enum":["short","medium","long"]}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"finalUrl":{"type":"string"},"title":{"type":"string"},"length":{"type":"string"},"summary":{"type":"string"},"truncatedInput":{"type":"boolean"},"model":{"type":"string"}}},"example":{"url":"https://example.com","finalUrl":"https://example.com/","title":"Example Domain","length":"short","summary":"Example Domain is a reserved page meant for use as an example in documents and tutorials.","truncatedInput":false,"model":"@cf/google/gemma-4-26b-a4b-it"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/ask":{"get":{"operationId":"ask","summary":"Ask a question about a web page","description":"Ask a question about a web page: fetches the URL and answers from the page content only (answer is null when the page does not say). Good for pulling one fact out of a page. Not charged on fetch or AI errors.","tags":["ai","question-answering","web","llm","extraction"],"parameters":[{"name":"url","in":"query","required":true,"description":"Absolute http(s) URL of a public web page","example":"https://example.com","schema":{"type":"string"}},{"name":"question","in":"query","required":true,"description":"Question about the page (max 500 characters)","example":"What is this domain for?","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"finalUrl":{"type":"string"},"question":{"type":"string"},"answer":{"type":"string"},"found":{"type":"boolean"},"model":{"type":"string"}}},"example":{"url":"https://example.com","finalUrl":"https://example.com/","question":"What is this domain for?","answer":"It is for use in illustrative examples in documents.","found":true,"model":"@cf/google/gemma-4-26b-a4b-it"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/translate":{"get":{"operationId":"translate","summary":"AI translation of text into any language (Swedish, German, Spanish, Chinese, Persian, ...), keeping meaning, tone, names, numbers and formatting. Up to 4000 characters per call.","description":"AI translation of text into any language (Swedish, German, Spanish, Chinese, Persian, ...), keeping meaning, tone, names, numbers and formatting. Up to 4000 characters per call.","tags":["ai","translation","translate","language","llm"],"parameters":[{"name":"text","in":"query","required":true,"description":"Text to translate (max 4000 characters)","example":"Hello, how are you?","schema":{"type":"string"}},{"name":"to","in":"query","required":true,"description":"Target language name or code, e.g. Swedish or sv","example":"Swedish","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string"},"translation":{"type":"string"},"characters":{"type":"number"},"model":{"type":"string"}}},"example":{"to":"Swedish","translation":"Hej, hur mår du?","characters":19,"model":"@cf/google/gemma-4-26b-a4b-it"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/chat":{"get":{"operationId":"chat","summary":"One-shot AI chat completion (Google Gemma 4 26B)","description":"One-shot AI chat completion (Google Gemma 4 26B): send a prompt and optional system instruction, get the answer. Up to 2000 characters in and about 800 tokens out.","tags":["ai","llm","chat","completion","inference"],"parameters":[{"name":"prompt","in":"query","required":true,"description":"Your prompt (max 2000 characters)","example":"Write a haiku about the sea.","schema":{"type":"string"}},{"name":"system","in":"query","required":false,"description":"Optional system instruction (max 500 characters)","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"answer":{"type":"string"},"model":{"type":"string"},"usage":{"type":"object","properties":{"input":{"type":"number"},"output":{"type":"number"}}}}},"example":{"answer":"Waves fold into foam / ...","model":"@cf/google/gemma-4-26b-a4b-it","usage":{"input":18,"output":17}}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/v1/chat/completions":{"post":{"operationId":"v1/chat/completions","summary":"OpenAI-compatible chat completions API (POST /v1/chat/completions)","description":"OpenAI-compatible chat completions API (POST /v1/chat/completions): send messages, get the assistant reply in the standard OpenAI format, stream or not. Model: Google Gemma 4 26B. Up to 32,000 characters in and 2,048 tokens out per request. Works with any OpenAI client by setting the base URL. Errors are not charged.","tags":["llm","chat-completions","openai-compatible","inference","ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["messages"],"properties":{"model":{"type":"string","description":"Optional; \"gemma-4-26b\" (the only model)"},"messages":{"type":"array","description":"Chat messages: [{role: system|user|assistant, content: text}]"},"max_tokens":{"type":"integer","description":"Max tokens in the reply, 1-2048 (default 1024)"},"temperature":{"type":"number","description":"0 to 2 (default 0.7)"},"stream":{"type":"boolean","description":"true = OpenAI server-sent events"}}},"example":{"model":"gemma-4-26b","messages":[{"role":"user","content":"Write a haiku about the sea."}],"max_tokens":200}}}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"created":{"type":"number"},"model":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"number"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}},"finish_reason":{"type":"string"},"logprobs":{}}}},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"number"},"completion_tokens":{"type":"number"},"total_tokens":{"type":"number"}}}}},"example":{"id":"chatcmpl-1a2b3c","object":"chat.completion","created":1795900000,"model":"gemma-4-26b","choices":[{"index":0,"message":{"role":"assistant","content":"Waves fold into foam / ..."},"finish_reason":"stop","logprobs":null}],"usage":{"prompt_tokens":18,"completion_tokens":17,"total_tokens":35}}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/image":{"get":{"operationId":"image","summary":"AI image generation from a text prompt (FLUX.1 schnell, 1024x1024 JPEG returned as a base64 data URL). Sexual or graphic prompts are refused and not charged.","description":"AI image generation from a text prompt (FLUX.1 schnell, 1024x1024 JPEG returned as a base64 data URL). Sexual or graphic prompts are refused and not charged.","tags":["ai","image-generation","text-to-image","flux","image"],"parameters":[{"name":"prompt","in":"query","required":true,"description":"Image description (max 1000 characters)","example":"a red fox in the snow, watercolor","schema":{"type":"string"}},{"name":"steps","in":"query","required":false,"description":"Diffusion steps 1-8 (default 4; more = finer detail)","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string"},"mimeType":{"type":"string"},"image":{"type":"string"},"bytes":{"type":"number"},"model":{"type":"string"}}},"example":{"prompt":"a red fox in the snow, watercolor","mimeType":"image/jpeg","image":"data:image/jpeg;base64,/9j/4AAQ...","bytes":98304,"model":"@cf/black-forest-labs/flux-1-schnell"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/price":{"get":{"operationId":"price","summary":"Crypto and gold/silver prices in USD from Chainlink oracle price feeds, read on-chain","description":"Crypto and gold/silver prices in USD from Chainlink oracle price feeds, read on-chain: BTC, ETH, SOL, BNB, USDC, USDT, LINK, AVAX, UNI, AAVE, ARB and more, up to 25 per call, with each feed's last update time.","tags":["crypto","price","oracle","chainlink","market-data"],"parameters":[{"name":"coins","in":"query","required":true,"description":"Comma-separated symbols (max 25): btc, eth, sol, bnb, usdc, usdt, dai, link, avax, matic, uni, aave, arb, steth, crv, mkr, comp, snx, ape, sand, grt, 1inch, bal, yfi, sushi, rpl, ens, xau, xag","example":"btc,eth,sol","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string"},"prices":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"priceUsd":{"type":"number"},"updated":{"type":"string"},"ageMinutes":{"type":"number"},"feed":{"type":"string"}}}},"unavailable":{"type":"array"},"source":{"type":"string"}}},"example":{"currency":"USD","prices":[{"symbol":"BTC","priceUsd":59473.76815657,"updated":"2026-11-28T10:07:35.000Z","ageMinutes":12,"feed":"0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c"},{"symbol":"ETH","priceUsd":1650.84,"updated":"2026-11-28T10:14:11.000Z","ageMinutes":5,"feed":"0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419"}],"unavailable":[],"source":"Chainlink price feeds on Ethereum (read on-chain)"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/tokenprice":{"get":{"operationId":"tokenprice","summary":"Price of any ERC-20 token by contract address, read on-chain from DEX pools (Uniswap v3 on Base, Ethereum, Arbitrum, OP, Polygon; Aerodrome on Base)","description":"Price of any ERC-20 token by contract address, read on-chain from DEX pools (Uniswap v3 on Base, Ethereum, Arbitrum, OP, Polygon; Aerodrome on Base): USD price, deepest pool, its liquidity, and other pools. Read-only.","tags":["token","price","dex","defi","onchain"],"parameters":[{"name":"token","in":"query","required":true,"description":"Token contract address (0x...)","example":"0x940181a94A35A4569E4529A3CDfB74e38FD98631","schema":{"type":"string"}},{"name":"chain","in":"query","required":false,"description":"Chain (default base)","example":"base","schema":{"type":"string","enum":["base","ethereum","arbitrum","optimism","polygon"]}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"chain":{"type":"string"},"chainId":{"type":"number"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"priceUsd":{"type":"number"},"source":{"type":"object","properties":{"dex":{"type":"string"},"pool":{"type":"string"},"fee":{},"quoteToken":{"type":"string"},"approxLiquidityUsd":{"type":"number"}}},"lowLiquidity":{"type":"boolean"},"pools":{"type":"array","items":{"type":"object","properties":{"dex":{"type":"string"},"pool":{"type":"string"},"fee":{},"quoteToken":{"type":"string"},"priceUsd":{"type":"number"},"approxLiquidityUsd":{"type":"number"}}}},"wethUsd":{"type":"number"},"note":{"type":"string"}}},"example":{"token":"0x940181a94A35A4569E4529A3CDfB74e38FD98631","chain":"base","chainId":8453,"symbol":"AERO","name":"Aerodrome","decimals":18,"priceUsd":0.379204,"source":{"dex":"aerodrome-v2","pool":"0x6cDcb1C4A4D1C3C6d054b27AC5B77e89eAFb971d","fee":null,"quoteToken":"USDC","approxLiquidityUsd":3120427},"lowLiquidity":false,"pools":[{"dex":"aerodrome-v2","pool":"0x6cDcb1C4A4D1C3C6d054b27AC5B77e89eAFb971d","fee":null,"quoteToken":"USDC","priceUsd":0.379204,"approxLiquidityUsd":3120427}],"wethUsd":1646,"note":"Spot price from the deepest pool. Liquidity is approximate (2 x the USDC/WETH side). Low-liquidity prices are easy to move."}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/quote":{"get":{"operationId":"quote","summary":"DEX swap quote","description":"DEX swap quote: how much of token B you would get for an amount of token A, best route over Uniswap v3 (direct or via WETH) and Aerodrome, with alternatives and gas estimate. Quote only, nothing is traded.","tags":["quote","swap","dex","defi","token"],"parameters":[{"name":"from","in":"query","required":true,"description":"Token to sell: contract address, or eth/weth/usdc","example":"usdc","schema":{"type":"string"}},{"name":"to","in":"query","required":true,"description":"Token to receive: contract address, or eth/weth/usdc","example":"0x940181a94A35A4569E4529A3CDfB74e38FD98631","schema":{"type":"string"}},{"name":"amount","in":"query","required":true,"description":"Amount of the from token, e.g. 100 or 0.5","example":"100","schema":{"type":"string"}},{"name":"chain","in":"query","required":false,"description":"Chain (default base)","example":"base","schema":{"type":"string","enum":["base","ethereum","arbitrum","optimism","polygon"]}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"chainId":{"type":"number"},"from":{"type":"object","properties":{"token":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"number"}}},"to":{"type":"object","properties":{"token":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"number"}}},"amountIn":{"type":"string"},"amountOut":{"type":"string"},"price":{"type":"number"},"priceUnit":{"type":"string"},"best":{"type":"object","properties":{"dex":{"type":"string"},"route":{"type":"array","items":{"type":"string"}},"fees":{"type":"array","items":{"type":"string"}},"amountOut":{"type":"string"},"gasEstimate":{}}},"alternatives":{"type":"array"},"note":{"type":"string"}}},"example":{"chain":"base","chainId":8453,"from":{"token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","decimals":6},"to":{"token":"0x940181a94A35A4569E4529A3CDfB74e38FD98631","symbol":"AERO","decimals":18},"amountIn":"100","amountOut":"263.046679518912509307","price":2.63047,"priceUnit":"AERO per USDC","best":{"dex":"uniswap-v3","route":["USDC","WETH","AERO"],"fees":["0.05%","0.3%"],"amountOut":"263.046679518912509307","gasEstimate":null},"alternatives":[],"note":"Quote only: nothing is traded. A real swap also pays network gas, and the result can differ if prices move (slippage)."}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/weather":{"get":{"operationId":"weather","summary":"Weather forecast by city name or coordinates","description":"Weather forecast by city name or coordinates: current temperature, conditions, wind, humidity, pressure and precipitation, plus an hourly forecast for the next 24 hours and daily min/max temperature and precipitation for about 9 days. Any place on Earth. Data from MET Norway (CC BY 4.0).","tags":["weather","forecast","temperature","climate","geo"],"parameters":[{"name":"city","in":"query","required":false,"description":"City or place name, e.g. London or Paris (use instead of lat/lon)","example":"London","schema":{"type":"string"}},{"name":"country","in":"query","required":false,"description":"Optional 2-letter country code to pick the right city, e.g. GB, US, FR","schema":{"type":"string"}},{"name":"lat","in":"query","required":false,"description":"Latitude, -90 to 90 (e.g. 51.51); use with lon instead of city","schema":{"type":"string"}},{"name":"lon","in":"query","required":false,"description":"Longitude, -180 to 180 (e.g. -0.13); use with lat instead of city","schema":{"type":"string"}},{"name":"hours","in":"query","required":false,"description":"Hourly steps to return, 0-48 (default 24)","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"place":{"type":"object","properties":{"name":{"type":"string"},"country":{"type":"string"},"countryCode":{"type":"string"},"region":{"type":"string"},"lat":{"type":"number"},"lon":{"type":"number"}}},"location":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"},"altitudeM":{"type":"number"}}},"updated":{"type":"string"},"current":{"type":"object","properties":{"time":{"type":"string"},"temperatureC":{"type":"number"},"windSpeedMs":{"type":"number"},"windDirectionDeg":{"type":"number"},"humidityPct":{"type":"number"},"pressureHpa":{"type":"number"},"cloudPct":{"type":"number"},"symbol":{"type":"string"},"precipitationMm":{"type":"number"},"precipitationPeriodHours":{"type":"number"}}},"hourly":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string"},"temperatureC":{"type":"number"},"windSpeedMs":{"type":"number"},"symbol":{"type":"string"},"precipitationMm":{"type":"number"}}}},"daily":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"minC":{"type":"number"},"maxC":{"type":"number"},"precipitationMm":{"type":"number"},"symbol":{"type":"string"}}}},"units":{"type":"object","properties":{"temperature":{"type":"string"},"wind":{"type":"string"},"precipitation":{"type":"string"},"pressure":{"type":"string"}}},"attribution":{"type":"string"}}},"example":{"place":{"name":"London","country":"United Kingdom","countryCode":"GB","region":"England","lat":51.509,"lon":-0.126},"location":{"lat":59.33,"lon":18.07,"altitudeM":23},"updated":"2026-11-28T09:28:56Z","current":{"time":"2026-11-28T10:00:00Z","temperatureC":0.9,"windSpeedMs":2.8,"windDirectionDeg":195,"humidityPct":71.3,"pressureHpa":1041.1,"cloudPct":99.4,"symbol":"cloudy","precipitationMm":0,"precipitationPeriodHours":1},"hourly":[{"time":"2026-11-28T10:00:00Z","temperatureC":0.9,"windSpeedMs":2.8,"symbol":"cloudy","precipitationMm":0}],"daily":[{"date":"2026-11-28","minC":-1.2,"maxC":2.1,"precipitationMm":0.3,"symbol":"cloudy"}],"units":{"temperature":"°C","wind":"m/s","precipitation":"mm","pressure":"hPa"},"attribution":"Data from MET Norway (api.met.no), licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); summarised by PageText; Place data from GeoNames (https://www.geonames.org), licensed CC BY 4.0"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/airquality":{"get":{"operationId":"airquality","summary":"Air quality by city name or coordinates","description":"Air quality by city name or coordinates: current PM2.5 and PM10 (median of nearby outdoor sensors), US AQI with category, and European Air Quality Index level. Best coverage in Europe. Data from Sensor.Community citizen sensors.","tags":["air-quality","pollution","pm2.5","aqi","environment"],"parameters":[{"name":"city","in":"query","required":false,"description":"City or place name, e.g. Berlin (use instead of lat/lon)","example":"Berlin","schema":{"type":"string"}},{"name":"country","in":"query","required":false,"description":"Optional 2-letter country code to pick the right city, e.g. DE","schema":{"type":"string"}},{"name":"lat","in":"query","required":false,"description":"Latitude, -90 to 90 (e.g. 52.52); use with lon instead of city","schema":{"type":"string"}},{"name":"lon","in":"query","required":false,"description":"Longitude, -180 to 180 (e.g. 13.40); use with lat instead of city","schema":{"type":"string"}},{"name":"radius","in":"query","required":false,"description":"Search radius in km, 1-30 (default 10)","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"place":{"type":"object","properties":{"name":{"type":"string"},"country":{"type":"string"},"countryCode":{"type":"string"},"region":{"type":"string"},"lat":{"type":"number"},"lon":{"type":"number"}}},"location":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"}}},"radiusKm":{"type":"number"},"pm25":{"type":"number"},"pm10":{"type":"number"},"units":{"type":"string"},"usAqi":{"type":"object","properties":{"value":{"type":"number"},"category":{"type":"string"},"dominant":{"type":"string"}}},"europeanAqi":{"type":"object","properties":{"level":{"type":"number"},"label":{"type":"string"}}},"sensorsUsed":{"type":"number"},"range":{"type":"object","properties":{"pm25":{"type":"array","items":{"type":"number"}},"pm10":{"type":"array","items":{"type":"number"}}}},"nearestSensorKm":{"type":"number"},"newestReading":{"type":"string"},"sensors":{"type":"array","items":{"type":"object","properties":{"sensorId":{"type":"number"},"type":{"type":"string"},"lat":{"type":"number"},"lon":{"type":"number"},"distanceKm":{"type":"number"},"pm25":{"type":"number"},"pm10":{"type":"number"},"time":{"type":"string"}}}},"note":{"type":"string"},"attribution":{"type":"string"}}},"example":{"place":{"name":"Berlin","country":"Germany","countryCode":"DE","region":"Land Berlin","lat":52.524,"lon":13.411},"location":{"lat":52.524,"lon":13.411},"radiusKm":10,"pm25":6.2,"pm10":11.4,"units":"µg/m³","usAqi":{"value":34,"category":"Good","dominant":"pm25"},"europeanAqi":{"level":2,"label":"Fair"},"sensorsUsed":38,"range":{"pm25":[2.1,14.8],"pm10":[4.3,27.9]},"nearestSensorKm":0.41,"newestReading":"2026-11-28T11:33:19.000Z","sensors":[{"sensorId":14294,"type":"SDS011","lat":52.521,"lon":13.405,"distanceKm":0.41,"pm25":5.9,"pm10":10.7,"time":"2026-11-28T11:33:19.000Z"}],"note":"Low-cost citizen sensors (uncalibrated) and current readings, not official 24-hour averages; AQI values are an instant estimate.","attribution":"Data: Sensor.Community (https://sensor.community), Database Contents License 1.0"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/time":{"get":{"operationId":"time","summary":"Current time (or any given moment) in up to 20 IANA time zones","description":"Current time (or any given moment) in up to 20 IANA time zones: local date and time, weekday, UTC offset, abbreviation and daylight-saving status. Also converts a timestamp between zones and to Unix time.","tags":["time","timezone","clock","datetime","utility"],"parameters":[{"name":"tz","in":"query","required":false,"description":"Comma-separated IANA zones (default UTC), e.g. Europe/Stockholm,America/New_York","example":"Europe/Stockholm,America/New_York,Asia/Tokyo","schema":{"type":"string"}},{"name":"at","in":"query","required":false,"description":"Optional moment: ISO 8601 (no offset = UTC) or Unix seconds; default now","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"utc":{"type":"string"},"unix":{"type":"number"},"zones":{"type":"array","items":{"type":"object","properties":{"timeZone":{"type":"string"},"local":{"type":"string"},"date":{"type":"string"},"time":{"type":"string"},"weekday":{"type":"string"},"utcOffset":{"type":"string"},"utcOffsetMinutes":{"type":"number"},"abbreviation":{"type":"string"},"dst":{"type":"boolean"},"observesDst":{"type":"boolean"}}}}}},"example":{"utc":"2026-11-28T09:30:00Z","unix":1795858200,"zones":[{"timeZone":"Europe/Stockholm","local":"2026-11-28T10:30:00+01:00","date":"2026-11-28","time":"10:30:00","weekday":"Saturday","utcOffset":"+01:00","utcOffsetMinutes":60,"abbreviation":"GMT+1","dst":false,"observesDst":true}]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/random":{"get":{"operationId":"random","summary":"Cryptographically secure random values","description":"Cryptographically secure random values: integers in a range, floats, UUIDs, hex tokens, coin flips, dice, random picks from a list, list shuffles, or strong passwords. Up to 100 values per call.","tags":["random","rng","uuid","password","utility"],"parameters":[{"name":"type","in":"query","required":false,"description":"What to generate (default int)","example":"int","schema":{"type":"string","enum":["int","float","uuid","hex","coin","dice","pick","shuffle","password"]}},{"name":"min","in":"query","required":false,"description":"int: lowest value (default 1)","example":"1","schema":{"type":"string"}},{"name":"max","in":"query","required":false,"description":"int: highest value (default 100); dice: number of sides (default 6)","example":"100","schema":{"type":"string"}},{"name":"count","in":"query","required":false,"description":"How many values, 1-100 (default 1)","example":"5","schema":{"type":"string"}},{"name":"items","in":"query","required":false,"description":"pick/shuffle: comma-separated list (max 200 items)","schema":{"type":"string"}},{"name":"length","in":"query","required":false,"description":"hex: bytes (default 32); password: characters 8-128 (default 20)","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"values":{"type":"array","items":{"type":"number"}}}},"example":{"type":"int","source":"Web Crypto getRandomValues (CSPRNG)","min":1,"max":100,"values":[97,44,68,3,51]}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/pdf":{"get":{"operationId":"pdf","summary":"PDF to text","description":"PDF to text: fetch a public PDF by URL (up to 8 MB) and return its full text as Markdown, with page metadata, ready for LLM context or RAG. Not charged if the file cannot be fetched or read.","tags":["pdf","pdf-to-text","document","extraction","markdown"],"parameters":[{"name":"url","in":"query","required":true,"description":"Absolute http(s) URL of a public PDF file","example":"https://pdfobject.com/pdf/sample.pdf","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"finalUrl":{"type":"string"},"bytes":{"type":"number"},"markdown":{"type":"string"},"characters":{"type":"number"},"truncated":{"type":"boolean"}}},"example":{"url":"https://pdfobject.com/pdf/sample.pdf","finalUrl":"https://pdfobject.com/pdf/sample.pdf","bytes":18810,"markdown":"# sample.pdf\n\n## Metadata\n- PDFFormatVersion=1.3\n- Title=sample\n...\n\n## Contents\n### Page 1\n...","characters":3219,"truncated":false}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/company":{"get":{"operationId":"company","summary":"US company financials from SEC filings, by stock ticker or CIK","description":"US company financials from SEC filings, by stock ticker or CIK: company details (exchange, industry, fiscal year end), latest annual and quarterly revenue, net income, operating income and diluted EPS, latest balance sheet (assets, liabilities, equity, cash), shares outstanding, and the newest 10-K, 10-Q and 8-K filings with links. Good for stock research and company due diligence. Data: SEC EDGAR (public domain). Not charged for unknown tickers.","tags":["stocks","company","financials","sec","earnings"],"parameters":[{"name":"ticker","in":"query","required":false,"description":"US stock ticker, e.g. AAPL, MSFT or BRK.B","example":"AAPL","schema":{"type":"string"}},{"name":"cik","in":"query","required":false,"description":"SEC CIK number instead of a ticker, e.g. 320193","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ticker":{"type":"string"},"cik":{"type":"number"},"name":{"type":"string"},"tickers":{"type":"array","items":{"type":"string"}},"exchanges":{"type":"array","items":{"type":"string"}},"industry":{"type":"string"},"sic":{"type":"string"},"entityType":{"type":"string"},"stateOfIncorporation":{"type":"string"},"fiscalYearEnd":{"type":"string"},"currency":{"type":"string"},"annual":{"type":"object","properties":{"periodStart":{"type":"string"},"periodEnd":{"type":"string"},"fiscalYear":{"type":"number"},"fiscalPeriod":{"type":"string"},"form":{"type":"string"},"filed":{"type":"string"},"revenue":{"type":"number"},"netIncome":{"type":"number"},"operatingIncome":{"type":"number"},"epsDiluted":{"type":"number"}}},"latestQuarter":{"type":"object","properties":{"periodStart":{"type":"string"},"periodEnd":{"type":"string"},"fiscalYear":{"type":"number"},"fiscalPeriod":{"type":"string"},"form":{"type":"string"},"filed":{"type":"string"},"revenue":{"type":"number"},"netIncome":{"type":"number"},"operatingIncome":{"type":"number"},"epsDiluted":{"type":"number"}}},"balanceSheet":{"type":"object","properties":{"asOf":{"type":"string"},"form":{"type":"string"},"filed":{"type":"string"},"assets":{"type":"number"},"liabilities":{"type":"number"},"equity":{"type":"number"},"cash":{"type":"number"}}},"sharesOutstanding":{"type":"object","properties":{"value":{"type":"number"},"asOf":{"type":"string"}}},"note":{},"recentFilings":{"type":"array","items":{"type":"object","properties":{"form":{"type":"string"},"filed":{"type":"string"},"reportDate":{"type":"string"},"description":{"type":["string","null"]},"url":{"type":"string"}}}},"edgarUrl":{"type":"string"},"attribution":{"type":"string"}}},"example":{"ticker":"AAPL","cik":320193,"name":"Apple Inc.","tickers":["AAPL"],"exchanges":["Nasdaq"],"industry":"Electronic Computers","sic":"3571","entityType":"operating","stateOfIncorporation":"CA","fiscalYearEnd":"09-25","currency":"USD","annual":{"periodStart":"2025-09-28","periodEnd":"2026-09-26","fiscalYear":2026,"fiscalPeriod":"FY","form":"10-K","filed":"2026-11-03","revenue":478834000000,"netIncome":132175000000,"operatingIncome":158063000000,"epsDiluted":8.98},"latestQuarter":{"periodStart":"2026-03-29","periodEnd":"2026-06-27","fiscalYear":2026,"fiscalPeriod":"Q3","form":"10-Q","filed":"2026-07-31","revenue":109417000000,"netIncome":29789000000,"operatingIncome":35695000000,"epsDiluted":2.02},"balanceSheet":{"asOf":"2026-09-26","form":"10-K","filed":"2026-11-03","assets":404548000000,"liabilities":292455000000,"equity":112093000000,"cash":36305000000},"sharesOutstanding":{"value":14532182000,"asOf":"2026-10-23"},"note":null,"recentFilings":[{"form":"8-K","filed":"2026-11-09","reportDate":"2026-11-05","description":null,"url":"https://www.sec.gov/Archives/edgar/data/320193/000114036126042798/ef20085077_8k.htm"},{"form":"10-K","filed":"2026-11-03","reportDate":"2026-09-26","description":"10-K","url":"https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/aapl-20260926.htm"}],"edgarUrl":"https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000320193","attribution":"Data from SEC EDGAR (U.S. Securities and Exchange Commission), public domain. Figures as reported in XBRL filings."}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/ip":{"get":{"operationId":"ip","summary":"IP ownership lookup","description":"IP ownership lookup: for any IPv4 or IPv6 address, the network (AS number and name) that announces it, the owning organisation, country, the routed range with CIDR blocks, and whether it looks like cloud or hosting (AWS, Google, Azure, Cloudflare, Hetzner and more) rather than a home or mobile ISP. Private and reserved addresses are labelled. Good for abuse, fraud and log triage.","tags":["ip","asn","ip-lookup","network","security"],"parameters":[{"name":"ip","in":"query","required":true,"description":"IPv4 or IPv6 address, e.g. 8.8.8.8 or 2606:4700:4700::1111","example":"8.8.8.8","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ip":{"type":"string"},"version":{"type":"number"},"routed":{"type":"boolean"},"special":{},"network":{"type":"object","properties":{"start":{"type":"string"},"end":{"type":"string"},"cidrs":{"type":"array","items":{"type":"string"}}}},"asn":{"type":"number"},"asName":{"type":"string"},"owner":{"type":"string"},"country":{"type":"string"},"hosting":{"type":"object","properties":{"likely":{"type":"boolean"},"provider":{"type":"string"},"basis":{"type":"string"}}},"dataUpdated":{"type":"string"},"attribution":{"type":"string"}}},"example":{"ip":"8.8.8.8","version":4,"routed":true,"special":null,"network":{"start":"8.8.8.0","end":"8.8.8.255","cidrs":["8.8.8.0/24"]},"asn":15169,"asName":"GOOGLE","owner":"Google LLC","country":"US","hosting":{"likely":true,"provider":"Google","basis":"known cloud or hosting network"},"dataUpdated":"Sun, 01 Nov 2026 09:38:50 GMT","attribution":"IP-to-ASN data from iptoasn.com (public domain, PDDL 1.0)"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/wikipedia":{"get":{"operationId":"wikipedia","summary":"Wikipedia search","description":"Wikipedia search: find the best-matching Wikipedia articles for a query in any language edition, each with title, short description, a plain-text intro (first sentences), URL and last edit time. Good for grounding facts and entity lookups. CC BY-SA attribution included. Not charged when nothing matches.","tags":["search","wikipedia","encyclopedia","knowledge","research"],"parameters":[{"name":"q","in":"query","required":true,"description":"What to search for, e.g. Alan Turing or photosynthesis (max 300 characters)","example":"Alan Turing","schema":{"type":"string"}},{"name":"lang","in":"query","required":false,"description":"Wikipedia language code, e.g. en (default), sv, de, ja","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Articles to return, 1-10 (default 5)","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"lang":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"extract":{"type":"string"},"url":{"type":"string"},"pageId":{"type":"number"},"lastEdited":{"type":"string"},"lengthBytes":{"type":"number"}}}},"attribution":{"type":"string"}}},"example":{"query":"Alan Turing","lang":"en","results":[{"rank":1,"title":"Alan Turing","description":"English computer scientist (1912–1954)","extract":"Alan Mathison Turing (23 June 1912 – 7 June 1954) was an English mathematician, computer scientist, logician, cryptanalyst, philosopher and theoretical biologist. ...","url":"https://en.wikipedia.org/wiki/Alan_Turing","pageId":1208,"lastEdited":"2026-11-20T10:00:00Z","lengthBytes":160000}],"attribution":"Text from Wikipedia (https://en.wikipedia.org), licensed CC BY-SA 4.0; see each article URL for authors"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}},"/geocode":{"get":{"operationId":"geocode","summary":"Geocoding","description":"Geocoding: place name to latitude/longitude worldwide (cities, towns, landmarks; with country, region, population and time zone), reverse geocoding from coordinates to the nearest place, and US street address to coordinates.","tags":["geocoding","geo","location","coordinates","maps"],"parameters":[{"name":"q","in":"query","required":false,"description":"Place name to look up, e.g. Stockholm or Eiffel Tower","example":"Stockholm","schema":{"type":"string"}},{"name":"country","in":"query","required":false,"description":"Optional 2-letter country code to narrow the search, e.g. SE","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results to return, 1-10 (default 5)","schema":{"type":"string"}},{"name":"lat","in":"query","required":false,"description":"Reverse lookup: latitude (use with lon instead of q)","schema":{"type":"string"}},{"name":"lon","in":"query","required":false,"description":"Reverse lookup: longitude","schema":{"type":"string"}},{"name":"address","in":"query","required":false,"description":"US street address instead of q, e.g. 1600 Pennsylvania Ave NW, Washington, DC","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"lat":{"type":"number"},"lon":{"type":"number"},"country":{"type":"string"},"countryCode":{"type":"string"},"region":{"type":"string"},"population":{"type":"number"},"type":{"type":"string"},"timeZone":{"type":"string"},"geonameId":{"type":"number"}}}},"attribution":{"type":"string"}}},"example":{"query":"Stockholm","results":[{"name":"Stockholm","lat":59.32938,"lon":18.06871,"country":"Sweden","countryCode":"SE","region":"Stockholm","population":1515017,"type":"capital of a political entity","timeZone":"Europe/Stockholm","geonameId":2673730}],"attribution":"Place data from GeoNames (https://www.geonames.org), licensed CC BY 4.0"}}}},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment Required"},"502":{"description":"Upstream page or service unavailable (not charged)"}}}}}}