Links

Block Ads & Trackers

You have the power to scrape only the content of the targeted website, no ads, no trackers.
This feature allows you to easily block ads and trackers, such that HTML you are scraping won't include these elements. Moreover, this features can also speed up the reesponse time. To enable the ads blocker feature, simply add block_adds=1 to your request.
When block_ads=1, you can also set the trackers blocking feature, by adding block_trackers=1.
Note that block_ads only works when render_js=1 and block_trackers only works when block_ads=1.
Your full GET request should then be sent to the following address:
https://api.webscrapingapi.com/v1?api_key=<YOUR_API_KEY>&url=<TARGETED_URL>&render_js=1&block_ads=1&block_trackers=1

Block Resources Integration Examples

cURL
NodeJS
Python
PHP
Go
Java
.NET
Ruby
curl --request GET --url "https://api.webscrapingapi.com/v1?api_key=<YOUR_API_KEY>&url=https://adblock-tester.com/&render_js=1&block_ads=1&wait_for=20000&block_trackers=1"
const http = require("https");
const options = {
"method": "GET",
"hostname": "api.webscrapingapi.com",
"port": null,
"path": "/v1?api_key=%7B%7Bapi_key%7D%7D&url=https://adblock-tester.com/&render_js=1&block_ads=1&wait_for=20000&block_trackers=1",
"headers": {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
import requests
API_KEY = '<YOUR_API_KEY>'
SCRAPER_URL = 'https://api.webscrapingapi.com/v1'
TARGET_URL = 'https://adblock-tester.com/'
PARAMS = {
"api_key":API_KEY,
"url": TARGET_URL,
"render_js":1,
"block_ads":1,
"block_trackers":1,
"wait_for":20000,
}
response = requests.get(SCRAPER_URL, params=PARAMS)
print(response.text)
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.webscrapingapi.com/v1?api_key=%7B%7Bapi_key%7D%7D&url=https://adblock-tester.com/&render_js=1&block_ads=1&wait_for=20000&block_trackers=1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.webscrapingapi.com/v1?api_key=%7B%7Bapi_key%7D%7D&url=https://adblock-tester.com/&render_js=1&block_ads=1&wait_for=20000&block_trackers=1"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.get("https://api.webscrapingapi.com/v1?api_key=%7B%7Bapi_key%7D%7Durl=https://adblock-tester.com/&render_js=1&block_ads=1&wait_for=20000&block_trackers=1")
.asString();
var client = new RestClient("https://api.webscrapingapi.com/v1?api_key=%7B%7Bapi_key%7D%7Durl=https://adblock-tester.com/&render_js=1&block_ads=1&wait_for=20000&block_trackers=1");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.webscrapingapi.com/v1?api_key=%7B%7Bapi_key%7D%7Durl=https://adblock-tester.com/&render_js=1&block_ads=1&wait_for=20000&block_trackers=1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
Important! The url parameter has to be encoded. ( i.e. &url=https%3A%2F%2Fwww.webscrapingapi.com%2F )
<!DOCTYPE html>
<html lang="en" class="night-mode-off">
<head>
<title>AdBlock Tester: test your AdBlock extensions</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/src.5b3618ca.css">
<script type="text/javascript" src="//an.yandex.ru/system/context.js" async=""></script>
<script src="/head.inject.baedb670.js"></script>
<link rel="stylesheet" href="/src.675dd785.css">
<style id="svelte-nb3l02-style">
.night-mode.svelte-nb3l02,
label.svelte-nb3l02 {
display: flex;
justify-content: flex-end;
align-items: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none
}
label.svelte-nb3l02 {
cursor: pointer
}
.text.svelte-nb3l02 {
padding: 0 1rem;
font-size: 1rem;
line-height: 1
}
@media(max-width:768px) {
.text.svelte-nb3l02 {
font-size: .9rem
}
}
.switcher.svelte-1t0grtm.svelte-1t0grtm {
--switcher-height: 1.5rem;
--switcher-width: calc(var(--switcher-height)*1.8);
--switcher-space: 3px;
--switcher-bullet-height: calc(var(--switcher-height) - var(--switcher-space)*2)
}
[data-small=true].svelte-1t0grtm.svelte-1t0grtm {
--switcher-height: 1.25rem;
--switcher-space: 2.5px
}
@media(max-width:768px) {
.switcher.svelte-1t0grtm.svelte-1t0grtm {
--switcher-height: 1.25rem;
--switcher-space: 2.5px
}
[data-small=true].svelte-1t0grtm.svelte-1t0grtm {
--switcher-height: 1rem;
--switcher-space: 2px
}
}
.switcher.svelte-1t0grtm.svelte-1t0grtm {
display: block;
position: relative;
z-index: 100;
width: var(--switcher-width);
height: var(--switcher-height);
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer
}
.switcher.svelte-1t0grtm input.svelte-1t0grtm {
display: none
}
.slider.svelte-1t0grtm.svelte-1t0grtm {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: var(--text-color);
transition: background-color var(--speed-quick) ease
}
.slider.svelte-1t0grtm.svelte-1t0grtm:before {
position: absolute;
bottom: var(--switcher-space);
left: var(--switcher-space);
width: var(--switcher-bullet-height);
height: var(--switcher-bullet-height);
background-color: var(--bg-color);
content: "";
transition: background-color var(--speed-quick) ease, transform var(--speed-quick) ease
}
input:checked+.slider.svelte-1t0grtm.svelte-1t0grtm {
background-color: var(--color-green)
}
input:checked+.slider.svelte-1t0grtm.svelte-1t0grtm:before {
transform: translateX(var(--switcher-bullet-height))
}
.slider.round.svelte-1t0grtm.svelte-1t0grtm {
border-radius: var(--switcher-height)
}
.slider.round.svelte-1t0grtm.svelte-1t0grtm:before {
border-radius: 50%
}
.title.svelte-1rso0mc {
display: flex;
align-items: center;
margin-top: 3rem;
margin-bottom: 1.5rem
}
@media(min-width:768px) {
.title.svelte-1rso0mc {
flex-wrap: wrap;
margin-top: 2rem
}
}
h1.svelte-1rso0mc {
margin: 0 .25em 0 0;
line-height: 1
}
@media(max-width:768px) {
h1.svelte-1rso0mc {
line-height: .8
}
}
.heading-text.svelte-1rso0mc,
.heading-version.svelte-1rso0mc {
line-height: 1
}
img.svelte-1rso0mc {
flex-shrink: 0;
margin-right: .5rem;
height: 6rem;
transform: translateY(-5%)
}
@media(max-width:768px) {
img.svelte-1rso0mc {
height: 4rem;
font-size: 4rem;
margin-right: 1rem
}
}
.warning.svelte-1rso0mc {
margin: 2rem 0 0;
padding-left: 1.5rem;
border-left: .3em solid var(--color-orange)
}
@media(max-width:768px) {
.warning.svelte-1rso0mc {
margin: 1.5rem 0
}
}
.section-container.svelte-auebxm {
margin-top: 3rem
}
@media(max-width:768px) {
.section-container.svelte-auebxm {
margin-right: calc(var(--body-hmargin)*-1);
margin-left: calc(var(--body-hmargin)*-1)
}
}
@media(min-width:768px) {
.section-container.svelte-auebxm {
max-width: 100%;
display: inline-flex;
flex-direction: column
}
}
.check-list.svelte-auebxm {
padding-left: 0;
list-style-type: none;
margin: 0
}
.section.svelte-t54epl.svelte-t54epl {
background: #fff;
box-shadow: 0 0 .5rem rgba(0, 0, 0, .05);
margin-bottom: 1rem
}
.night-mode-on .section.svelte-t54epl.svelte-t54epl {
background: rgba(0, 0, 0, .1)
}
.block.svelte-t54epl.svelte-t54epl {
padding: 1.5rem 2rem;
transition: background var(--speed-quick) ease, opacity var(--speed-quick) ease
}
.block.inactive.svelte-t54epl.svelte-t54epl {
opacity: .5
}
@media(max-width:768px) {
.block.svelte-t54epl.svelte-t54epl {
padding-right: var(--body-hmargin);
padding-left: var(--body-hmargin)
}
}
.service.svelte-t54epl.svelte-t54epl {
margin-top: 2rem;
padding: 0 0 0 2rem
}
@media(max-width:768px) {
.service.svelte-t54epl.svelte-t54epl {
padding-left: 1rem
}
}
.description.svelte-t54epl.svelte-t54epl {
margin-bottom: 1rem
}
.content.svelte-t54epl.svelte-t54epl {
margin-top: 1rem
}
.title.svelte-t54epl.svelte-t54epl {
display: flex;
align-items: flex-end;
flex-wrap: wrap;
margin-top: -1rem
}
@media(max-width:768px) {
.title.svelte-t54epl.svelte-t54epl {
align-items: center
}
}
.service.svelte-t54epl .title.svelte-t54epl {
flex-wrap: nowrap
}
.heading.svelte-t54epl.svelte-t54epl {
margin: 0;
line-height: 1
}
@media(max-width:768px) {
.heading.svelte-t54epl.svelte-t54epl {
order: 1;
width: 100%
}
}
.heading.svelte-t54epl label.svelte-t54epl {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer
}
h2.heading.svelte-t54epl.svelte-t54epl {
line-height: .8
}
.service.svelte-t54epl .heading.svelte-t54epl {
margin-bottom: 0
}
@media(max-width:768px) {
.section.svelte-t54epl .switcher.svelte-t54epl {
order: 2
}
}
@media(max-width:768px) {
.service.svelte-t54epl .switcher.svelte-t54epl {
order: 0
}
}
.badge.svelte-t54epl.svelte-t54epl {
font-size: 0
}
@media(max-width:768px) {
.badge.svelte-t54epl.svelte-t54epl {
order: 3
}
}
.toggler.svelte-t54epl.svelte-t54epl {
line-height: 1.3;
color: inherit;
margin: 0;
padding: 0;
border: 0;
border-bottom: 1px dashed;
background: transparent;
font-size: .8em;
cursor: pointer;
transition: color var(--speed-quick) ease, opacity var(--speed-quick) ease
}
@media(max-width:768px) {
.toggler.svelte-t54epl.svelte-t54epl {
order: 4
}
}
.toggler.svelte-t54epl.svelte-t54epl:active,
.toggler.svelte-t54epl.svelte-t54epl:hover {
color: var(--color-orange);
opacity: 1
}
.badge.svelte-t54epl.svelte-t54epl,
.heading.svelte-t54epl.svelte-t54epl,
.switcher.svelte-t54epl.svelte-t54epl {
margin-right: 1rem
}
.badge.svelte-t54epl.svelte-t54epl,
.heading.svelte-t54epl.svelte-t54epl,
.switcher.svelte-t54epl.svelte-t54epl,
.toggler.svelte-t54epl.svelte-t54epl {
margin-top: 1rem
}
.badge.svelte-1l9rbnq {
display: inline-block;
padding: .2em .5em .25em;
border-radius: 4px;
background-color: var(--color-gray);
color: var(--bg-color);
vertical-align: middle;
white-space: nowrap;
font-weight: 400;
font-weight: 700;
font-size: .8rem;
line-height: 1;
opacity: 1;
transition: color var(--speed-quick) ease, background-color var(--speed-quick) ease
}
.badge[data-priority=critical].svelte-1l9rbnq {
background-color: var(--color-red)
}
.badge[data-priority=high].svelte-1l9rbnq {
background-color: var(--color-pumpkin)
}
.badge[data-priority=medium].svelte-1l9rbnq {
background-color: var(--color-orange)
}
.badge[data-priority=low].svelte-1l9rbnq {
background-color: var(--color-green)
}
.badge[data-priority=trivial].svelte-1l9rbnq {
background-color: var(--color-blue)
}
.includeWrapper.svelte-700pcr {
margin-top: 1rem;
padding: 1rem;
background: -webkit-repeating-linear-gradient(315deg, var(--little-shadow), var(--little-shadow) 10px, transparent 0, transparent 20px);
background: repeating-linear-gradient(135deg, var(--little-shadow), var(--little-shadow) 10px, transparent 0, transparent 20px)
}
.warning.svelte-700pcr {
margin-top: 1rem;
padding-left: 1rem;
max-width: 100%
}
.buttons.svelte-700pcr {
display: flex;
margin-top: 1rem
}
.button.svelte-700pcr {
position: relative;
padding: .5rem 1.5rem;
border-radius: .2rem;
font: inherit;
border: 0;
cursor: pointer;
line-height: 1.1;
letter-spacing: .1px;
color: var(--bg-color);
overflow: hidden;
background: transparent;
font-weight: 500;
opacity: .85
}
.button.accept.svelte-700pcr {
font-weight: 600
}
.button.svelte-700pcr:active,
.button.svelte-700pcr:focus,
.button.svelte-700pcr:hover {
opacity: 1
}
.button.svelte-700pcr:active {
transform: translateY(.1rem)
}
.button+.button.svelte-700pcr {
margin-left: 1rem
}
.button.accept.svelte-700pcr {
background-color: var(--color-green)
}
.button.reject.svelte-700pcr {
background-color: var(--color-red)
}
.status[data-status=pending].svelte-700pcr {
color: var(--color-orange)
}
.status[data-status=unknown].svelte-700pcr {
color: var(--color-pumpkin)
}
.status[data-status=blocked].svelte-700pcr,
.status[data-status=likelyBlocked].svelte-700pcr {
color: var(--color-green)
}
.status[data-status=likelyUnblocked].svelte-700pcr,
.status[data-status=unblocked].svelte-700pcr {
color: var(--color-red)
}
li.svelte-700pcr {
transform: translateX(0) !important
}
li+li.svelte-700pcr {
margin-top: .25rem
}
@media(max-width:768px) {
li.svelte-700pcr {
margin-bottom: .5em
}
}
.infoText.svelte-700pcr {
white-space: normal;
display: inline-block;
overflow: hidden;
max-width: 100%;
vertical-align: middle;
text-overflow: ellipsis
}
.final-score.svelte-1geg41l {
position: absolute;
position: -webkit-sticky;
position: sticky;
bottom: 0;
z-index: 200;
display: flex;
align-items: baseline;
flex-wrap: wrap;
margin: 0;
padding: .5rem var(--body-hmargin);
background-color: var(--color-green);
box-shadow: 0 0 5px var(--small-shadow);
color: var(--bg-color);
text-shadow: 0 0 4px var(--small-shadow);
font-weight: 400;
transition: background-color var(--speed-quick) ease, color var(--speed-quick) ease, text-shadow var(--speed-quick) ease
}
@media(min-width:768px) {
.final-score.svelte-1geg41l {
padding: .75rem 2rem
}
}
.final-score[data-color=red].svelte-1geg41l {
background-color: var(--color-red)
}
.final-score[data-color=pumpkin].svelte-1geg41l {
background-color: var(--color-pumpkin)
}
.final-score[data-color=orange].svelte-1geg41l {
background-color: var(--color-orange)
}
.final-score[data-color=green].svelte-1geg41l {
background-color: var(--color-green)
}
@media(min-width:768px) {
.final-score-info.svelte-1geg41l {
margin-left: auto
}
}
.final-score-pre-value-text.svelte-1geg41l {
margin-right: .5rem;
font-size: .8rem;
font-size: 1rem
}
.final-score-info.svelte-1geg41l {
display: block;
font-size: .8rem
}
footer.svelte-3n9ddp {
margin-top: 3.5rem;
margin-bottom: 1.5rem
}
.keywords.svelte-3n9ddp {
margin-bottom: 0
}
</style>
<meta name="description"
content="Webite with ads, analytics trackers, metrics, error catchers. Check your blocker: AdBlock, AdBlock Plus, AdGuard, Ghostery, uBlock Origin, AdBlocker Ultimate…">
<link rel="canonical">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=qAJrlpKQ8p">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=qAJrlpKQ8p">
<link rel="manifest" href="/site.webmanifest?v=qAJrlpKQ8p">
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=qAJrlpKQ8p" color="#fd6460">
<link rel="shortcut icon" href="/favicon.ico?v=qAJrlpKQ8p">
<meta name="msapplication-TileColor" content="#2d89ef">
<meta name="msapplication-config" content="/browserconfig.xml?v=qAJrlpKQ8p">
<meta name="theme-color" content="#ffffff">
<script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" async=""></script>
<script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" async=""></script>
<script src="https://an.yandex.ru/system/context.js" async=""></script>
<script src="https://www.google-analytics.com/analytics.js" async=""></script>
<script src="https://static.hotjar.com/c/hotjar-1639117.js?sv=6" async=""></script>
<script src="https://d2wy8f7a9ursnm.cloudfront.net/v4/bugsnag.min.js" async=""></script>
<script async="" src="https://static.hotjar.com/c/hotjar-1639117.js?sv=6"></script>
<style id="svelte-1t0grtm-style">
.switcher.svelte-1t0grtm.svelte-1t0grtm {
--switcher-height: 1.5rem;
--switcher-width: calc(var(--switcher-height) * 1.8);
--switcher-space: 3px;
--switcher-bullet-height: calc(var(--switcher-height) - (var(--switcher-space) * 2))
}
[data-small="true"].svelte-1t0grtm.svelte-1t0grtm {
--switcher-height: 1.25rem;
--switcher-space: 2.5px
}
@media(max-width: 768px) {
.switcher.svelte-1t0grtm.svelte-1t0grtm {
--switcher-height: 1.25rem;
--switcher-space: 2.5px
}
[data-small="true"].svelte-1t0grtm.svelte-1t0grtm {
--switcher-height: 1rem;
--switcher-space: 2px
}
}
.switcher.svelte-1t0grtm.svelte-1t0grtm {
display: block;
position: relative;
z-index: 100;
width: var(--switcher-width);
height: var(--switcher-height);
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer
}
.switcher.svelte-1t0grtm input.svelte-1t0grtm {
display: none
}
.slider.svelte-1t0grtm.svelte-1t0grtm {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: var(--text-color);
transition: background-color var(--speed-quick) ease
}
.slider.svelte-1t0grtm.svelte-1t0grtm:before {
position: absolute;
bottom: var(--switcher-space);
left: var(--switcher-space);
width: var(--switcher-bullet-height);
height: var(--switcher-bullet-height);
background-color: var(--bg-color);
content: "";
transition: background-color var(--speed-quick) ease, transform var(--speed-quick) ease
}