{"uid":"cap_39f0mbn_3rgyxC9nl9y1S","slug":"url-to-json-e1aaaf74","name":"URL to JSON","description":"One call replaces two: fetches the page, strips it to readable text, then returns exactly the fields you asked for as schema-enforced JSON (fields=price,author,published — up to 10). Add list=true to pull EVERY repeated record on the page (listings, table rows, search results) as an array — that mode costs $0.06, since it needs a much larger output budget. Built for agents that need a fact off a page, not a pile of HTML — no browser, no parser, no scraping code.","url":"https://402.com.tr/api/x402/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"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["url","fields"],"properties":{"url":{"type":"string","description":"Page URL"},"list":{"type":"string","description":"Extract all records (true/false)"},"fields":{"type":"string","description":"Fields (comma-separated)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XwPaMnOvx2SIUwB7ZkAGA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a web page, strips it to readable text, and returns only the requested fields as schema-enforced JSON — optionally extracting all repeated records as an array.","exampleAgentPrompt":"Go to https://www.amazon.com/dp/B09G9FPHY6 and pull out the price, rating, and product title as JSON — just those three fields.","exampleUseCases":[{"title":"Competitor price monitoring","prompt":"Fetch https://www.bestbuy.com/site/apple-macbook-air/6509650.p and extract the fields price, availability, and productName as JSON so I can track what they're charging."},{"title":"Article metadata extraction","prompt":"Pull the author, published date, and title from this article: https://techcrunch.com/2024/05/01/openai-raises-funding/ — return it as structured JSON."},{"title":"Job listings scrape","prompt":"Go to https://careers.shopify.com/jobs and extract every job listing on the page — title, location, and department — as a JSON array using list mode."}],"resultDescription":"A JSON object containing only the requested fields extracted from the target webpage. If list=true is set, returns a JSON array where each element is one repeated record (e.g. one listing, one table row) with the requested fields. Fields not found on the page may be null or absent.","failureModes":["Page is behind a login wall or CAPTCHA — fields returned as null","URL is unreachable or returns a non-200 status — request fails with an error","Requested fields don't exist on the page — fields returned as null or empty","JavaScript-rendered content not visible in static HTML — fields may be missing","More than 10 fields requested — may be rejected or truncated","Ambiguous field names that match multiple elements — may return unexpected values"],"whenToPreferThis":"Choose this endpoint when you need 1–10 specific facts from a public webpage and want clean JSON back without writing any parsing or scraping code. It's ideal for agents that need a single fact (price, author, date) or a list of repeated records (search results, table rows) from a page, and want to avoid dealing with raw HTML. Prefer it over a raw HTTP fetch + LLM parse combo when you want schema-enforced output and cost predictability at $0.04/call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:55:59.251Z","isFirstParty":false}