URL to JSON: Extract Structured Data from Any Page
Convert any URL to JSON for free. Name the fields you want, such as price or author, and get structured data from the page, plus the API request to reuse.
How do I convert a URL to JSON?
- Enter the page URL.
- List the fields you want, separated by commas. Start a field with “list of” to get an array, for example “list of features”.
- Click Extract JSON. Fields the page does not state come back as null.
- Copy or download the JSON, or open the API request under the result to run the same extraction in code.
How does website to JSON extraction work?
Each field name becomes a property in a JSON Schema, with the words you typed as its description. The tool sends the URL and the schema to the Context.dev Scrape endpoint with the JSON format turned on. The page is rendered in a browser, then a language model fills in the schema using only what that page says. The exact schema and request are shown under each result.
Should I use a JSON Schema or CSS selectors?
CSS selectors are exact and add no credits to a scrape, but they break when a site changes its markup, and every site needs its own rules. A JSON Schema describes the data instead of its location, so one schema works across many sites with different layouts. Use CSS rules for a few stable pages, and schema extraction when you scrape many sites or pages that change.
How do I convert URLs to JSON with an API?
Send POST /v1/web/scrape with formats: { json: true }, a JSON Schema in jsonParams.schema, and optional guidance in jsonParams.instructions. The result is in json.data. A successful extraction costs 5 credits: 1 for the scrape and 4 for the JSON.
The data extraction API page covers schemas, nested objects, and CSS rules in more detail. The same endpoint is the web scraping API, so one request can also return Markdown, HTML, or a screenshot of the page.
What can you extract from a web page as JSON?
- Product names, prices, and availability for price tracking
- Job titles, locations, and salary ranges from job postings
- Authors, publish dates, and summaries from articles
- Plan names and prices from pricing pages for comparisons
- Event names, dates, and venues from listing pages
Frequently asked questions
Is the URL to JSON tool free?
What happens when a field is not on the page?
Can I extract the same fields from many pages?
Do I need to write a JSON Schema?
Does it work on pages that load content with JavaScript?
Is the URL to JSON tool free?
Do I need to write a JSON Schema?
What happens when a field is not on the page?
Does it work on pages that load content with JavaScript?
Can I extract the same fields from many pages?
More free tools
Keep exploring
- New
NAICS & SIC Code Lookup
Find any company's NAICS 2022 and SIC codes from a name or domain.
NAICS + SIC (access required) - New
llms.txt Generator
Spec-compliant llms.txt and llms-full.txt for ChatGPT, Claude, and Perplexity.
Map URLs + Scrape APIs - New
Ad Maker
Three on-brand ad creatives from any domain: generated, painted, downloadable.
Brand + Scrape + Styleguide APIs
Ship an agent that actually knows things.
Free tier, 10-minute integration, and the same API powering agents at Mintlify, daily.dev, and Propane. No credit card to start.