Skip to content
Live

URL Scraper

Any page, in the format you need.

Point it at a public URL and choose the outputs: Markdown for LLMs, raw or cleaned HTML, links, every image on the page, or a screenshot. If a site blocks the request, it is retried automatically.

Scripts:url_scraper

Example

One request, one response.

Every scraper runs through POST /v1/run with your key in the x-api-key header.

In the response, values in <angle brackets> stand for real data and arrays are shortened to one item.

curl -X POST https://api.datafor.dev/v1/run \
  -H "Content-Type: application/json" \
  -H "x-api-key: $DATAFOR_API_KEY" \
  -d '{
  "script_name": "url_scraper",
  "params": {
    "url": "https://example.com",
    "formats": "markdown,links"
  }
}'

Capabilities

What it does today.

  • Seven output formats

    Live

    markdown, raw_html, cleaned_html, links, images, screenshot and full_page_screenshot — mix them in one run.

  • Every image, grouped

    Live

    images returns <img> tags plus lazy-load and srcset URLs, CSS backgrounds, meta and JSON-LD images and URLs inside page scripts, each tagged with where it was found.

  • Retry when blocked

    Live

    A 403, 429 or bot-check page is retried automatically, at no extra cost.

  • Geo targeting

    Live

    Choose an exit country, and a region where supported.

  • Residential pool

    Live

    Route through residential exits for stricter sites. Costs more — see credits below.

  • Device profiles

    Live

    Capture as desktop, mobile or tablet.

Credits

How credits work.

1 credit per run. Runs with use_proxy=true and residential=true cost 10 credits, because residential exits cost much more per request.

Each run is charged when it starts. If the worker fails or times out, the credit is refunded automatically and the run is marked as refunded. Every response shows the cost and your remaining balance.

At one credit per run, 1,000 runs cost from $0.38 on a paid plan. Price per 1,000 runs by plan

See pricing

FAQ

Questions about URL Scraper.

Does it work on pages behind a login?

No. It fetches public pages only; there is no session or identity support.

Can it crawl a whole site?

Not yet — one URL per run. Use the links format to collect URLs and call it for each one. A crawler is planned.

Why do screenshots need use_proxy?

Screenshots are captured by our rendering layer, which is enabled with use_proxy=true.

What if the site still blocks the request?

Retry with use_proxy=true and residential=true. Failed runs are refunded.

Does it run JavaScript?

No. It reads the HTML the server returns, including data embedded in scripts. Pages that build all their content in the browser may come back mostly empty.

Related

Deep Crawler

Follow links across a site and return every page. Planned.
See what is planned

Browser Automation

Scripted clicks, typing and scrolling in a real browser. Planned.
See what is planned
Live

SERP API

Google organic results plus shopping cards, by country and language.
View product

Run your first URL Scraper call.

50 free credits to start, after email verification. No credit card.