{"name":"agent-reader","description":"Cheap, agent-native endpoints paid per call over x402: turn any URL into clean Markdown, repair malformed JSON against a schema, read cross-market implied probabilities from Polymarket and Kalshi, and check whether a prediction market event has resolved.","version":"0.2.0","tags":["web","markdown","extraction","json","utility"],"endpoints":[{"method":"POST","path":"\/extract","price":"$0.005","serviceName":"agent-reader","tags":["web-scraping","markdown","extraction","reader","content"],"description":"Fetch a public web page and return clean, LLM-ready Markdown plus metadata (title, author, published date, excerpt, links, word count). Boilerplate, nav and ads removed.","input":{"type":"object","properties":{"url":{"type":"string","description":"Absolute http(s) URL of the page to fetch and extract."},"format":{"type":"string","enum":["markdown","json"],"default":"markdown","description":"`markdown` returns the article body as Markdown; `json` returns metadata only with the markdown omitted."}},"required":["url"],"additionalProperties":false},"outputExample":{"url":"https:\/\/example.com\/blog\/post","format":"markdown","markdown":"# Post title\n\nFirst paragraph of the article...","title":"Post title","author":"Jane Doe","publishedDate":"2026-05-14T09:00:00.000Z","excerpt":"First paragraph of the article...","wordCount":812,"links":["https:\/\/example.com\/related","https:\/\/other.example\/ref"],"fetchedAt":"2026-07-31T12:00:00.000Z","truncated":false}},{"method":"POST","path":"\/repair-json","price":"$0.003","serviceName":"agent-reader","tags":["json","repair","validation","schema","parsing"],"description":"Repair malformed JSON (trailing commas, single quotes, unquoted keys, code fences, truncated output) and optionally validate the result against a supplied JSON Schema (draft 2020-12).","input":{"type":"object","properties":{"input":{"type":"string","description":"Malformed JSON text \u2014 trailing commas, single quotes, unquoted keys, markdown code fences, truncated output, etc."},"schema":{"type":"object","description":"Optional JSON Schema (draft 2020-12) to validate the repaired value against."}},"required":["input"],"additionalProperties":false},"outputExample":{"repaired":{"name":"ada","tags":["math","code"]},"repairedText":"{\"name\":\"ada\",\"tags\":[\"math\",\"code\"]}","changed":true,"changes":["stripped markdown code fence","repaired JSON syntax"],"valid":true,"errors":[]}},{"method":"POST","path":"\/probability","price":"$0.015","serviceName":"market-probability","tags":["prediction-markets","polymarket","kalshi","probability","forecasting"],"description":"What does the market think? Ask any event question in plain English and get the implied probability from live Polymarket and Kalshi prediction markets: per-venue odds, a liquidity-weighted consensus forecast, and a cross-venue divergence flag.","input":{"type":"object","properties":{"q":{"type":"string","minLength":3,"maxLength":500,"description":"Natural-language description of the event you want odds for, e.g. \"Will the Fed cut rates before September 2026?\". Matched against Polymarket and Kalshi market questions."},"maxMarkets":{"type":"integer","minimum":1,"maximum":10,"default":6,"description":"Maximum number of matched markets to aggregate and return (top-K by match quality). Defaults to 6."}},"required":["q"],"additionalProperties":false},"outputExample":{"query":"Will the Fed cut rates before September 2026?","probability":0.6312,"confidence":0.82,"markets":[{"venue":"polymarket","id":"fed-rate-cut-september-2026","question":"Will the Fed cut interest rates before September 2026?","url":"https:\/\/polymarket.com\/event\/fed-rate-cut-september-2026","probability":0.64,"liquidity":412000,"volume":1850000,"closeTime":"2026-09-01T00:00:00.000Z","status":"open","matchScore":0.91},{"venue":"kalshi","id":"KXFEDDECISION-26SEP","question":"Fed cuts rates at or before the September 2026 meeting","url":"https:\/\/kalshi.com\/markets\/kxfeddecision-26sep","probability":0.59,"liquidity":88000,"volume":240000,"closeTime":"2026-09-17T00:00:00.000Z","status":"open","matchScore":0.83}],"divergence":0.05,"asOf":"2026-07-31T12:00:00.000Z","source":"index","attribution":"Implied probabilities and resolution status are derived from public Polymarket and Kalshi market data by x402.fenixfoundry.com. Not affiliated with, endorsed by, or a data feed of either venue. Informational only, not investment advice."}},{"method":"GET","path":"\/resolution","price":"$0.005","serviceName":"market-resolution","tags":["prediction-markets","resolution","oracle","polymarket","kalshi"],"description":"Did it happen? Check whether a prediction market event has settled on Polymarket or Kalshi and get the resolved outcome, resolution time, source and market URL. A cheap oracle for agents that must verify a real-world outcome before acting.","queryParams":{"type":"object","properties":{"q":{"type":"string","maxLength":500,"description":"Natural-language event query, e.g. \"Did the US government shut down in 2026?\". Use this or venue+id."},"venue":{"type":"string","enum":["polymarket","kalshi"],"description":"Direct lookup: which venue the market lives on. Requires id."},"id":{"type":"string","description":"Direct lookup: Polymarket event slug or Kalshi ticker. Requires venue."}},"anyOf":[{"required":["q"]},{"required":["venue","id"]}],"additionalProperties":false},"outputExample":{"query":"Did the US government shut down in 2026?","resolved":true,"outcome":"No","resolvedAt":"2026-01-31T18:04:00.000Z","resolutionSource":"kalshi","venue":"kalshi","id":"KXGOVSHUTDOWN-26","url":"https:\/\/kalshi.com\/markets\/kxgovshutdown-26","confidence":0.93,"closeTime":"2026-01-31T00:00:00.000Z","attribution":"Implied probabilities and resolution status are derived from public Polymarket and Kalshi market data by x402.fenixfoundry.com. Not affiliated with, endorsed by, or a data feed of either venue. Informational only, not investment advice."}},{"method":"GET","path":"\/","price":"free","description":"This manifest."}],"prices":{"POST \/extract":"$0.005","POST \/repair-json":"$0.003","POST \/probability":"$0.015","GET \/resolution":"$0.005"},"x402":{"version":2,"scheme":"exact","asset":"USDC","network":"eip155:8453","payTo":"0x737426d3eD53930B889b3f61774669a0FDf3BE54","facilitator":"https:\/\/api.cdp.coinbase.com\/platform\/v2\/x402","maxTimeoutSeconds":60,"testnet":false,"discovery":"bazaar","docs":"https:\/\/docs.x402.org\/getting-started\/quickstart-for-buyers","howToPay":"Send the request unauthenticated, read the 402 + PAYMENT-REQUIRED header, sign the EIP-3009 authorization, then retry with the PAYMENT-SIGNATURE header. Any x402 v2 client (e.g. @x402\/fetch) does this automatically."},"listing":"https:\/\/agentic.market\/services?q=agent-reader","resources":{"extract":"https:\/\/x402.fenixfoundry.com\/extract","repairJson":"https:\/\/x402.fenixfoundry.com\/repair-json","probability":"https:\/\/x402.fenixfoundry.com\/probability","resolution":"https:\/\/x402.fenixfoundry.com\/resolution"}}