Web Scraping API: From URL to HTML, JSON, or Markdown in One Request

Send a URL or a search keyword. We handle proxy rotation, browser rendering, CAPTCHAs, and retries. Test it on your own targets.

  • $0.99 per 1,000 successful requests · 500 free credits until December 31, 2026
Web Scraping API: From URL to HTML, JSON, or Markdown in One Request

As seen on

Tech Advisor logo TechRadar logo CNBC logo GreekFlare logo PCMAG logo Tech Advisor logo TechRadar logo CNBC logo GreekFlare logo PCMAG logo

Tested on 739,000 Real-World URLs

A large technology company ran its own crawl list through our Web Scraping API on default settings from one account.

97.4%

URLs answered

2.4 s

Median response time

0

Rate-limit (429) responses

~30K

URLs per hour

Results by Site Type

Share of requests that returned the full page, by type of site.

Video & Social Platforms

99.6%+ delivered

Collect titles, descriptions, and metadata from public pages.

Large E-Commerce Marketplaces

99.7%+ delivered

Removed listings return the site's own not-found page, so you know what to drop.

Job & Review Sites

98.7%+ delivered

Monitor public job listings and review pages.

Your Scraper, Before and After

Proxy rotation, headless browsers, and retry logic move to our side. Your code keeps only the request.

Before: Your Own Scraper

You load and rotate a proxy pool, launch a headless browser for every attempt, and detect CAPTCHAs yourself. Failed attempts wait and retry up to five times. The helper functions for proxies, user agents, and CAPTCHAs are more code you also maintain.

#!/usr/bin/env bash

MAX_ATTEMPTS=5
mapfile -t PROXIES < <(load_proxy_pool proxies.txt)

fetch() {
  local url="$1" proxy html
  for ((attempt = 0; attempt < MAX_ATTEMPTS; attempt++)); do
    proxy="${PROXIES[RANDOM % ${#PROXIES[@]}]}"
    html=$(timeout 60 chromium --headless --disable-gpu \
      --proxy-server="$proxy" \
      --user-agent="$(random_ua)" \
      --dump-dom "$url" 2>/dev/null)
    # Chromium exits with 0 even when the page fails to load
    if [[ -n "$html" && "$html" != *"<body></body>"* && "$html" != *'"errorCode":"ERR_'* ]]; then
      if detect_captcha <<< "$html"; then
        html=$(handle_captcha "$url" "$proxy")
      fi
      printf '%s\n' "$html"
      return 0
    fi
    sleep $((2 ** attempt))
  done
  echo "All retries failed" >&2
  return 1
}

html=$(fetch https://example.com)

After: IPRoyal Web Scraping API

One POST request with your API token and the target URL. Everything else runs on our side. Blocked pages count as failed, and you pay nothing for them.

curl -X POST https://scrape.iproyal.com/v1/scrape \
  -H "Authorization: Bearer $WEB_SCRAPING_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"source": "universal", "url": "https://example.com"}' \
  --max-time 90

From Token to Data in 3 Steps

  • Copy your API token from the IPRoyal dashboard.

  • Send the target URL or keyword, plus the country you need.

  • Receive HTML, JSON, or Markdown. Each successful request uses one credit.

Read the Quick-Start Guide

Launch price until December 31, 2026

Web Scraping API Pricing

Try the Web Scraping API at no cost. After that, you pay $0.99 per 1,000 successful requests.*

  • 500 free credits, valid for 14 days
  • Failed requests cost nothing
  • Purchased credits never expire
Web Scraping API Pricing
Web Scraping API Pricing

Trusted By

Built for data teams of every size

Oracle logo
Digital Ocean logo
Best Buy logo
Target logo
University of San Diego logo
New York University logo

Frequently Asked Questions

What is a web scraping API?

A web scraping API is a service that collects website content for you. You send the page you need and get its content back, while the technical side of scraping runs in the background.

IPRoyal's version covers public web pages, Google search results, and images through a single endpoint. Call it from your own script or tool, such as Python, Node.js, cURL, or Postman. Proxies, browser rendering, CAPTCHAs, and retries are handled for you, and the output arrives as HTML, structured JSON, or Markdown.

How is the Web Scraping API different from using proxies?

With proxies, you get the IPs and your scraper does the rest: rotating them, running headless browsers, detecting failed pages, and retrying. Here you send a URL and get the page back. All of that work moves to our side.

What do I need to get started with the Web Scraping API?

An IPRoyal account and your own scraping setup. There is no visual crawler or no-code interface: you call the endpoint from your code. In the dashboard you manage your API token and send your first call with cURL, Python, Node.js, or any tool that makes HTTP requests.

Where can I find the Web Scraping API documentation?

The documentation covers every endpoint, parameter, error code, and supported country. The Quick-Start Guide shows how to find your token, test in the dashboard, and run a working Python example.

How does Web Scraping API pricing work?

The launch price is $0.99 per 1,000 successful requests until December 31, 2026. From January 1, 2027, it starts at $1.25.

One successful request uses one credit, whether you ask for a web page, Google search results, or an image. You are charged only when the content is delivered. Otherwise the credit returns to your balance. Calls rejected before scraping starts, such as those with an invalid token or over your concurrency limit, are free.

You buy credits in the dashboard, starting at 1,000. They never expire, so anything bought at the launch price stays yours after it changes.

Can I try it for free?

Yes. Until December 31, 2026, you can claim 500 free credits without approval or a waitlist. Select 'Web Scraping API' under 'Scraping products' in the left menu of your dashboard. They are valid for 14 days from that moment.

What formats do I get back?

Web pages come back as HTML by default, or as structured JSON or Markdown, which is useful for AI data pipelines. Google search results arrive as JSON, and images as a Base64 string. Every successful response also includes the HTTP status code the target website returned.

Which websites can I collect data from?

Publicly available data, as defined in our Acceptable Use Policy: public web pages, Google search results, and images at a known URL. Pages that require a login are not supported, and some website categories are restricted. You are responsible for following each website's terms and the laws that apply to your data collection.

What happens when a request fails?

It costs nothing. For short-term failures, such as a website being briefly unavailable, IPRoyal retries once before responding. If the second attempt also fails, you get an error code and a message explaining what went wrong.

Some errors can be retried as they are, such as reaching your concurrency limit. Others need a fix first, such as an invalid token or an empty balance. The documentation lists every code.

Is IPRoyal certified for security and compliance?

IPRoyal’s ISO 27001 and SOC 2 certifications are in progress. In addition, here's how we keep our network secure:

  • Every new supply partner passes a five-step review
  • Partners complete KYC and KYB before they join
  • Identity and consent are verified independently
  • Identity verified by an independent third party
  • The IP pool is scanned daily against public abuse databases
  • We don't work with reseller clients or unverifiable private networks

* Minimum order is 1,000 credits. Pricing changes from $0.99 to $1.25 per 1,000 credits from January 1, 2027. Open access is subject to our Terms of Service and Acceptable Use Policy.
** Some website categories are restricted. We confirm your targets during the call.