Table & List Scraper — CSS Selector to JSON avatar

Table & List Scraper — CSS Selector to JSON

Pricing

Pay per usage

Go to Apify Store
Table & List Scraper — CSS Selector to JSON

Table & List Scraper — CSS Selector to JSON

Turn any HTML page into clean JSON with CSS selectors. Follows "next page" links automatically, no browser needed — runs in seconds and costs a fraction of a Playwright scraper. Pay only per item scraped.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Wei Yihao

Wei Yihao

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

Turn any HTML table or repeated list into clean JSON. Point it at a URL, give it a CSS selector, get rows back — with pagination handled for you.

Built for the boring 80% of scraping work: price tables, product listings, directory pages, league tables, "results per page" grids.

Input

FieldTypeDefaultNotes
startUrlsarray[{"url":"https://books.toscrape.com/"}]One or more pages to open
itemSelectorstringtable trCSS selector for each row/item
fieldsobjectautoselector or selector@attribute; omit to return every cell as col_1…col_n
pagination.nextSelectorstringnullCSS selector of the "next page" link
pagination.maxPagesinteger1Hard stop
maxItemsinteger100Hard stop across all pages

Field syntax: "td:nth-child(2)" → text, "a@href" → attribute, "a@title" → attribute.

Output

{
"title": "A Light in the Attic",
"price": "£51.77",
"link": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
"stock": "In stock",
"_sourceUrl": "https://books.toscrape.com/",
"_page": 1
}

Every record carries _sourceUrl and _page, so a 2,000-row pull stays traceable.

One-call example

curl -X POST "https://api.apify.com/v2/acts/ZD-l2~table-list-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"startUrls": [{"url": "https://books.toscrape.com/"}],
"itemSelector": "article.product_pod",
"fields": {"title": "h3 a@title", "price": ".price_color", "link": "h3 a@href"},
"pagination": {"nextSelector": "li.next a@href", "maxPages": 3}
}'

Reference run: 40 rows in ~11 s, $0.0004 of compute.

Limits

  • Static HTML only — no JavaScript rendering. For SPAs use a browser-based Actor.
  • One CSS selector per field; no XPath.
  • Respect the target site's robots.txt and terms. You are responsible for what you scrape.

Pricing

Pay per result — charged per scraped item, not per minute. A failed page costs nothing.