Generally availableIncluded on every plan

Screenshot, PDF, HTML, Markdown and JSON from one page load

Add an outputs array to a screenshot request. The page loads once, every output is read from that same page, and the request costs one credit.

Up to 10 outputs per request. No credit card for the Free plan.

Outputs
POST /v1/screenshots
{
  "url": "https://en.wikipedia.org/wiki/Web_scraping",
  "viewport": {
    "width": 1280,
    "height": 800
  },
  "outputs": [
    {
      "type": "screenshot",
      "format": "png"
    },
    {
      "type": "markdown"
    },
    {
      "type": "json"
    }
  ]
}
Screenshot output: the Wikipedia article on web scraping at 1280 × 800.

outputs.screenshot: image/png · 294 KB

1 page load · 1 credit · 3 outputsReal capture of en.wikipedia.org, rendered in 7.2 s with all five outputs

Toggle outputs to see the request change. The responses are from one real request to the Wikipedia article on web scraping.

One page, five outputs

What that one request returned, rendered in 7.2 seconds.

1 request

POST /v1/screenshots with outputs

1 page load

Navigate, block ads and banners, run actions, wait until ready
  • screenshotPNG, JPEG or WebP
  • pdfapplication/pdf
  • htmlcleaned page HTML
  • markdownmain content
  • jsonselectors, page data or AI
One request loads the page once and every output is read from that same page. It counts as one screenshot however many outputs it has (up to 10).

Screenshot

screenshot

PNG, 1280 × 800, 294 KB

The viewport, the full page or one element, as PNG, JPEG or WebP.

Screenshot output: the Wikipedia article on web scraping.

PDF

pdf

A4, 9 pages, 306 KB

The page as the browser prints it, backgrounds included.

The first page of the PDF output of the same article.

HTML

html

419 KB

The page with scripts removed, styles kept and every link made absolute. Or just the article.

Markdown

markdown

49 KB, article only

The main content without menus and footers, plus the title, author and publish date it found.

JSON

json

41 KB in auto mode

The page’s own data, the fields your CSS selectors point to, or a JSON Schema filled in by AI.

JSON three ways

A JSON output can read the page's own data, follow your selectors, or fill in a schema with AI. We ran all three.

mode: auto

Auto

You want the page’s own data with no setup.

{ "type": "json" }

Real result: Title, canonical URL, a JSON-LD Article, 20 headings, 426 links and 5 images from the Wikipedia article.

mode: selector

Selectors

You know the page and want the same fields every time.

{ "type": "json", "schema": {
  "books": { "selector": "article.product_pod", "multiple": true,
    "fields": { "title": { "selector": "h3 a", "type": "attribute", "attribute": "title" },
                "price": { "selector": ".price_color" } } } } }

Real result: 11 books with title, price, stock and full URLs from a store listing, in 6.0 seconds.

mode: ai

AI

You want specific fields without writing selectors.

{ "type": "json", "mode": "ai", "schema": {
  "type": "object",
  "properties": { "techniques": { "type": "array", "items": { "type": "string" } } } } }

Real result: A summary, 8 techniques and 9 court cases with years from the same article, using one AI extraction.

The Travel category of books.toscrape.com, a grid of book covers with titles and prices.
The page behind the selector example, captured as a screenshot output of the same request.

One call instead of five tools

ComparisonFive separate toolsAllscreenshots outputs
Page loadsOne per tool, often 51
Screenshot and text matchNot guaranteed: the page can change between loadsYes: they come from the same page load
Requests to make5, plus glue code1
Pages that need JavaScriptOnly the tools that run a browser see themEvery output sees the rendered page
Ads, cookie banners, popupsEach tool handles them, or notBlocked once for all outputs
CostA bill or a quota per tool1 screenshot credit

One credit, however many outputs

A request with outputs counts as one screenshot. Only AI-mode JSON uses something extra: one AI extraction from your monthly allowance.

curl -X POST https://api.allscreenshots.com/v1/screenshots \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://en.wikipedia.org/wiki/Web_scraping", "outputs": [ { "type": "screenshot", "format": "png" }, { "type": "pdf", "format": "A4" }, { "type": "html" }, { "type": "markdown" }, { "type": "json" } ] }'

The response is JSON with one entry per output, in type order. Images and PDFs are base64, Markdown and HTML are strings, JSON is an object, and each output has a download URL that works for 7 days.

Questions

What does a request with several outputs cost?

One screenshot credit, however many outputs it has, up to 10. A JSON output in AI mode also uses one AI extraction from your plan’s monthly allowance. Failed requests are free.

Which plans have it?

Every plan, Free included.

Can I get two screenshots of the same page load?

Yes. Give each output an id, for example a full-page screenshot and a screenshot of one element. Each output has its own options.

In what order do outputs come back?

By type: screenshot, PDF, HTML, Markdown, JSON, whatever order you send them in. Read each one by its id.

What happens if one output fails?

The others still come back. A selector that matches nothing returns null, an invalid selector is listed in that output’s errors, and an AI output that can’t be filled returns an error without using an extraction.

Does it work with async, bulk and schedules?

Yes. Async jobs, every item of a bulk request and every scheduled run store all outputs, each with its own download URL. Outputs are kept for 7 days.

What can’t I combine it with?

Stealth mode and AI cleanup. Everything about loading the page, such as blocking, actions, sessions, waits and dark mode, works as usual.

How is this different from the website crawler?

Outputs give you one page in up to ten forms. The website crawler follows a site’s links and captures up to 100 pages, each as a screenshot, HTML, Markdown and a JSON page document.

Get everything from your next URL

Every plan has outputs, Free included. For a whole site, use the website crawler.