Documentation
  • Proxies
    • Quick Guide
    • Rotating Residential Proxies
      • Get Started
      • Making Requests
      • Location Settings
        • Country
        • State
        • City
        • ASN Targeting
        • Server Specific Entry Nodes
      • Session Control
      • Whitelisting IPs
      • Proxy Generator
  • Unlimited Residential Proxies
    • Get Started
    • Making Requests
    • Location Settings
      • Continent
    • Session Control
    • Whitelisting IPs
    • Proxy Generator
  • Static ISP Proxies
    • Location Choosing
    • Making Requests
    • Proxy Credential
    • Whitelisting IPs
  • Public API
  • General
    • Restricted Targets
    • Response Codes
  • Advanced Proxy Solution
    • Web Unblocker
      • Get Started
      • Making Requests
        • JavaScript Rendering
        • Geo-location
        • Session
        • Header
        • Cookie
        • Blocking Resource Loading
Powered by GitBook
On this page
  1. Advanced Proxy Solution
  2. Web Unblocker
  3. Making Requests

Geo-location

PreviousJavaScript RenderingNextSession

Last updated 1 month ago

Please click here to download geographic location code.

Select Country

We can also use a proxy from a specified country to make requests. You just need to select the corresponding country in the dashboard, for example, using a proxy from the United States. Below is an example of the request. Don't forget to replace USERNAME and PASSWORD with your proxy credentials. The username needs to include an additional field: USERNAME-zone-unblock-region-US.

curl -x -k unblock.pyproxy.io:16500 -U "USERNAME-zone-unblock-region-US:PASSWORD" -H "X-Pyproxy-Render:html" "https://open.pyproxy.com"

The country code is a case-insensitive parameter in the .

Select State

For example, to get a random IP from New York State in the USA, the username needs to include an additional field: USERNAME-zone-unblock-region-US-st-newyork.

curl -x -k unblock.pyproxy.io:16500 -U "USERNAME-zone-unblock-region-US-st-newyork:PASSWORD" -H "X-Pyproxy-Render:html" "https://open.pyproxy.com"

Select City

You can also specify the IP address to a city. For example, if you want to select New York City, the username needs to include an additional field: USERNAME-zone-unblock-region-US-st-newyork-city-newyorkcity.

 curl -x -k unblock.pyproxy.io:16500 -U "USERNAME-zone-unblock-region-US-st-newyork-city-newyorkcity:PASSWORD" -H "X-Pyproxy-Render:html" "https://open.pyproxy.com" 

3166-1 alpha-2 format