Structured Data Fixer — repair messy JSON, CSV & text
Under maintenancePricing
Pay per usage
Go to Apify Store

Structured Data Fixer — repair messy JSON, CSV & text
Under maintenancePaste broken JSON, messy CSV or raw text. Get clean, typed output plus a list of what was fixed and what was guessed. Deterministic rules, no LLM, no API keys.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Tang
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
12 days ago
Last modified
Categories
Features
Limited permissions
Share
Web to JSON
Minimal Apify Actor: fetch one or more web pages and store a structured JSON record per page.
- Input:
startUrls(array of http/https URLs),maxPages(default3, max50),outputMode(text|html, kept for compatibility) - Output (one dataset record per page):
{"url": "https://example.com/","title": "Example Domain","text": "Example Domain This domain is for use in documentation examples ...","html": "<!doctype html><html lang=en>...</html>","fetchedAt": "2026-11-11T07:10:05.101Z","outputMode": "text","statusCode": 200}
Example input
{"startUrls": ["https://example.com/"],"maxPages": 3,"outputMode": "text"}
Local run (no Apify CLI needed)
npm installmkdir -p storage/key_value_stores/defaultecho '{"startUrls":["https://example.com/"],"maxPages":3,"outputMode":"text"}' > storage/key_value_stores/default/INPUT.jsonnode src/main.js# results: storage/datasets/default/*.json
With Apify CLI: apify run (reads input from storage/key_value_stores/default/INPUT.json).
Files
| File | Purpose |
|---|---|
src/main.js | Actor code (apify SDK + node:http/https, no extra scraping deps) |
input_schema.json | Actor input schema |
.actor/actor.json | Actor definition for Apify platform |
package.json | Only dependency: apify |
Limitations
- No JavaScript rendering — only the initial HTML is fetched (SPAs returned as shell HTML).
- No link following — exactly the URLs you pass, capped by
maxPages. - 30 s timeout per page; on failure the record is still pushed with
statusCode: 0anderror. - Respect the target site's robots.txt / terms; do not scrape personal or paywalled data.
Local run result (example.com)
exit=0; dataset record contains url / title / text / html / fetchedAt (see logs/run-example.log, logs/run-example.png).
Notes
- Uses
Actor.init()+Actor.exit()instead ofActor.main()because Node 24 + Windows crashes onActor.main()exit (libuv assertion). Functionally identical. - Uses
node:http/httpsrather thanfetchfor the same reason (undici keep-alive handles crash on process exit).
Example output (real run)
{"url": "https://example.com","title": "Example Domain","text": "...171 characters of cleaned text...","html": "<!doctype html>...","statusCode": 200,"fetchedAt": "2026-11-10T23:38:11.785Z","outputMode": "text"}