{"uid":"cap_cWQCc4-ZBYAcTFzBMdjJ9","slug":"schema-extraction-from-url-724d780f","name":"Schema Extraction from URL","description":"Schema extraction - send a URL and the fields you want (for example price, title) and get a JSON object back","url":"https://x240.jvnclk88.workers.dev/extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Public http or https URL to fetch"},"fields":{"oneOf":[{"type":"array","items":{"type":"string"},"maxItems":20},{"type":"object","additionalProperties":{"type":"string"}}],"description":"Field names to extract (array of strings, or object of name to description), up to 20"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_azQPAsS4ef7yDVy3CPV-9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a public URL and extracts specific named fields from the page content, returning a structured JSON object","exampleAgentPrompt":"Go to https://www.example.com/product/123 and extract the price, title, and availability as a JSON object for me.","exampleUseCases":[{"title":"Competitor price monitoring","prompt":"Pull the current price and product name from https://shop.competitor.com/item/456 — I want those two fields back as JSON."},{"title":"News article metadata extraction","prompt":"Go to this article URL https://techcrunch.com/2024/05/01/some-story and extract the title, author, and publication date for me."},{"title":"Job listing detail scraping","prompt":"Fetch https://jobs.example.com/listing/789 and extract the job title, salary range, location, and required experience from the page as structured JSON."}],"resultDescription":"A JSON object whose keys are the field names you specified and whose values are the corresponding data found on the page. If a field cannot be found, it may be null or omitted. The response reflects the content of the live page at the time of the request.","failureModes":["URL is not publicly accessible or returns a non-200 status — extraction fails with an error","Page content is JavaScript-rendered and the relevant fields are not present in the initial HTML — fields may be null","More than 20 fields requested — request rejected","Field names are too ambiguous to match page content — returns null values for unmatched fields","URL is malformed or not http/https — request rejected with validation error"],"whenToPreferThis":"Use this endpoint when you know exactly which named fields you want from a page and need them as structured JSON, rather than raw text or all metadata. It is ideal for targeted data extraction (e.g. price, title, author) without post-processing. Prefer it over the product-page or metadata endpoints when you need custom field names beyond their fixed schemas, and over the batch scrape endpoint when you need clean, typed values for specific fields from a single URL.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:30:16.966Z","isFirstParty":false,"canonicalSlug":"schema-extraction-from-url-724d780f"}