{"openapi":"3.1.0","info":{"title":"OpenCompany Brief","version":"1.5.0","description":"US public-company briefs from official SEC EDGAR data, plus public chain reads, public-web tools, ENS/Basename, Uniswap mid-price, JSON Schema validation, URL metadata, DNS/RDAP, on-chain token info, text utilities, and address heuristics. Paid routes use x402. Not investment advice.","contact":{"email":"jcwxnq2e@mail.grokbot.com"},"x-guidance":"Each /v1/* route answers an unpaid call with an x402 v2 402 (USDC on Base, eip155:8453). Retry with a PAYMENT-SIGNATURE header. Cheapest: GET /v1/chain/gas?network=base ($0.002). Example: GET /v1/company/brief?q=AAPL ($0.02). Payment is settled only after a 2xx response."},"servers":[{"url":"https://opencompany-brief.opencompanybrief.workers.dev"}],"paths":{"/health":{"get":{"summary":"Liveness","responses":{"200":{"description":"OK"}},"security":[]}},"/v1/company/lookup":{"get":{"summary":"Lookup a company","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"example":"AAPL"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_company_lookup"}},"/v1/company/filings":{"get":{"summary":"Recent SEC filings","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"example":"AAPL"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"},"example":"5"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_company_filings"}},"/v1/company/brief":{"get":{"summary":"Structured company brief","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"example":"AAPL"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.020000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_company_brief"}},"/v1/chain/gas":{"get":{"summary":"Current gas price and base fee","parameters":[{"name":"network","in":"query","required":false,"schema":{"type":"string"},"example":"base"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_chain_gas"}},"/v1/chain/account":{"get":{"summary":"ETH and USDC balances","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string"},"example":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},{"name":"network","in":"query","required":false,"schema":{"type":"string"},"example":"base"},{"name":"token","in":"query","required":false,"schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_chain_account"}},"/v1/chain/tx":{"get":{"summary":"Transaction receipt","parameters":[{"name":"hash","in":"query","required":true,"schema":{"type":"string"},"example":"0x849f1ced9fe0cbfe7346822d5e528070f7bd32528edb2925608dfec7d8aa771c"},{"name":"network","in":"query","required":false,"schema":{"type":"string"},"example":"base"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_chain_tx"}},"/v1/chain/block":{"get":{"summary":"Block summary","parameters":[{"name":"network","in":"query","required":false,"schema":{"type":"string"},"example":"base"},{"name":"number","in":"query","required":false,"schema":{"type":"string"},"example":"latest"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_chain_block"}},"/v1/extract":{"get":{"summary":"Extract a public https page","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"},"example":"https://example.com"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_extract"}},"/v1/packs":{"get":{"summary":"List skill packs (free)","responses":{"200":{"description":"OK"}},"security":[]}},"/v1/packs/{id}":{"get":{"summary":"Download a paid skill pack","security":[]}},"/v1/weather":{"get":{"summary":"U.S. NWS forecast","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_weather"}},"/v1/fx":{"get":{"summary":"ECB reference FX rates","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_fx"}},"/v1/wiki":{"get":{"summary":"Wikipedia summary","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_wiki"}},"/v1/quakes":{"get":{"summary":"USGS earthquakes","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_quakes"}},"/v1/tip/quarter":{"get":{"summary":"$0.25 tip jar","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.250000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_tip_quarter"}},"/v1/tip/dollar":{"get":{"summary":"$1.00 tip jar","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"1.000000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_tip_dollar"}},"/v1/markdown":{"get":{"summary":"HTML-to-Markdown of a public page","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_markdown"}},"/v1/audit":{"get":{"summary":"robots.txt and sitemap audit","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_audit"}},"/v1/pdf-text":{"get":{"summary":"Best-effort public PDF text","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_pdf_text"}},"/v1/ens":{"get":{"summary":"ENS / Basename forward lookup","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_ens"}},"/v1/price":{"get":{"summary":"Uniswap v3 mid price (not a quote)","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_price"}},"/v1/schema/validate":{"post":{"summary":"JSON Schema subset validation","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"post_v1_schema_validate"}},"/v1/dataset/open-data-index":{"get":{"summary":"Official open-data index","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.020000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_dataset_open_data_index"}},"/v1/ping":{"get":{"summary":"x402 payment test ($0.001)","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_ping"}},"/v1/meta":{"get":{"summary":"Open Graph / page metadata of a public https URL","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_meta"}},"/v1/domain":{"get":{"summary":"DNS-over-HTTPS and official RDAP lookup","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_domain"}},"/v1/token":{"get":{"summary":"On-chain ERC-20 token metadata (not a price)","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_token"}},"/v1/text":{"get":{"summary":"Readability scores and keyword extraction","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_text"},"post":{"summary":"Readability scores and keyword extraction (JSON {text})","security":[]}},"/v1/address-risk":{"get":{"summary":"Public-chain address heuristics (not compliance advice)","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_address_risk"}},"/.well-known/mcp.json":{"get":{"summary":"MCP server discovery (free)","security":[]}},"/shop":{"get":{"summary":"Shop catalog and storefront (free)","security":[]}},"/shop/{id}":{"get":{"summary":"Shop product page (free)","security":[]}},"/shop/unlock/{id}":{"get":{"summary":"Unlock a pack with a Base USDC transaction hash","security":[]}},"/v1/shop/{id}":{"get":{"summary":"Download a shop pack via x402","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"NaN"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}},"operationId":"get_v1_shop_id_"}},"/docs":{"get":{"summary":"Documentation (free)","security":[]}},"/tools":{"get":{"summary":"Browser tools (free daily tier)","security":[]}},"/sitemap.xml":{"get":{"summary":"Sitemap","security":[]}},"/robots.txt":{"get":{"summary":"Robots","security":[]}},"/nft/lattice-signals":{"get":{"summary":"Lattice Signals collection (free)","security":[]}},"/v1/packs/x402-buyer-kit":{"get":{"operationId":"get_v1_packs_x402_buyer_kit","summary":"Markdown skill for paying x402 v2 and calling this API.","parameters":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required"}}}},"/v1/packs/public-web-ops-kit":{"get":{"operationId":"get_v1_packs_public_web_ops_kit","summary":"Markdown skill for the public-web tools on this API.","parameters":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required"}}}}}}