logo

Geo Targeting

Geo targeting

It may be considered unusual for some local websites to receive worldwide traffic. Therefore, they can ban traffic from other countries. By using geotargeting, you can counter potential blocking.

Allows you to send requests through supported countries using geotargeting. In this way, you can more easily scrape the targeted website by focusing on a specific country.

All you have to do is send a request by selecting a country like geoCode=us

To use this feature with DataCenter proxy, you must have a minimum Pro Plan subscription!

Supported Country Codes

Here is the list of supported locations:

  • ALAlbania
  • ARArgentina
  • ATAustria
  • AUAustralia
  • BDBangladesh
  • BEBelgium
  • BRBrazil
  • BSBahamas
  • CACanada
  • CHSwitzerland
  • CLChile
  • CRCosta Rica
  • CYCyprus
  • CZCzechia
  • DEGermany
  • DKDenmark
  • DODominican Republic
  • EEEstonia
  • EGEgypt
  • ESSpain
  • FIFinland
  • FRFrance
  • GBGreat Britain
  • GRGreece
  • GTGuatemala
  • HRCroatia
  • IEIreland
  • ITItaly
  • JMJamaica
  • JPJapan
  • KYCayman Islands
  • LTLithuania
  • LVLatvia
  • MTMalta
  • MXMexico
  • MYMalaysia
  • NLNetherlands
  • NONorway
  • PAPanama
  • PLPoland
  • PRPuerto Rico
  • RORomania
  • RSSerbia
  • SESweden
  • SGSingapore
  • SISlovenia
  • SKSlovakia
  • TRTurkey
  • UAUkraine
  • USUnited States of America
  • ZASouth Africa
  • ADAndorra
  • AEUnited Arab Emirates
  • AFAfghanistan
  • AGAntigua and Barbuda
  • ALAlbania
  • AMArmenia
  • AOAngola
  • ARArgentina
  • ASAmerican Samoa
  • ATAustria
  • AUAustralia
  • AWAruba
  • AZAzerbaijan
  • BABosnia and Herzegovina
  • BBBarbados
  • BDBangladesh
  • BEBelgium
  • BFBurkina Faso
  • BGBulgaria
  • BHBahrain
  • BIBurundi
  • BJBenin
  • BMBermuda
  • BOBolivia
  • BRBrazil
  • BSBahamas
  • BTBhutan
  • BWBotswana
  • BYBelarus
  • BZBelize
  • CACanada
  • CFCentral African Republic
  • CGCongo
  • CHSwitzerland
  • CICôte d'Ivoire
  • CLChile
  • CMCameroon
  • CNChina
  • COColombia
  • CRCosta Rica
  • CYCyprus
  • CZCzechia
  • DEGermany
  • DJDjibouti
  • DKDenmark
  • DMDominica
  • DODominican Republic
  • DZAlgeria
  • ECEcuador
  • EEEstonia
  • EGEgypt
  • EREritrea
  • ESSpain
  • ETEthiopia
  • FIFinland
  • FJFiji
  • FRFrance
  • GAGabon
  • GBGreat Britain
  • GDGrenada
  • GEGeorgia
  • GGGuernsey
  • GHGhana
  • GIGibraltar
  • GMGambia
  • GNGuinea
  • GQEquatorial Guinea
  • GRGreece
  • GTGuatemala
  • GWGuinea-Bissau
  • HKHong Kong
  • HNHonduras
  • HRCroatia
  • HTHaiti
  • HUHungary
  • IDIndonesia
  • IEIreland
  • ILIsrael
  • INIndia
  • ISIceland
  • ITItaly
  • JMJamaica
  • JOJordan
  • JPJapan
  • KEKenya
  • KGKyrgyzstan
  • KHCambodia
  • KMComoros
  • KRSouth Korea
  • KWKuwait
  • KZKazakhstan
  • LBLebanon
  • LCSaint Lucia
  • LILiechtenstein
  • LKSri Lanka
  • LSLesotho
  • LTLithuania
  • LULuxembourg
  • LVLatvia
  • MAMorocco
  • MCMonaco
  • MDMoldova
  • MEMontenegro
  • MGMadagascar
  • MKRepublic of North Macedonia
  • MLMali
  • MMMyanmar
  • MNMongolia
  • MOMacao
  • MQMartinique
  • MRMauritania
  • MTMalta
  • MUMauritius
  • MVMaldives
  • MWMalawi
  • MXMexico
  • MYMalaysia
  • MZMozambique
  • NANamibia
  • NENiger
  • NGNigeria
  • NINicaragua
  • NLNetherlands
  • NONorway
  • NPNepal
  • NRNauru
  • NZNew Zealand
  • OMOman
  • PAPanama
  • PEPeru
  • PGPapua New Guinea
  • PHPhilippines
  • PKPakistan
  • PLPoland
  • PRPuerto Rico
  • PTPortugal
  • PWPalau
  • PYParaguay
  • QAQatar
  • RORomania
  • RSSerbia
  • RURussian Federation
  • RWRwanda
  • SASaudi Arabia
  • SCSeychelles
  • SESweden
  • SGSingapore
  • SISlovenia
  • SKSlovakia
  • SLSierra Leone
  • SNSenegal
  • SOSomalia
  • SRSuriname
  • SSSouth Sudan
  • STSao Tome and Principe
  • SVEl Salvador
  • TDChad
  • TGTogo
  • THThailand
  • TJTajikistan
  • TMTurkmenistan
  • TNTunisia
  • TOTonga
  • TRTurkey
  • TTTrinidad and Tobago
  • TVTuvalu
  • TWTaiwan
  • TZTanzania
  • UAUkraine
  • UGUganda
  • USUnited States of America
  • UYUruguay
  • UZUzbekistan
  • VEVenezuela
  • VGVirgin Islands (British)
  • VNViet Nam
  • VUVanuatu
  • YEYemen
  • ZASouth Africa
  • ZMZambia

If you are looking for a country code that is not listed above, you can contact us via [email protected]. We can add the country you need to our system.

Example

curl --location --request GET 'https://api.scrape.do/?url=https://httpbin.co/anything&token=YOUR_TOKEN&geoCode=us'
import requests
import urllib.parse
token = "YOUR_TOKEN"
targetUrl = urllib.parse.quote("https://httpbin.co/anything")
geoCode = "us"
url = "http://api.scrape.do/?token={}&url={}&geoCode={}".format(token, targetUrl,geoCode)
response = requests.request("GET", url)
print(response.text)
const axios = require('axios');
const token = "YOUR_TOKEN";
const targetUrl = encodeURIComponent("https://httpbin.co/anything");
const geoCode = "us";
const config = {
    'method': 'GET',
    'url': `https://api.scrape.do/?token=${token}&url=${targetUrl}&geoCode=${geoCode}`,
    'headers': {}
};
axios(config)
    .then(function (response) {
        console.log(response.data);
    })
    .catch(function (error) {
        console.log(error);
    });
package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
)

func main() {
	token := "YOUR_TOKEN"
	encoded_url := url.QueryEscape("https://httpbin.co/anything")
	url := fmt.Sprintf("https://api.scrape.do/?token=%s&url=%s&geoCode=us", token, encoded_url)
	method := "GET"
	client := &http.Client{}
	req, err := http.NewRequest(method, url, nil)
	if err != nil {
		fmt.Println(err)
		return
	}
	res, err := client.Do(req)
	if err != nil {
		fmt.Println(err)
		return
	}
	defer res.Body.Close()
	body, err := ioutil.ReadAll(res.Body)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(string(body))
}
require "uri"
require "net/http"
require 'cgi'
str =  CGI.escape "https://httpbin.co/anything"
url = URI("https://api.scrape.do/?url=" + str + "&token=YOUR_TOKEN&geoCode=us")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
response = https.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
String encoded_url = URLEncoder.encode("https://httpbin.co/anything", "UTF-8");
Request request = new Request.Builder()
  .url("https://api.scrape.do/?url=" + encoded_url + "&token=YOUR_TOKEN&geoCode=us")
  .method("GET", body)
  .build();
Response response = client.newCall(request).execute();
string token = "YOUR_TOKEN";
string url = WebUtility.UrlEncode("https://httpbin.co/anything");
var client = new HttpClient();
var requestURL = $"https://api.scrape.do/?token={token}&url={url}&geoCode=us";        
var request = new HttpRequestMessage(HttpMethod.Get, requestURL);
var response = client.SendAsync(request).Result;
var content = response.Content.ReadAsStringAsync().Result;
Console.WriteLine(content);
<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);
$data = [
   "url" => "https://httpbin.co/anything",
   "token" => "YOUR_TOKEN",
   "geoCode" => "us"
];
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($curl, CURLOPT_URL, "https://api.scrape.do/?".http_build_query($data));
curl_setopt($curl, CURLOPT_HTTPHEADER, array(
    "Accept: */*",
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>