From URL to Table: How a NextRows Extract Request Works
By NextRows Team · · 3 min read

Most scraping tools ask you to describe where the data lives. NextRows asks you to describe what you want. Behind that one sentence sits a pipeline with five stages. This post walks through each one, using the same structure we show on the NextRows landing page.
The request
An extract request is small. It has a type, a list of sources, and an optional prompt and schema:
{
"type": "url",
"data": ["https://fortune.com/ranking/global500"],
"prompt": "Extract the top 10 companies from the list in a table format."
}The request schema enforces a few rules:
typeis eitherurlortext.dataholds between 1 and 20 sources.promptis optional and can be up to 2,000 characters.schemais an optional JSON schema.
The API itself is a Hono application. Routes are described with OpenAPI and request bodies are validated with Zod, so a malformed request fails early with a clear error instead of reaching the model.
Stage 1: Input
Sources are either web page URLs or raw text, up to 20 per request. One request uses one type, so all sources are URLs or all are text. When the type is url, every item must be a valid URL, and the request is rejected otherwise.
Stage 2: Render
Pages are fetched by a separate render service. It loads each page in headless Chromium through puppeteer-core, so content that only appears after JavaScript runs is still captured. Before capturing, the service pauses animations and removes hidden elements, which keeps the text you extract from containing things a visitor could not see. Raw text skips rendering entirely.
Stage 3: Normalize
Rendered HTML goes through Readability-based cleanup and is converted to Markdown. When a request has several sources, the text is merged. The goal is clean, compact text for the model, without navigation bars, scripts, or layout noise.
Stage 4: Extract
The cleaned text is sent to a model through a provider layer built on the Vercel AI SDK. The models come from Google. If you pass a JSON schema, the model is guided to produce output in that shape. If you don't, the system can generate a schema from your prompt.
Stage 5: Deliver
The extract endpoint returns JSON: a success flag and the extracted values in a data field. Saved apps also have their own run, table, and JSON endpoints.
Why split it this way
Each stage has one job and one failure mode. If a page renders badly, we look at the render service. If the text is noisy, we look at normalization. If the values are wrong, we look at the prompt and schema. That separation makes the system easier to debug and easier to improve one piece at a time.
Next up in this series: how to use a JSON schema to get predictable output, and how web pages and plain text work as inputs.
Want Clean Tables With Zero Stress?
NextRows makes scraping and cleaning data simple. Our powerful AI Agent helps you save hours every week on repetitive tasks.
No credit card required • Free trial available
Related articles
October Killed the Chatbot: AI Stopped Answering and Started Operating
GPT-6 reached every tier, with an interface that builds itself around your task, the ChatGPT Chrome extension started reading your tabs, and Gemini became a universal agent across Google products. October 2026, revisited.

Schema-Guided Extraction: Getting the Same Shape Every Time
Pass a JSON schema with your extract request and the output follows it. Here is why that matters and how to write one.
Agents Logged Into Your Life: September's Big Three Went Personal
Meta shipped a consumer agent that acts across apps, OpenAI put a Data agent inside ChatGPT and launched always-on agents at DevDay, and Siri AI began an opt-in beta rollout on eligible devices. September 2026, revisited.