Grabber

formats=text

Plain text from any web page

Send a URL and get back the readable content of the page as plain text, with every tag, script and style removed. For search indexes, classifiers and anything that only needs the words.

  • $1 free credit, no card
  • No subscription
  • Failed requests are free

One request, plain text

With unwrap=true the text is the whole response body, with Content-Type: text/plain.

  • No markup to strip yourself
  • Ask for text and links together
  • Same price as every format
curl -G https://api.grabber.sh/fetch \
  -H "Authorization: Bearer $GRABBER_API_KEY" \
  --data-urlencode "url=https://example.com/news/launch" \
  -d "formats=text" \
  -d "unwrap=true"

Response body

Example Co. launches its new trail shoe

The Trail Runner 2 weighs 240 grams and ships on November 3.

Pre-orders open today on the Example store, with free returns for 60 days.

How it works

  1. 1

    Send the URL

    Call GET /fetch with url and formats=text.

  2. 2

    Grabber loads the page

    It follows redirects, loads the page and removes the markup, scripts and styles.

  3. 3

    Use the text

    Index it, classify it, embed it or compare it with yesterday. Errors cost nothing.

What people build with it

Search indexes

Fill a full-text search engine with the words of each page and nothing else.

Classification

Run topic, language or sentiment models on clean input instead of HTML.

Embeddings

Embed pages for similarity search when you do not need their headings or tables.

Change detection

Compare the text of a page over time, without layout changes showing up as edits.

Pricing

Prepaid credit, taken one request at a time. Ask for several formats in one request at the price of one.

RequestPrice
A page$0.001
A page with js_render=true$0.005
Any error$0
Credit when you sign up$1, about 1,000 pages

Questions

Something else? The docs cover every parameter and error, and you can reach us from the dashboard.

What is the difference between text and markdown?

Both hold the readable content of the page. Markdown keeps its structure, such as headings, lists, tables and links. Text has no markup at all. Use Markdown for language models and text when you only need the words.

Can I get the text and the links together?

Yes. Ask for formats=text,links and both come back in the JSON envelope, for $0.001.

Does it work on pages built with JavaScript?

Yes, with js_render=true. The page runs in a headless browser first, for $0.005 a page.

What happens when a page will not load?

You get an error with a stable code, such as fetch_failed, and nothing is charged.

Give your agents the web

Sign up in a minute and fetch your first 1,000 pages for free.