Integrations

Proxy integration guides for code, browsers and phones

Every FirstProxy product connects with the same four values. Pick your tool below for a full setup guide with working code or field-by-field settings, sticky sessions, a connection check and fixes for common errors, across 64 countries.

Gateway hostgate.firstproxy.shop

One hostname for every product and every country. Your traffic is routed from here to the exit IP.

Port8000 or 9000

8000 for HTTP and HTTPS proxying, 9000 for SOCKS5. Same host, same credentials.

Usernameuser-country-us

Carries your targeting. The country, city, session name and session length are written into the username.

PasswordYOUR_TOKEN

Your token from the dashboard. Keep it out of public repositories and shared screenshots.

17 guides

Proxy setup guides by tool

Each guide is written for that tool: the right install command, where the credentials go, how to target a country or city, and what its error messages mean.

Quick test

How do I test a proxy in my language?

Each snippet requests your exit IP details from ipinfo.io through the gateway, so you can confirm the country right away. C# and Ruby are included here for teams that use them. Replace YOUR_TOKEN with your own token.

curl -x http://gate.firstproxy.shop:8000 \
  -U "user-country-us:YOUR_TOKEN" \
  https://ipinfo.io/json
Targeting

How does the proxy username work?

Country, city and session are written into the username after your proxy user, joined with hyphens. Without a session part every new connection gets a new IP. With one, requests that share the session name keep one IP for the length you set.

Proxy username parts
PartFormatExampleRule
Country-country-{cc}-country-usRequired. Two-letter country code in lowercase, 64 countries.
City-city-{city}-city-new-yorkOptional. Lowercase city name, spaces become hyphens, 172 cities.
Session-session-{id}-session-a1b2c3Optional. Letters and digits you choose. Same id, same IP.
Session length-ttl-{minutes}m-ttl-30mWith a session. Residential 1 to 120 minutes, mobile 1 to 60, long-acting ISP up to 720.
Rotating, any United States IPuser-country-us
Rotating, New York onlyuser-country-us-city-new-york
Sticky session abc123 for 10 minutesuser-country-us-session-abc123-ttl-10m
Sticky session in Germany for 60 minutesuser-country-de-session-crawl7-ttl-60m

Country codes and city values for every location are on the proxy locations page.

Access

How do authentication, protocols and targeting work?

Three short topics that decide how your client is configured.

Authentication

Send your username and token with each request, or skip credentials entirely by adding up to 10 IPv4 addresses to your allowlist in the dashboard. Requests from a listed address are accepted without a login, which suits tools that cannot send proxy credentials, such as plain Selenium.

Protocols

HTTP, HTTPS and SOCKS5 all work on the same host. Use port 8000 for HTTP and HTTPS and port 9000 for SOCKS5. HTTPS sites are tunnelled with CONNECT, so your traffic stays encrypted between your client and the target.

Choosing a country or city

The country is the -country- part of the username, written as a two-letter code such as us, de or jp. Where a city is offered, add -city- after the country. Phones and browsers take the same username in their proxy settings.

Scraping APIs

Can I skip proxy setup with a scraping API?

Yes. The Web Scraper API and SERP API take a URL or a query and return HTML, parsed fields or structured search results. IP choice, retries and page rendering happen on our side, and you pay per 1,000 successful requests.

Read the API reference
Get started

How do I get from signup to the first request?

  1. 1
    Create an account

    Register with your email and a password. There is no subscription and no card to add.

  2. 2
    Top up your balance

    Add at least $40 in crypto through the secure checkout window. A bonus is added from $100.

  3. 3
    Buy a product

    Choose a proxy product or scraping API. Usage is taken from your prepaid balance.

  4. 4
    Copy your connection details

    The dashboard shows the gateway host, ports, your username and token, with a ready proxy line.

  5. 5
    Follow the guide for your tool

    Open the guide above for your language, library, browser or phone and run the first request.

FAQ

Proxy integration questions

Quick answers for the issues people hit most when they first connect.

Which host and port do I use?

Use gate.firstproxy.shop. HTTP and HTTPS proxying listens on port 8000, and SOCKS5 listens on port 9000. The same host and credentials work for every proxy product, and the username decides the country and session.

Can I use SOCKS5 instead of HTTP?

Yes, on port 9000 with the same username and token. Use a scheme or option that resolves DNS through the proxy, such as socks5h in Python and cURL. Chrome, Scrapy and Java HttpClient cannot authenticate to SOCKS5, so use the HTTP port with them.

Why do I get a 407 error?

A 407 response means the proxy rejected the credentials. Check that the username has no extra spaces, that the token is current, and that special characters in the token are percent-encoded when you place them inside a URL. If you use an allowlist instead, confirm that the IP making the request is on the list.

How do I keep the same IP across several requests?

Add a session name and a length to the username, for example user-country-us-session-abc123-ttl-10m. Every request that uses the same session name is routed through the same exit IP until the length ends, up to 120 minutes on residential products.

Do I need the proxy products for scraping APIs?

No. The Web Scraper API and the SERP API are called over REST with a bearer token. They choose and rotate IPs for you, so you do not configure a gateway at all. The API reference lists every endpoint.

Ready to send your first request?

Create an account, top up from $40 and copy your connection line from the dashboard.