canonical: https://jentic.com/apis/smry.ai/smry

# smry Public Reader API

The smry Public Reader API extracts the readable content of a public web page and returns it as clean, source-grounded text with one paragraph per line, or as structured JSON blocks with metadata. A caller can narrow the result with a focused query, a paragraph range or a passage count, read up to ten URLs in one batch request, or start an asynchronous read job and poll it until the cached document is ready. The reader operations are credential-free and read-only, and a deterministic sandbox route lets a client test the JSON contract without fetching anything external.

## For AI agents

Read any public URL as clean paragraph text or structured JSON, focus the output on a query or paragraph range, and batch or queue reads without needing a credential.

## Scope

Does not handle site crawling, login-protected pages, or summarisation of the extracted text. Use for reading public URLs as clean text or structured JSON only.

## Capabilities

- Read a public URL as clean text with one paragraph per line via GET `/api/v1/read`
- Return structured JSON blocks for a page by posting url, query, lines, passages, and format to POST `/api/v1/read`
- Focus extraction on a question with the query field and cap the number of passages returned, up to 20
- Read between one and ten URLs in a single call through POST `/api/v1/read/batch`, with per-item results
- Queue a long-running read with POST `/api/v1/read/jobs` and poll GET `/api/v1/read/jobs/{jobId}` for completion
- Check source metadata without downloading the body using HEAD `/api/v1/read`

## Use cases

### Grounding an AI agent's answers in source pages through Jentic

A research agent connected through Jentic searches for 'read a public web page as clean text' and receives the readPublicSourceFromJson operation with its schema. It posts the page url with a query such as 'pricing' and a passages limit, and gets back only the relevant paragraphs as structured JSON, which keeps the agent's context small and lets it quote the source verbatim instead of paraphrasing a whole page.

Example prompt: Search Jentic for 'read a public web page as clean text', then call POST `/api/v1/read` with url 'https://example.org/blog/launch', query 'pricing', passages 5, format 'json' and a fresh Idempotency-Key header

### Batch reading for news digests

A daily digest needs the text of several articles at once. POST `/api/v1/read/batch` accepts between one and ten read requests, each with its own url and optional query, and returns an ordered result per item. Each item is rate-limited independently, so one failing source does not hide the others.

Example prompt: Call POST `/api/v1/read/batch` with a requests array of four entries, each with a news article url and format 'text', and collect the per-item results in order

### Asynchronous reads for slow sources

Some sources take longer to fetch than a synchronous request allows. POST `/api/v1/read/jobs` persists a read job and returns 202 Accepted, and the caller polls GET `/api/v1/read/jobs/{jobId}` until the state is complete or failed, then follows result_url to the cached document.

Example prompt: Call POST `/api/v1/read/jobs` with url 'https://example.org/annual-report', then poll GET `/api/v1/read/jobs/{jobId}` until the state is complete and fetch the document from result_url

### Testing a reader integration safely

Before wiring the reader into production, developers can call GET `/api/v1/sandbox/read` to receive a deterministic fixture that follows the Reader JSON contract without any external fetch, and HEAD `/api/v1/sandbox/read` to inspect its headers, so parsing code can be tested offline-style against a stable response.

Example prompt: Call GET `/api/v1/sandbox/read` and confirm the response parses with the same code used for POST `/api/v1/read` results

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/api/v1/read` | Read a public source as clean text |
| POST | `/api/v1/read` | Read a public source from a JSON request |
| HEAD | `/api/v1/read` | Read source metadata without the body |
| POST | `/api/v1/read/batch` | Read multiple sources in one batch |
| POST | `/api/v1/read/jobs` | Start an asynchronous read |
| GET | `/api/v1/read/jobs/{jobId}` | Poll an asynchronous read |

## Key resources

- **Read** — Read a public source as text or JSON by GET or POST, or inspect its metadata with HEAD
- **Batch read** — Read one to ten sources in a single request with ordered per-item results
- **Read jobs** — Start an asynchronous read and poll its state until the cached document is ready
- **Sandbox** — Deterministic fixture for exercising the Reader JSON contract

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 81 / 100
- **Maturity:** AI-Ready
- **Dimensions:**
  - Foundational Compliance: 93 / 100
  - Developer Experience & Jentic Compatibility: 70 / 100
  - AI-Readiness & Agent Experience: 72 / 100
  - Agent Usability: 94 / 100
  - Security: 90 / 100
  - AI Discoverability: 81 / 100
- **View full report:** https://jentic.com/apis/smry.ai/smry/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the smry reader by hand means generating an Idempotency-Key for each POST read, choosing between text and JSON output, and handling 429 backoff and asynchronous job polling yourself. Through Jentic you install once, import the smry Public Reader API from the API Directory, and your agent calls it with no credential to configure.
- **Permission scoping:** The smry reader takes the target url in the query string or request body, so rules bound which operations your agent may call, not which sites it reads. Limit the agent to the operations it needs, such as single-page reads, and leave batch reads or background jobs out unless you add them.
- **Credential handling:** The reader operations need no credential, so no secret is stored or passed for these calls. Requests still run through your own Jentic One instance, which logs each call.
- **Discovery method:** Agents search Jentic by intent such as 'read a public web page as clean text' or 'read several URLs at once', and Jentic returns the matching smry operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Jina AI API** — Reader and embedding services that turn URLs into LLM-friendly text
- **Firecrawl API** — Crawls and scrapes sites into markdown or structured data
- **Diffbot API** — Automatic extraction of articles, products, and entities from web pages
- **Browserless API** — Hosted headless browsers for rendering and automating pages

## FAQ

### What authentication does the smry Public Reader API use?

None for the reader itself. Per its OpenAPI spec, every reader operation is credential-free. The spec also declares an optional OAuth2 authorization-code scheme with smry:read and smry:write scopes, but it applies to the separate api.smry.ai account API rather than to these read endpoints.

### Can I extract only part of a page with the smry Public Reader API?

Yes. POST `/api/v1/read` accepts a query field for a focused question, a lines field for one paragraph number or an inclusive range such as 3-10, and a passages field from 1 to 20 that defaults to 8. Set format to json for structured blocks or text for plain paragraphs.

### What are the rate limits for the smry Public Reader API?

The OpenAPI spec does not state numeric limits, but the read responses carry RateLimit-Policy and RateLimit headers and the read operations can return 429. Have your agent read those headers and back off, and check https://smry.ai for current limits.

### How do I read a web page with the smry Public Reader API through Jentic?

Install Jentic One with `curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh` and add the smry Public Reader API from the Jentic API Directory. There is no credential to configure. Your agent searches for 'read a public web page as clean text', gets POST `/api/v1/read` with its schema, and sends the url plus a unique Idempotency-Key header. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Can I limit what my agent is allowed to do with the smry Public Reader API?

Yes. For example, write a rule that allows only GET `/api/v1/read` and HEAD `/api/v1/read`, and the agent can read single pages and check their metadata but cannot fan out batch reads or queue background jobs. Every call it makes is logged.

### How many URLs can I read in one smry batch request?

POST `/api/v1/read/batch` takes a requests array with between 1 and 10 entries, each shaped like a single read request with its own url and options. The response returns one result per item in order, and an item can fail without hiding the others.
