PiratProxies

Automation and testing

Sending Insomnia traffic through a proxy

Insomnia is a desktop client for REST and GraphQL APIs. Its preferences take one proxy address for http and one for https.

The right proxy type for Insomnia

Any plan with the country you need.

The values to enter in Insomnia

Every PiratProxies plan comes down to four values: host, port, username and password. Here they are for Residential; your own username and password are on your plan page.

Hostresi.piratproxies.com
HTTP port8080
SOCKS5 port1080
UsernameUSERNAME
Passwordshown on your plan page

Written as a single address:

http://USERNAME:PASSWORD@resi.piratproxies.com:8080

There is no separate country or session field: both are part of the username. Your plan page has a generator that writes it, and Targeting and sessions describes each piece.

Setting it up in Insomnia

  1. Open Preferences and find the proxy settings.
  2. Enable the proxy and put http://USERNAME:PASSWORD@resi.piratproxies.com:8080 in both the HTTP and HTTPS proxy fields.
  3. Send a request to https://api.ipify.org to check the address.

Menus move around between Insomnia versions, but the four values you enter never change.

Should Insomnia rotate IPs or keep one?

When Insomnia plays one visitor across several steps, a sticky session keeps the IP address unchanged from start to finish. When every run stands alone, drop the session and each run begins from a new address.

Here is what a sticky username looks like:

USERNAME-country-us-time-600-session-a1b2c3d4

When Insomnia will not connect

  • Both fields take the same address. The https field decides which proxy is used for https sites; it does not mean the proxy itself is https.
  • Error 407 means the login was refused. Copy the username and password from your plan page once more, and make sure no space crept in and the username was not cut short.
  • An IP in the wrong country nearly always comes from the username, since the country code lives there. Other fixes.

Insomnia and proxies: questions

Which PiratProxies plan suits Insomnia best?

Any plan with the country you need.

Words used in this guide: headless browser, rotating proxy, sticky session, proxy authentication.

Insomnia belongs to its own developers, and PiratProxies has no connection with them; we name it only to say what this guide covers. Follow the rules of the sites you visit and our acceptable use policy.