Skip to content
Login Sign up

Basic request

The simplest Web Scraping API call takes just two parameters: your api_key and the target url. The API responds with the raw HTML of the page, plus a few custom response headers that describe the request.

GET https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=<TARGET_URL>
ParameterTypeRequiredDescription
api_keystringyesYour Web Scraping API key
urlstringyesTarget URL to fetch

The API adds a few WSA- prefixed response headers to every successful scrape.

HeaderDescription
WSA-Client-CookiesJavaScript-generated cookies set after the target page loaded.
WSA-Scraped-HeadersResponse headers returned by the scraped URL.
WSA-Scraped-Resolved-UrlFinal URL after any redirects.
WSA-Call-Credit-UsageCredits consumed by this request.
WSA-Current-Credit-UsageYour total credit usage after this request.
Terminal window
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https://example.com"
<!doctype html>
<html>
<head>
<title>Example Domain</title>
</head>
<body>
<div>
<h1>Example Domain</h1>
<p>This domain is for use in illustrative examples in documents.</p>
<p><a href="https://www.iana.org/domains/example">More information...</a></p>
</div>
</body>
</html>