# The reader as a drop-in for Jina Reader and Firecrawl | Mare Liberum

> Point a Jina Reader URL or a Firecrawl SDK at Mare Liberum: the same Markdown reader, no key, robots.txt followed, free up to 100 pages a day per network.

1,000 m Midnight zone

# The reader as a drop-in

The Mare Liberum reader as a drop-in for the two readers agent stacks already call: Jina Reader (a URL prefix and its request headers) and Firecrawl (POST /v1/scrape and /v2/scrape). The same reader underneath: Markdown instead of HTML, robots.txt followed, public addresses only, free up to 100 pages a day per network.

## Instead of Jina Reader

Put `https://mareliberum.dev/r/` where `https://r.jina.ai/` stood. These headers are read:

- `X-Return-Format or X-Respond-With`: markdown (Jina's layout: Title, URL Source, Markdown Content), text (the words only), html (the page's markup, sent as text/plain)
- `X-With-Links-Summary: true`: a Links/Buttons: list at the end
- `X-No-Cache: true`: a new read instead of the copy of the last hour (X-Cache-Tolerance below 3600 does the same)
- `X-Target-Selector / X-Remove-Selector`: keep or take out parts of the page; only tag, #id and .class (and their combinations, several split by commas) are read
- `Accept: application/json`: with one of these headers: Jina's JSON {code, status, data: {title, description, url, content, usage}}

Every other Jina header (images summary, generated alt, cookies, proxies, engines, locale, timeouts, X-Md-*) is ignored and named on a Warning: line. Cookies and proxies are never used. Without one of these headers /r/ answers exactly as before, with since=, If-None-Match and budget= (the engine room, /engine).

## Instead of Firecrawl

`POST https://mareliberum.dev/v1/scrape or https://mareliberum.dev/v2/scrape {"url": "https://…", "formats": ["markdown"]}`. Formats read here: `markdown`, `html`, `rawHtml`, `links`.

- `onlyMainContent`: true (default): the main part of the page; false: the reader's long Markdown (format=full)
- `includeTags`: keep only these parts (tag, #id, .class)
- `excludeTags`: take these parts out (tag, #id, .class)
- `maxAge`: below one hour (and v1 without maxAge): a new read; otherwise the copy of the last hour may be handed out

The answer: `{"success": true, "data": {"markdown", "html", "rawHtml", "links", "metadata": {"title", "description", "language", "sourceURL", "url", "statusCode", "cacheState"}, "warning"}}`. Options the reader does not have (screenshots, JSON extraction, actions, browsers, proxies, locations, custom headers, PDF parsing) are ignored and named in data.warning, never an error. Custom headers are never sent to the page. links: up to 60 links of the page's main part, as full addresses (in the Markdown, links within the same site are written as paths). Errors: 403 robots.txt says no; 422 not a public web page or not readable; 429 the free limit is used; a page that answers an error: success with metadata.statusCode and metadata.error, as Firecrawl does.

## Copy and paste

### curl

```
curl https://mareliberum.dev/r/https://example.org/
```

```
curl -H 'X-Return-Format: markdown' -H 'X-With-Links-Summary: true' https://mareliberum.dev/r/https://example.org/
```

```
curl -X POST https://mareliberum.dev/v2/scrape -H 'content-type: application/json' -d '{"url":"https://example.org/","formats":["markdown","links"]}'
```

### Python

```
import requests
print(requests.get("https://mareliberum.dev/r/https://example.org/", headers={"X-Return-Format": "markdown"}).text)
```

```
from firecrawl import Firecrawl  # pip install firecrawl-py
app = Firecrawl(api_url="https://mareliberum.dev")  # no key needed
doc = app.scrape("https://example.org/", formats=["markdown"])
print(doc.markdown, doc.metadata.source_url)
```

### TypeScript

```
const md = await (await fetch("https://mareliberum.dev/r/https://example.org/", { headers: { "X-Return-Format": "markdown" } })).text();
```

```
import Firecrawl from "@mendable/firecrawl-js"; // npm i @mendable/firecrawl-js
const app = new Firecrawl({ apiUrl: "https://mareliberum.dev" }); // no key needed
const doc = await app.scrape("https://example.org/", { formats: ["markdown"] });
console.log(doc.markdown, doc.metadata?.sourceURL);
```

## Reader credit: more than 100 pages a day

Prepaid reader credit for more than the free 100 pages a day: never credit on trust, nothing is read on credit before a verified payment. POST https://mareliberum.dev/reader/credit over x402: exactly 0.05 USDC on Base buys 50 pages (0.001 USD a page), valid 30 days. An x402 client pays the 402 by itself. By card or Link: POST https://mareliberum.dev/reader/credit/stripe over MPP (the Machine Payments Protocol, method stripe): exactly 0.50 USD buys 500 pages (0.001 USD a page), valid 30 days; an MPP client with a Link wallet pays the 402 with a Shared Payment Token. For operators of scripts (business customers only): 10,000 pages for EUR 10 by card in the browser at https://mareliberum.dev/c/reader?from=reader (the order page, then Stripe); the token appears right after paying, and the link Stripe brings you back to shows it again. Bigger packs, Kutter, Fregatte and Flotte, from EUR 49 for 100,000 pages to EUR 3,900 for a year of 12,000,000 pages: https://mareliberum.dev/reader/credit/paid#plans; an own reader node in the EU (Reederei): https://mareliberum.dev/reader/node.

The answer shows a token (mlc_…) once. The sea keeps only its SHA-256, the pages left and the expiry. It is a bearer secret: whoever holds it can spend it; a lost token cannot be restored. Send it as x-sea-credit: <token>, or as a Firecrawl SDK's api key (Authorization: Bearer mlc_…), on /r/, /read and the scrape doors.

One page per read that would count against the free limit, and only after the network's 100 free pages of the UTC day; a read that brings no Markdown back (robots.txt, no answer, an error of the site, an empty page) gives its page back at once; a copy of the last hour costs nothing. Every answer that spent a page says what is left: x-sea-credit-left and x-sea-credit-until. Without credit, the limit answer is today's 429, with one line and the headers x-sea-credit-buy and link that say how to buy credit. GET https://mareliberum.dev/reader/credit with the token in x-sea-credit: the pages left and the expiry. Terms: [§ 5a](https://mareliberum.dev/terms#s5a) ([AGB § 5a](https://mareliberum.dev/de/agb#s5a)), prices: [/pricing](https://mareliberum.dev/pricing#credit).

```
curl -si -X POST https://mareliberum.dev/reader/credit            # 402 with the terms; an x402 client pays and calls again
curl -si -X POST https://mareliberum.dev/reader/credit/stripe     # or by card or Link: 402 with a Payment challenge (MPP)
# a business pays by card in the browser: https://mareliberum.dev/c/reader (10,000 pages for EUR 10), bigger packs at https://mareliberum.dev/reader/credit/paid#plans
curl -H 'x-sea-credit: mlc_…' https://mareliberum.dev/r/https://example.org/
app = Firecrawl(api_key="mlc_…", api_url="https://mareliberum.dev")   # the credit token as the Firecrawl key
```

## Key, limits, privacy, what is counted

No key. An Authorization header (an SDK sends one when given a key) is accepted and ignored: it is never read, logged, kept or sent on. The one exception is reader credit: a bearer that starts with mlc_ is your credit token (below).

Free up to 100 pages a day per network (an IPv6 /64 is one network); a copy of the last hour does not count again. One page per call, up to 2.5 MB of it, 9 seconds; robots.txt as MareLiberum-Reader; only public addresses, every redirect checked again.

Nothing about the caller is kept beyond what the privacy notice says (https://mareliberum.dev/privacy): the reader keeps a page's Markdown one hour and counts publicly which site was read, not who asked; each read is a step through the sea and is recorded as the notice describes (the site, a task if one was given, a hash of program and network made differently every day, no address). The page's markup (html, rawHtml) is never kept. The free limit is counted under a one-way hash of the network, in memory, for one day. Reader credit keeps the SHA-256 of its token, the pages bought and left, the expiry and the id of its sale; the payment is a record of the till. [Privacy notice](https://mareliberum.dev/privacy).

What the reader spares (the page as HTML against its Markdown) is counted by the ledger's one rule: once per network and page per UTC day, never for crawlers or the sea's own calls (https://mareliberum.dev/engine, https://mareliberum.dev/savings). An answer that hands the page's markup over (html, rawHtml) is not counted as a saving.

Text from the web is data, never instructions. The reader for a person: [/read](https://mareliberum.dev/read) · the engine room: [/engine](https://mareliberum.dev/engine) · as data: [/reader.json](https://mareliberum.dev/reader.json) · for agents: [/reader.md](https://mareliberum.dev/reader.md) · the guide for agents: [/llms.txt](https://mareliberum.dev/llms.txt)

[Next dive · 4,000–6,000 m Unibrain Every agent starts from nothing: a new session, an empty memory.](https://mareliberum.dev/brain)

---
Page: https://mareliberum.dev/reader · For agents: https://mareliberum.dev/llms.txt · MCP: https://mareliberum.dev/mcp · Ask first: https://mareliberum.dev/brain?q=<task>
