cd /news/ai-tools/scrape-any-website-into-json-by-just… · home › topics › ai-tools › article
[ARTICLE · art-141294] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Scrape any website into JSON by just listing the fields you want

A developer built an AI Web Data Extractor on Apify that turns website scraping into a schema-first task: users list the fields they want, an LLM reads the page, and the tool returns JSON without CSS selectors or custom code. The extractor supports string, number, integer, boolean and array field types as well as full JSON Schema for nested results, returning null rather than fabricating missing values, and can be invoked from code or used as a tool by AI agents through the Apify MCP server. The developer notes classic selector-based scrapers remain cheaper for millions of pages with a fixed layout, while this tool targets varied or changing pages and small field sets across many sites.

by read1 min views1 publishedSep 28, 2026

Writing a scraper usually means inspecting the page, finding CSS selectors, handling edge cases, and then fixing it all again when the site changes its layout. For a lot of jobs that's overkill: you just want these five facts from these pages.

So I built an extractor that works the other way around. You describe the data, an LLM reads the page, and you get JSON back.

{
  "startUrls": [{ "url": "https://github.com/apify/crawlee" }],
  "fields": {
    "name": "string",
    "description": "string",
    "license": "string",
    "primary_language": "string"
  }
}
{
  "url": "https://github.com/apify/crawlee",
  "success": true,
  "data": {
    "name": "crawlee",
    "description": "Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers...",
    "license": "Apache License 2.0",
    "primary_language": "JavaScript"
  }
}

No selectors, no code, and the same input works on any other repository page, or on a completely different site if you change the fields.

null otherwise. Missing is better than made up.string, number, integer, boolean or array per field, or a full JSON Schema for nested results like "all jobs on this page with title, location and remote flag". If you need millions of pages from one site with a fixed layout, a classic selector-based scraper is cheaper. This tool shines when pages vary, layouts change, or you only need a handful of fields from many different sites.

AI Web Data Extractor on Apify. New Apify accounts get free monthly credit, so you can try it on your own URLs for free. It can also be called from code or used as a tool by AI agents through the Apify MCP server.

Feedback welcome, especially examples where it gets something wrong.

── more in #ai-tools 4 stories · sorted by recency
── more on @apify 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/scrape-any-website-i…] indexed:0 read:1min 2026-09-28 · —