{"openapi":"3.1.0","info":{"title":"Link Context API","version":"0.1.0","description":"Compact page metadata for agents. Paid per call via x402; also exposed as an A2A agent (see /.well-known/agent-card.json)."},"servers":[{"url":"https://lc008-dual-facade.myversum.workers.dev"}],"paths":{"/v1/link-context":{"get":{"summary":"Build a context card for one public URL","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri"},"description":"Public http(s) URL to inspect"},{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["meta","full"],"default":"meta"},"description":"meta: 600-char excerpt; full: 1200-char excerpt"}],"responses":{"200":{"description":"Context card","content":{"application/json":{"example":{"ok":true,"url":"https://example.com/","finalUrl":"https://example.com/","http":{"status":200,"contentType":"text/html; charset=UTF-8","bytes":1256},"meta":{"title":"Example Domain","description":null,"canonical":null,"language":"en","siteName":null,"type":null,"image":null,"favicon":null,"author":null,"publishedTime":null},"content":{"words":28,"readingTimeMin":1,"h1":"Example Domain","headings":1,"links":1,"images":0,"excerpt":"This domain is for use in illustrative examples in documents...","emptyPage":false},"flags":["low_text"]}}}},"400":{"description":"Missing or invalid URL"},"402":{"description":"Payment required (x402 v2), see PAYMENT-REQUIRED header"},"422":{"description":"URL could not be fetched or is not HTML"},"503":{"description":"Payments are not configured on this deployment"}},"x-payment-info":{"protocol":"x402","version":2,"price":"$0.02","description":"Price per successful call"}}},"/.well-known/agent-card.json":{"get":{"summary":"A2A agent card","responses":{"200":{"description":"Agent card (A2A protocol v1.0)"}}}},"/a2a":{"post":{"summary":"A2A JSON-RPC endpoint (SendMessage)","responses":{"200":{"description":"JSON-RPC response"}}}}}}