How to extract structured data from a website without code (AI web scraper)
Paste public page URLs, describe the fields in plain language, and get JSON, CSV or Excel back. No CSS selectors and no OpenAI key.
A common request in data work is simple to say and messy to do: take a few public web pages and turn them into a table. Title, price, category, stock, a list of items on a catalog page. Most “web scrapers” ask for CSS selectors, a recorded click path, or a script that breaks the next time the layout changes.
There is a more direct option when the pages are already known and public. Describe the fields in plain language and let an AI web scraper fill in structured JSON.
AI Web Data Extractor is an Actor on the Apify Store, made by DataTools AI. It fetches the public URLs provided, respects robots.txt, skips obvious login walls, and uses OpenAI GPT-4o mini to extract the requested fields. No OpenAI key is required on the user’s side, and there are no CSS selectors to maintain. The walkthrough below uses the real prefilled example: a catalog page and a product page on Books to Scrape, a site published for this kind of test. That run finished in about six seconds and cost $0.017.
Who this is for
- Analysts and operators who want to extract structured data from a website without code.
- People who already have a list of public product, article, or directory URLs and need a spreadsheet, not HTML.
- Developers and AI agents that need a schema per page (JSON, CSV, or Excel) rather than a site-specific scraper.
It is not a site-wide crawler and it does not log in. Pages that are empty without JavaScript, blocked by robots.txt, or behind a login wall are skipped and not charged.
1. Open the Actor and run the prefilled example
Open the Actor on the Apify Store (link above) and press Start. The input is already filled with two public URLs and a set of fields:
title,description,price,category(text)rating(number, 1–5 when a star rating is shown)in_stock(boolean)stock_count(number, when the page shows a count)listed_items(a list of full product titles on a catalog page; empty on a single product page)
When the run finishes, open the Output tab. The prefilled example produces one row per URL. A real result looks like this (metadata such as contentType and fetchedAt omitted for brevity):
[
{
"url": "https://books.toscrape.com/",
"finalUrl": "https://books.toscrape.com/",
"status": "ok",
"httpStatus": 200,
"title": "All products | Books to Scrape - Sandbox",
"description": null,
"price": null,
"category": "Books",
"rating": null,
"in_stock": null,
"stock_count": null,
"listed_items": [
"A Light in the Attic",
"Tipping the Velvet",
"Soumission",
"Sharp Objects",
"Sapiens: A Brief History of Humankind",
"The Requiem Red",
"The Dirty Little Secrets of Getting Your Dream Job",
"The Coming Woman: A Novel Based on the Life of the Infamous Feminist, Victoria Woodhull"
]
},
{
"url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
"finalUrl": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
"status": "ok",
"httpStatus": 200,
"title": "A Light in the Attic | Books to Scrape - Sandbox",
"description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good.",
"price": "£51.77",
"category": "Poetry",
"rating": 3,
"in_stock": true,
"stock_count": 22,
"listed_items": []
}
]
The catalog page returns a list of full titles and leaves product-only fields empty. The product page returns price, category, a 3-star rating, stock count 22, and an empty list. Download the dataset as JSON, CSV, or Excel from the same tab.
2. Point it at your own public pages
Replace the example URLs with public http(s) pages that may legally be read. Then edit Fields to extract. Each field needs a name, a plain-language instruction, and a type (text, enum, number, boolean, or list). Enum fields also take an options list.
A compact product extraction looks like this:
{
"urls": [
"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
],
"fields": [
{ "name": "title", "instruction": "The product title from the main heading.", "type": "text" },
{ "name": "price", "instruction": "Product price including the currency symbol as shown on the page.", "type": "text" },
{ "name": "rating", "instruction": "Star rating as a number from 1 to 5 if shown.", "type": "number" },
{ "name": "in_stock", "instruction": "True if the product is in stock, false if out of stock.", "type": "boolean" }
],
"maxPages": 2
}
If a JSON Schema is already available, pass it as jsonSchema instead of fields.
Useful optional inputs:
maxPages— cap how many URLs are processed (and potentially charged) in one run. The prefill uses 2.extraInstructions— a global rule such as “Answer in Spanish” or “Prices should include the currency symbol.”requestDelayMs— polite delay between requests to the same site (default 1000 ms; robots.txt crawl-delay is honored when it is larger).
A first test should stay at one or two URLs. Once the field instructions look right, paste the rest of the list.
3. Read the status column before trusting the row
Every item includes a status. Only ok is charged. Other values are returned so a bad URL does not silently disappear:
blocked-by-robots-txt— the crawler is not allowed to fetch that pathlogin-required— the page looks like a login wallhttp-404(or another HTTP code) — the fetch failedtoo-little-content— the page is empty for a non-browser client (often a JavaScript-only page)unsupported-content-type,ai-failed,unreachable
A RUN_SUMMARY record in the key-value store shows how many pages succeeded, how many were skipped, and token usage.
Cost (pay-per-event)
- $0.008 per successfully extracted page
- $0.001 Actor start fee, once per run
- 100 pages = $0.80 in page charges, plus the $0.001 start fee ($0.801 total)
- The prefilled 2-page example: 2 × $0.008 + $0.001 = $0.017
- Blocked, login-walled, and failed pages are free
There is no separate OpenAI invoice. Model cost is included in the event price. Set a maximum cost per run in the Apify run options if a hard cap is needed.
Honest limits
- The Actor only reads public URLs that are provided. It does not crawl an entire site, follow pagination on its own, log in, fill forms, solve CAPTCHAs, or bypass paywalls.
- It does not run a headless browser. Pages that render no useful text without JavaScript come back as
too-little-content. - robots.txt is honored, including crawl-delay when present.
- The model can still be wrong. Spot-check prices, stock, and other important fields.
- Do not use it to collect personal data about private individuals (personal emails, phone numbers, home addresses, government IDs). The Actor is instructed to return those as null. The person or team submitting the URLs is responsible for having the right to process those pages.
- Page text is sent to the OpenAI API for extraction. According to OpenAI’s policy, API data is not used to train their models by default and is retained for up to 30 days for abuse monitoring. Do not submit pages that may not be shared with a third-party processor.
A simple workflow
- Collect a short list of public URLs (product pages, a catalog, a public article).
- Run the prefilled example once, then swap in one or two of those URLs and tighten the field instructions.
- If the output looks right, raise
maxPagesas needed, run the full list, and export JSON, CSV, or Excel — or call the Actor from the Apify API or MCP server.
The prefilled example is the fastest way to see the shape of the output.
Published by the DataTools AI brand account. DataTools AI makes the Actor described here. Written with AI assistance and checked against the Actor’s public documentation (input schema, pricing, and a real sample from the default 2-page example). Not a paid placement.
About the author
- Legal, pay-per-event AI Actors on the Apify Store. Official APIs and public or user-supplied data only. Brand account. https://apify.com/datatools-ai
Comments
Join the discussionNo comments yet. Be the first to comment.