Rasa RekaAll APIs
Free trial · no server to run

URL & Document to Markdown API for LLMs and RAG

Turn web pages, PDF, Word and Excel files into clean Markdown for LLMs, RAG and AI agents. Main content only, GFM tables, token counts and ready-made chunks. Respects robots.txt.

Checking live status…
URL & Document to Markdown API for LLMs and RAG example request and response

Try it live

Real requests to the live API, no sign-up. Edit the inputs and press Run. The code below updates as you type, ready to paste into your app. The demo is rate limited; use a free trial key for full access.

This request in your code

What you get

  • Main content only: no menus, footers or cookie banners
  • GFM tables, fenced code, absolute links
  • PDF, DOCX, XLSX, XLS, ODT, ODS, CSV up to 10 MB
  • Token estimate and RAG chunks on heading boundaries
  • JavaScript rendering for single-page apps
  • Title, author, date and language metadata

Use cases

  • RAG pipelines and vector databases
  • AI agents that read the web
  • Knowledge-base import (PDF, Word, Excel)
  • Content migration and archiving

Quick start

Subscribe on either marketplace to get a key and put it in an environment variable (API_MARKET_KEY or RAPIDAPI_KEY). Then run one of these. The same API runs behind both marketplaces, and every snippet is checked before it is published.

curl "https://prod.api.market/api/v1/rasareka/markdown/markdown/v1/url?url=https://en.wikipedia.org/wiki/Markdown&chunk_size=500" \
  -H "x-api-market-key: $API_MARKET_KEY"

Example response

{
  "title": "Markdown",
  "extracted": "article",
  "markdown": "# Markdown\n\n**Markdown** is a lightweight markup language...",
  "word_count": 3066,
  "token_estimate": 9500,
  "chunks": [
    {
      "index": 0,
      "heading": "Markdown",
      "tokens": 439
    },
    "... 22 chunks"
  ]
}

Pricing

PlanAPI.market
Free trial100 calls
Pro$14.99 / month for 5,000
Pay as you go$0.005 per call

RapidAPI has its own free Basic plan and monthly tiers. See the listing for current prices.

FAQ

Which sites can it read?

Public pages only. It respects robots.txt and 'noai' opt-outs, never logs in, never bypasses paywalls or anti-bot protection, and refuses sites whose terms forbid scraping (the list is at /v1/policy).

How fast is it?

Most pages convert in under 1.5 seconds, documents in under 1 second. JavaScript rendering adds about 2 seconds.

How are tokens counted?

token_estimate is about 4 characters per token, close to common LLM tokenizers for English. Use it for budgeting, not billing.

What about scanned PDFs?

Text-based PDFs work best. Scanned image-only PDFs may return little text.

Who runs this API?

Rasa Reka Enterprise, a registered software studio in Malaysia. It runs on Cloudflare's global edge network. Questions: hello@rasareka.com.

More APIs

PDF & Screenshot API

HTML/URL to PDF, PNG, JPEG, WebP

Convert any URL or your own HTML to PDF, or capture PNG/JPEG/WebP screenshots, with a real Chromium browser.

Details →

Email Validator API

MX, disposable, typo check

Validate email addresses in real time.

Details →

Phone Number Validator API

245 countries, line type, E.164

Validate, format and classify phone numbers from 245 countries.

Details →