Quick Start Example
Here’s a simple example of how to use Anchor’s built-in proxy:country_code
to any supported country (e.g., ‘gb’, ‘de’, ‘jp’).
To experiment with different proxy configurations, visit our Interactive API Reference
Custom Proxy
Anchor Browser allows you to use your own proxy servers, giving you complete control over your proxy infrastructure. This is particularly useful when you have existing proxy solutions or need to comply with specific network policies.Custom Proxy Configuration
To use a custom proxy, you need to provide the following information:type
: Set to"custom"
to indicate you’re using your own proxyserver
: The hostname or IP address of your proxy serverport
: The port number your proxy server listens on (optional, defaults to 80 for HTTP, 443 for HTTPS)username
: Your proxy authentication username (if required)password
: Your proxy authentication password (if required)active
: Set totrue
to enable the proxy
Supported Proxy Protocols
Anchor Browser supports the following proxy protocols:- HTTP Proxy: Standard HTTP proxy with optional authentication
- HTTPS Proxy: Secure HTTPS proxy connections
- SOCKS5 Proxy: SOCKS5 proxy for enhanced privacy and flexibility
Example Configurations
Localization
You can specify a country code for your proxy to route traffic through a specific geographic location. This is useful for accessing region-specific content or testing localized experiences. Thecountry_code
parameter accepts country codes in lowercase. See the complete list of supported countries below for all available options.
Region and City-Based Targeting
For even more precise geographic targeting, you can specify bothregion
and city
parameters. This is only supported for the default proxy type (anchor_proxy
).
Important Notes:
- The
city
parameter can only be used whenregion
is also provided - If you specify a city without a region, the city parameter will be ignored
- City names: use English, case-insensitive. Both “Los Angeles” and “los-angeles” work.
Supported Countries with their Country Codes
Afghanistan | af | France | fr | Netherlands | nl |
Albania | al | French Guiana | gf | New Zealand | nz |
Algeria | dz | French Polynesia | pf | Nicaragua | ni |
Andorra | ad | Gabon | ga | Nigeria | ng |
Angola | ao | Gambia | gm | Norway | no |
American Samoa | as | Georgia | ge | Pakistan | pk |
Antigua and Barbuda | ag | Germany | de | Panama | pa |
Argentina | ar | Ghana | gh | Paraguay | py |
Armenia | am | Gibraltar | gi | Peru | pe |
Aruba | aw | Greece | gr | Philippines | ph |
Australia | au | Grenada | gd | Poland | pl |
Austria | at | Guadeloupe | gp | Portugal | pt |
Azerbaijan | az | Guatemala | gt | Puerto Rico | pr |
Bahamas | bs | Guernsey | gg | Qatar | qa |
Bahrain | bh | Guinea | gn | Romania | ro |
Barbados | bb | Guinea-Bissau | gw | Saint Lucia | lc |
Belarus | by | Guyana | gy | San Marino | sm |
Belgium | be | Haiti | ht | Saudi Arabia | sa |
Belize | bz | Honduras | hn | Senegal | sn |
Benin | bj | Hungary | hu | Serbia | rs |
Bermuda | bm | Iceland | is | Seychelles | sc |
Bolivia | bo | India | in | Sierra Leone | sl |
Bosnia and Herzegovina | ba | Iran | ir | Slovakia | sk |
Brazil | br | Iraq | iq | Slovenia | si |
Bulgaria | bg | Ireland | ie | Somalia | so |
Burkina Faso | bf | Israel | il | South Africa | za |
Cameroon | cm | Italy | it | South Korea | kr |
Canada | ca | Jamaica | jm | Spain | es |
Cape Verde | cv | Japan | jp | Suriname | sr |
Chad | td | Jordan | jo | Sweden | se |
Chile | cl | Kazakhstan | kz | Switzerland | ch |
Colombia | co | Kuwait | kw | Syria | sy |
Congo | cg | Kyrgyzstan | kg | São Tomé and Príncipe | st |
Costa Rica | cr | Latvia | lv | Taiwan | tw |
Côte d’Ivoire | ci | Lebanon | lb | Tajikistan | tj |
Croatia | hr | Libya | ly | Togo | tg |
Cuba | cu | Liechtenstein | li | Trinidad and Tobago | tt |
Cyprus | cy | Lithuania | lt | Tunisia | tn |
Czech Republic | cz | Luxembourg | lu | Turkey | tr |
Denmark | dk | Macedonia | mk | Turks and Caicos Islands | tc |
Dominica | dm | Mali | ml | Ukraine | ua |
Dominican Republic | do | Malta | mt | United Arab Emirates | ae |
Ecuador | ec | Martinique | mq | United States | us |
Egypt | eg | Mauritania | mr | Uruguay | uy |
El Salvador | sv | Mexico | mx | Uzbekistan | uz |
Estonia | ee | Moldova | md | Venezuela | ve |
Ethiopia | et | Monaco | mc | Yemen | ye |
Faroe Islands | fo | Montenegro | me | ||
Finland | fi | Morocco | ma |