API Request

Parameters

To scrape a web page using the Shifter's Web Scraping API, simply use the API’s base endpoint and append the URL you would like to scrape as well as your API access key as GET parameters.

There is also a series of optional parameters you can choose from. On this page, you will find an example request used to scrape the URL http://httpbin.org/get

API Request Example

GET https://scrape.shifter.io/v1?api_key=api_key&url=https://httpbin.org/

⇡ Input

curl --request GET --url "https://scrape.shifter.io/v1?api_key=api_key&url=https%3A%2F%2Fhttpbin.org%2Fget"

⇣ Output

{
    "args": {},
    "headers": {
        "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
        "Accept-Encoding": "gzip, deflate, br",
        "Host": "httpbin.org",
        "Upgrade-Insecure-Requests": "1",
        "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.0 Safari/537.36",
        "X-Amzn-Trace-Id": "Root=1-6267b3eb-23a693e76b82605d44b1d103"
    },
    "origin": "104.144.25.118",
    "url": "https://httpbin.org/get"
}

Last updated