NEVER TRAINED ON · PRIVATE BY DEFAULT · BUILT BY MOZILLA

GITHUB

Extract

Extract data from web pages as clean text or matching JSON.

Pass a URL and the shape your application needs. Tabstack returns structured data from the page without a parser, browser fleet, or second model call in your stack.

Clean Markdown · Schema-matched JSON · Cache, effort and geo controls

tabstack.ai/pricing

TEXT

MARKDOWN

LINKS

extract.tsTypeScript
const res = await client.extract.json({
  url: 'https://example.com/pricing',
  json_schema: {
    type: 'object',
    properties: {
      plan: { type: 'string' },
      price: { type: 'number' },
    },
  },
})

The Extract API

What does the Tabstack Extract API return?

Tabstack Extract takes a web page URL and returns clean Markdown or JSON matching the schema you provide: structured data extraction from web pages in one call. Fetching, rendering, content extraction, and schema enforcement happen before the response comes back.

Three ways to turn a webpage into schema-matched JSON

the page changes

tabstack

fetch, render, extract
enforce the schema
the shape does not

Choose the output

Read the page or return the object.

/extract/markdown

Use it when your model, vector store, or application needs readable page content with headings and links intact.

/extract/json

Use it when the next step expects specific fields and types. Provide the schema with the request and receive matching output.

Inside the call

Four things happen before the response comes back.

Fetch the page

Retrieve the URL you passed, with the cache and geo controls you set.

Render what needs it

Run JavaScript when the content needs it.

Extract the content

Separate the page from its chrome and keep the structure.

Enforce the schema

Return the fields and types your request asked for.

extract.tsTypeScript
const res = await client.extract.json({
  url: 'https://example.com/pricing',
  json_schema: {
    type: 'object',
    properties: {
      plan:  { type: 'string' },
      price: { type: 'number' },
      seats: { type: 'number' },
    },
  },
})

// every key you ask for is present; validate the values

Schemas

You define the schema. Tabstack returns the data.

Missing fields: Every key you ask for is present. A field the page does not state can come back null, empty, a placeholder number, or a guessed value. Validate values, not just keys.

Browse the schema library

Write field descriptions that extract the right value

In your pipeline

Keep extraction out of your application code.

Page layouts change. Rendering requirements vary. A field that looks simple can require navigation, retries, or model reasoning. Tabstack keeps those concerns behind the API while your application keeps a stable output contract. Use Extract for known URLs and repeated jobs.

one output contract

your code

one call
one shape

behind the api

fetch, render
retries, reasoning

Choosing the call

Extract returns what the page says. Generate works out what it means.

  • Need the fields that are on the page? This endpoint returns them in your schema.
  • Need interpretation, classification, or comparison? Generate adds instructions and returns that result in your schema.
  • Extract the plan names and prices, then ask Generate which audience each plan appears to target, and why.

Controls

Match the call to the page and the job.

Three parameters change how the page is retrieved.

ControlUse it when
nocacheThe workflow cannot reuse a cached result
effortYou want to choose the retrieval depth
geo_targetThe page varies by country

Use cases

Use Extract when a known page feeds another step.

Read a pasted link

Turn a URL someone dropped in as clean, readable Markdown.

Current docs for an assistant

Give a coding assistant documentation newer than its training data.

Keep a source set current

Refresh a defined set of pages that a retrieval index depends on.

Enrich an incoming record

Fill out a company or contact record from its web pages.

Monitor a page

Track product, price, job, policy, or filing pages over time.

Typed records for a data product

Turn pages into rows your own product can query and ship.

Trust

How Extract handles your data.

Never trained on. Private by default. The Trust page explains what is processed and the account controls.

How data is handled

your url

tabstack

processes the page
returns the output

never trained on

private by default

Common questions

Extracting data from web pages

How do I extract structured data from a web page?

Pass the page URL and a JSON schema to /extract/json. Tabstack fetches the page, renders it when the content needs a browser, locates each field, and returns JSON with the keys and types you declared. No selectors to write and no parser to maintain.

Can Extract turn HTML into JSON that matches my schema?

Yes. The schema is the whole specification. Every key you ask for is present in the response. A field the page does not state can come back null or a placeholder value, so validate values as well as keys.

Does it work on JavaScript-rendered pages?

Yes. The effort parameter sets how the page is fetched: min fetches raw HTML with no JavaScript, standard (the default) adds light JavaScript handling, and max renders the page in a full headless browser for content built with JavaScript.

Is Tabstack a web scraping API?

Tabstack is a managed web API. Extract is one of its three jobs: it turns a web page you name into structured data for your model or agent, as Markdown or JSON matching your schema. The browsers, rendering, and extraction run outside your model. Never trained on.

Can I use the extracted data with my own model?

Yes. Extract runs outside your model and returns a plain object. Pass it to a model you run yourself, a hosted one, or straight into your database.

START FREE

Give your next step the output it expects.

Start with 10,000 free credits. No credit card required.

curl -fsSL https://tabstack.ai/install.sh | sh