Aller au contenu
Se connecter S'inscrire

Géolocalisation

Utilisez le paramètre country avec un code pays ISO à 2 lettres pour envoyer la requête depuis cet emplacement. Les pays pris en charge dépendent du type de proxy. Les forfaits sans accès à la géolocalisation reçoivent un pays aléatoire pour le pool choisi.

GET https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=<TARGET_URL>&country=us&proxy_type=datacenter
ParamètreTypeRequisDescription
api_keystringouiVotre clé API Web Scraping
urlstringouiURL cible à récupérer
countrystringnonCode pays à 2 lettres (par ex. us, gb, de).
proxy_typestringnondatacenter (par défaut) ou residential.
  • Datacenter : us, ca, gb, de, fr, es, mx, jp, cn, au.
  • Residential : us, ca, gb, de, fr, es, jp, cn, au, br, in, mx.
Fenêtre de terminal
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https%3A%2F%2Fhttpbin.org%2Fget&country=us&proxy_type=datacenter"
{
"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"
},
"origin": "192.3.214.245",
"url": "https://httpbin.org/get"
}