Web scraping & WHOIS API

Scrape any URL with one GET request

Fetch web pages and WHOIS records through a rotating pool of datacenter and residential (ISP) IPs. No SDK, no setup: the target's response comes back as-is.

100 free requests a day. No signup, no API key.

curl "https://api.scrapeapi.dev/?url=https://httpbin.org/ip"
Response200 OK
x-scrapeapi-target-status: 200
x-scrapeapi-duration-ms: 412
x-ratelimit-remaining: 99

{
  "origin": "203.0.113.42"
}

Rotating IPs

Requests are spread across datacenter and residential (ISP) exits that change over time.

WHOIS at scale

Look up IPs, networks and AS numbers. Rate-limited answers are retried from another IP.

Just HTTP

One GET endpoint with CORS enabled. Call it from curl, a script or the browser.

Pay per success

$0.005 per successful request. Failed requests are free, credits never expire.

Playground

Send a live request

Pick an example or enter your own target. This calls the real API straight from your browser.

Counts toward your 100 free requests a day

Response

Send a request to see the live response here.

Docs

API reference

One endpoint. Pass the target as a query parameter and get its response back.

Authentication

GEThttps://api.scrapeapi.dev/

Without a key, each IP address gets 100 requests a day, and X-RateLimit-Remaining on every response shows what is left. With a key there is no daily limit. Send it in the X-API-Key header, or as the key parameter where you can't set headers.

Parameters

ParameterDescription
Target · one is required
urlstringAbsolute http:// or https:// URL to fetch. Redirects are followed. URL-encode it if it has a query string of its own.
whoisQuerystringIP address, network or AS number to look up, e.g. 8.8.8.8 or AS15169.
URL options
headersJSON objectRequest headers to send, e.g. {"Accept":"text/html"}. Up to 20, printable ASCII only. Hop-by-hop headers such as Host and Connection are refused.
userAgentstringUser-Agent to send instead of the default. A User-Agent in headers takes precedence.
forceProxy1Route the request through a random proxy from the pool instead of the default exits.
WHOIS options
whoisServerhostnameAsk a specific server: whois.arin.net, whois.ripe.net, whois.apnic.net, whois.afrinic.net, whois.lacnic.net, whois.radb.net, whois.level3.net or rwhois.cogentco.com.
whoisPort1–65535Port for whoisServer, e.g. 4321 for rwhois.
stricttrueAnswer 429 or 502 instead of 200 when the final WHOIS response is rate-limited or incomplete.
refreshtrueSkip the WHOIS cache and store a fresh record.
Other
typeMIME typeContent-Type of the response. Defaults to text/html for URLs and text/plain for WHOIS.
keystringYour API key, if you can't send the X-API-Key header.

Examples

curl "https://api.scrapeapi.dev/?url=https://news.ycombinator.com"

Response

The body is the target's response, unchanged. If the target answers with an error page you still get a 200 with that page, so check X-ScrapeAPI-Target-Status. These headers describe what happened:

HeaderDescription
X-ScrapeAPI-Target-StatusHTTP status the target answered with.
X-ScrapeAPI-Duration-MsTime spent fetching the target, in milliseconds.
X-ScrapeAPI-AttemptsHow many exits were tried.
X-ScrapeAPI-Resultsuccess, or why an answer is suspect: rate-limited, partial, empty.
X-ScrapeAPI-Cachehit when a WHOIS record came from the short-lived cache.
X-RateLimit-RemainingFree requests left today, on requests without a key. X-RateLimit-Limit and X-RateLimit-Reset (Unix time) come with it.
X-Request-IDYour own X-Request-ID, or a generated one. Quote it when you contact support.

Errors

Errors are JSON:

{ "error": "Either url or whoisQuery is required", "code": "INVALID_REQUEST" }
StatusMeaning
400A parameter is missing or invalid; error says which.
429The free daily limit is used up (retryAfterSeconds says for how long), the queue is full, or a strict WHOIS lookup stayed rate-limited.
502The target could not be fetched. code and syscallCode, e.g. ENOTFOUND, say why.
503No exit is available right now. Retry with backoff.
504The target did not answer in time.

Pricing

Pay only for requests that succeed

No subscription. Buy credits once and use them at your own pace.

Free

$0

100 requests a day per IP address.

  • No signup, no API key
  • URL scraping and WHOIS
  • Resets every day
Open the playground