ABCProxy Docs
English
English
  • Overview
  • PROXIES
    • Residential Proxies
      • Introduce
      • Dashboard to Get IP to Use
      • Getting started guide
      • Account security authentication
      • API extraction
      • Basic query
      • Select the country/region
      • Select State
      • Select city
      • Session retention
    • Socks5 Proxies
      • Getting Started
      • Proxy Manager to Get IP to Use
    • Unlimited Residential Proxies
      • Getting started guide
      • Account security authentication
      • API extraction
    • Static Residential Proxies
      • Getting started guide
      • API extraction
      • Account security authentication
    • ISP Proxies
      • Getting started guide
      • Account security authentication
    • Dedicated Datacenter Proxies
      • Getting started guide
      • API extraction
      • Account security authentication
  • Advanced proxy solutions
    • Web Unblocker
      • Get started
      • Making Requests
        • JavaScript rendering
        • Geo-location
        • Session
        • Header
        • Cookie
        • Blocking Resource Loading
    • APM-ABC Proxy Manger
      • How to use
  • SERP API
    • Get started
    • Google
      • Google Search API
      • Google Shopping API
      • Google Local API
      • Google Videos API
      • Google News API
      • Google Flights API
      • Google Product API
      • Google Images API
      • Google Lens Search API
      • Google Play Product API
      • Google Play Game Store API
      • Google Play Book Store API
      • Google Play Movies Store API
      • Google Jobs API
      • Google Scholar Author API
      • Google Scholar API
      • Google Scholar Cite API
      • Google Scholar Profiles API
    • Bing
      • Bing Search API
      • Bing News API
      • Bing Shopping API
      • Bing Images API
      • Bing Videos API
      • Bing Maps API
    • Yahoo
      • Yahoo! Search API
      • Yahoo! Shopping API
      • Yahoo! Images API
      • Yahoo! Videos API
    • DuckDuckGo
      • DuckDuckGo Search API
      • DuckDuckGo News API
      • DuckDuckGo Maps API
    • Ebay
      • Ebay Search API
    • Walmart
      • Walmart Search API
      • Walmart Product Reviews API
      • Walmart Product API
    • Yelp
      • Yelp Reviews API
    • Youtube
      • YouTube Search API
      • YouTube Video API
  • Parametric
    • Google Ads Transparency Center Regions
    • Google GL Parameter: Supported Google Countries
    • Google HL Parameter: Supported Google Languages
    • Google Lens Country Parameter: Supported Google Lens Countries
    • Google Local Services Job Types
    • Google Trends Categories
    • Supported DuckDuckGo Regions
    • Supported Ebay Domains
    • Supported Ebay location options
    • Google Trends Locations
    • Supported Ebay sort options
    • Supported Google Countries via cr parameter
    • Supported Google Domains
    • Supported Google Languages via lr parameter
    • Supported Google Play Apps Categories
    • Supported Google Patents country codes
    • Supported Google Play Games Categories
    • Supported Google Play Books Categories
    • Supported Google Play Movies Categories
    • Supported Google Scholar Courts
    • Supported Yahoo! Countries
    • Supported Yahoo! Domains
    • Supported Yahoo! File formats
    • Supported Yahoo! Languages
    • Supported Yandex Domains
    • Supported Yandex Languages
    • Supported Yelp Domains
    • Supported Yandex Locations
    • Supported Yelp Reviews Languages
    • Walmart Stores Locations
    • Supported Google Travel currency codes
    • Supported Locations API
  • HELP
    • FAQ
      • ABCProxy Software Can Not Log In?
      • Software Tip:“please start the proxy first”
    • Refund Policy
    • Contact Us
  • INTEGRATION AND USAGE
    • Browser Integration Tools
      • Proxy Switchy Omega
      • BP Proxy Switcher
      • Brave Browser
    • Anti-Detection Browser Integration
      • AdsPower
      • BitBrowser
      • Dolphin{anty}
      • Undetectable
      • Incogniton
      • Kameleo
      • Morelogin
      • ClonBrowser
      • Hidemium
      • Helium Scraper
      • VMlogin
      • ixBrower
      • Xlogin
      • Antbrowser
      • Lauth
      • Indigo
      • IDENTORY
      • Gologin
      • MuLogin
    • Use of Enterprise Plan
      • How to use the Enterprise Plan CDKEY?
Powered by GitBook
On this page
  1. PROXIES
  2. Residential Proxies

Select State

If you need to get an proxy from a specified country state, go to the dashboard and select the specified country and state options.

Code example

For example, a random IP address in New York State performs a query to ipinfo.io:

curl -x proxy.abcproxy.com:4950 -U "USERNAME:PASSWORD" ipinfo.io
import urllib.request
import random
username = 'USERNAME'
password = 'PASSWORD'
entry = ('http://%s:%s@proxy.abcproxy.com:4950' %
    (username, password))
query = urllib.request.ProxyHandler({
    'http': entry,
    'https': entry,
})
execute = urllib.request.build_opener(query)
print(execute.open('https://ipinfo.io').read())
<?php
$username = 'USERNAME';
$password = 'PASSWORD';
$proxy = 'proxy.abcproxy.com:4950';
$query = curl_init('https://ipinfo.io');
curl_setopt($query, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($query, CURLOPT_PROXY, "http://$proxy");
curl_setopt($query, CURLOPT_PROXYUSERPWD, "$username:$password");
$output = curl_exec($query);
curl_close($query);
if ($output)
    echo $output;
?>
package example;

import org.apache.http.HttpHost;
import org.apache.http.client.fluent.*;

public class Example {
    public static void main(String[] args) throws Exception {
        HttpHost entry = new HttpHost("proxy.abcproxy.com", 4950);
        String query = Executor.newInstance()
            .auth(entry, "USERNAME", "PASS")
            .execute(Request.Get("http://icanhazip.com").viaProxy(entry))
            .returnContent().asString();
        System.out.println(query);
    }
}
using System;
using System.Net;

class Example
{
    static void Main()
    {
        var client = new WebClient();
        client.Proxy = new WebProxy("proxy.abcproxy.com:4950");
        client.Proxy.Credentials = new NetworkCredential("USERNAME", "PASSWORD");
        Console.WriteLine(client.DownloadString("https://ipinfo.io"));
    }
}
require 'uri'
require 'net/http'

uri = URI.parse('https://ipinfo.io/')
proxy = Net::HTTP::Proxy('proxy.abcproxy.com', 4950, 'USERNAME', 'PASSWORD')

req = Net::HTTP::Get.new(uri.path)

result = proxy.start(uri.host,uri.port) do |http|
    http.request(req)
end

If you need any help, please feel free to contact customer service at support@abcproxy.com.

PreviousSelect the country/regionNextSelect city

Last updated 1 year ago