{"uid":"cap_U2bqqOsw25SCu3D5XGJJv","slug":"url-to-json-500bbfff","name":"URL to JSON","description":"Extract a webpage (title, author, text) with trafilatura and convert it into structured JSON: topic, key points, entities, summary. For agents that need clean data from a URL.","url":"https://k2so.wrong.systems/api/services/url-to-json","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string","description":"Composite input parameter"},"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"URL to JSON paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"score":{"type":"number"},"service":{"type":"string","description":"Service slug"},"summary":{"type":"string"},"evidence":{"type":"object"},"strengths":{"type":"array","items":{"type":"string"}},"confidence":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"riskFactors":{"type":"array","items":{"type":"string"}}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"service":"url-to-json"},"service":"url-to-json","provider":"K-2SO"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_siZWthV8WlQm2T5SDSpvE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a webpage by URL, extracts its text content using trafilatura, and returns structured JSON including topic, key points, entities, and summary.","exampleAgentPrompt":"Can you fetch this article URL and give me back structured JSON with the topic, key points, named entities, and a summary? Here's the URL: https://example.com/article-about-climate-change","exampleUseCases":[{"title":"Research article summarization pipeline","prompt":"Pull this research article URL and extract the topic, key entities, and a clean summary so I can include it in my report: https://www.nature.com/articles/s41586-024-00001-1"},{"title":"Competitor news monitoring","prompt":"Grab this news article about our competitor and return the key points and entities mentioned so I can track what they've been up to: https://techcrunch.com/2024/01/15/competitor-announcement"},{"title":"Content curation for newsletter","prompt":"I need to turn this blog post URL into structured JSON with the main topic, bullet-point key takeaways, and a short summary — can you do that? URL: https://martinfowler.com/articles/microservices.html"}],"resultDescription":"A JSON object containing the extracted webpage data: title, author, topic, key points (array), named entities, and a text summary. Also includes metadata fields like ok (boolean), service slug, confidence, score, and a generatedAt ISO-8601 timestamp.","failureModes":["URL is unreachable or returns non-200 status — ok field will be false","Paywalled or JavaScript-rendered pages may yield empty or partial text extraction","Malformed or non-HTTP URL causes request rejection","Payment not included triggers a 402 response requiring USDC payment","Rate limiting or network timeout from the target server"],"whenToPreferThis":"Use this endpoint when you need clean, structured JSON from a single webpage URL — especially for article and blog content — and want automatic summarization, entity extraction, and key point identification without running your own NLP pipeline. Prefer it over raw scraping tools when you need structured output rather than raw HTML, and over general LLM summarization when you want a cost-effective, deterministic extraction pipeline backed by trafilatura.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:53:36.968Z","isFirstParty":false}