Features · Partner

A web scraping API that gives you clean text

URLtoText.com turns any web page into clean text, Markdown or HTML with one API call. Menus, ads and cookie banners are stripped out, so you get the content and nothing else. Built for apps, RAG pipelines and LLM datasets.

How it works

  1. 1Sign up on URLtoText.comCreate your account on URLtoText.com to get API access.
  2. 2Send a URLPOST the page URL to the API and pick your output: text, Markdown or HTML. Examples in cURL, Python, JavaScript and PHP are in the docs.
  3. 3Get clean content backThe API returns the page's content, ready for your app, your database or your LLM. You pay per request in credits.

What you get

Text, Markdown or HTML

Choose the format that fits your pipeline. Markdown keeps headings and links for LLMs.

AI main content extraction

Keep just the article or page body. Menus, ads, cookie banners and code are stripped out.

JavaScript rendering

Renders JavaScript heavy pages before extracting, with an optional extra wait for slow content.

Residential proxies

Residential and premium residential IPs for sites that are hard to scrape.

CSS selectors and AI prompts

Pull only the part of the page you need, or run an AI prompt over the content.

YouTube and PDFs too

Get YouTube transcripts (with timestamps) and convert PDFs to text with the same API.

Pay per request

Credits are only spent on what you use. Extras like proxies and JavaScript rendering are options you turn on per request.

Try it free first

Convert pages for free on URLtoText.com without an account, then sign up when you need the API.

One request

curl -X POST https://urltotext.com/api/v1/urltotext/ \
  -H "Authorization: Token YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "output_format": "markdown",
    "extract_main_content": true,
    "render_javascript": true
  }'

Web Scraping API is provided by our partner URLtoText.com.