Status: Live
The Scrapestack API provides a simple and efficient way to scrape web pages at scale without the hassle of dealing with geolocations, IP blocks, or CAPTCHAs. It is designed for developers and businesses looking to extract data from websites quickly and reliably.
With Scrapestack, you can perform various scraping tasks, including:
- JavaScript rendering to capture dynamic content.
- Custom HTTP headers for tailored requests.
- Geo-targeting to scrape content from specific locations.
- Support for POST/PUT requests to interact with web forms.
- Access to premium residential proxies for enhanced scraping capabilities.
The API is built on a straightforward HTTP GET URL structure, making it easy to integrate into your applications. Responses are provided in lightweight JSON format, ensuring quick parsing and usability.
Examples
Basic Scrape Example
GET https://api.apilayer.net/scrapestack/scrape?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fexample.comThis request will scrape the content of https://example.com and return the raw HTML response.
POST Scrape Example
POST https://api.apilayer.net/scrapestack/scrape?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fexample.com
Content-Type: application/json
{
"foo": "bar"
}This request will send a POST request to https://example.com with a JSON body containing {"foo": "bar"}.
Scrape with JavaScript Rendering
GET https://api.apilayer.net/scrapestack/scrape?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fexample.com&render_js=1This request enables JavaScript rendering, allowing you to scrape content that is dynamically generated by JavaScript on the target page.
Geo-Targeted Scrape with Premium Proxies
GET https://api.apilayer.net/scrapestack/scrape?access_key=YOUR_ACCESS_KEY&url=https%3A%2F%2Fexample.com&proxy_location=de&premium_proxy=1This request scrapes https://example.com through a premium residential proxy located in Germany (proxy_location=de). Set premium_proxy=1 to route via residential IPs.
Additional Resources
For any questions or issues, contact our support team.