Rasa RekaAll APIs
Free trial · no server to run

HTML to PDF & Website Screenshot API

Convert any URL or your own HTML to PDF, or capture PNG/JPEG/WebP screenshots, with a real Chromium browser. Headers, footers, page numbers, full page, dark mode.

What you get

  • PDF: A3, A4, A5, Letter, Legal, Tabloid, landscape, margins
  • Header and footer templates with page numbers
  • Screenshots: PNG, JPEG, WebP, retina, full page
  • Capture one element with a CSS selector
  • Hide cookie banners, inject CSS, dark mode
  • Send a URL or your own HTML

Use cases

  • Invoices and receipts
  • Reports and certificates
  • Event tickets
  • Website thumbnails and social images
  • Visual monitoring and archiving

Quick start

Subscribe on either marketplace to get a key, then call the endpoint. The same API runs behind both.

API.market (curl)

curl -X POST "https://prod.api.market/api/v1/rasareka/pdf-screenshot/render/v1/pdf" \
  -H "x-api-market-key: YOUR_API_MARKET_KEY" \
  -H "content-type: application/json" \
  -d '{"html":"<h1>Invoice #1001</h1><p>Total: $49</p>","paper":"A4","margin":"15mm"}'

RapidAPI (curl)

curl -X POST "https://pdf-screenshot-html-url-to-pdf-png-jpeg.p.rapidapi.com/v1/pdf" \
  -H "x-rapidapi-key: YOUR_RAPIDAPI_KEY" \
  -H "x-rapidapi-host: pdf-screenshot-html-url-to-pdf-png-jpeg.p.rapidapi.com" \
  -H "content-type: application/json" \
  -d '{"html":"<h1>Invoice #1001</h1><p>Total: $49</p>","paper":"A4","margin":"15mm"}'

JavaScript

const res = await fetch("https://prod.api.market/api/v1/rasareka/pdf-screenshot/render/v1/pdf", {
  method: "POST",
  headers: { "x-api-market-key": process.env.API_MARKET_KEY, "content-type": "application/json" },
  body: JSON.stringify({"html":"<h1>Invoice #1001</h1><p>Total: $49</p>","paper":"A4","margin":"15mm"}),
});
console.log(res.status);

Example response

(PDF file)

Pricing

PlanAPI.market
Free trial50 calls
Pro$9.99 / month for 2,000
Pay as you go$0.008 per call

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

FAQ

How long does a render take?

Usually 2-4 seconds with a warm browser, up to about 10 seconds for heavy pages.

Can I render pages behind a login?

No. Only public URLs, or send your own HTML.

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

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 →

URL Preview API

Open Graph, meta, link unfurl

Turn any link into a rich preview card.

Details →