Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Proxifly is a service to get free HTTPS proxies and check your public IP
Site | NPM Module | GitHub Repo
proxifly is the official npm module of Proxifly, a free service to get SOCKS, HTTP, & HTTPS proxies as well as to check your public IP!
Yes, this module works in both Node and browser environments, including compatibility with Webpack and Browserify!
extended=true
to see country, city, zip code, and latitude/longitude for the IP as well.You can use so much of proxifly
for free, but if you want to do some advanced stuff, you'll need an API key. You can get one by signing up for a Proxifly account.
Install with npm if you plan to use proxifly
in a Node project or in the browser.
npm install proxifly
If you plan to use proxifly
in a browser environment, you will probably need to use Webpack, Browserify, or a similar service to compile it.
const proxifly = new (require('proxifly'))({
// Not required, but having one removes limits (get your key at https://proxifly.dev).
apiKey: 'api_test_key'
});
Install with CDN if you plan to use Proxifly only in a browser environment.
<script src="https://cdn.jsdelivr.net/npm/proxifly@latest/dist/index.min.js"></script>
<script type="text/javascript">
var proxifly = new Proxifly({
// Not required, but having one removes limits (get your key at https://proxifly.dev).
apiKey: 'api_test_key'
});
</script>
You can use proxifly
in a variety of ways that require no installation, such as curl
in terminal/shell. See the Use without installation section below.
After you have followed the install step, you can start using proxifly
to get proxy lists and check your public IP!
Retrieves a fully filterable list of proxies in either json
or plain text
.
var options = {
protocol: 'http', // http | socks4 | socks5
anonymity: 'elite', // transparent | anonymous | elite
country: 'US', // https://www.nationsonline.org/oneworld/country_code_list.htm
https: true, // true | false
speed: 10000, // 0 - 60000
format: 'json', // json | text
quantity: 1, // 1 - 20
};
proxifly.getProxy(options)
.then(proxy => {
console.log('getProxy:', proxy);
// If you specify a quantity greater than 1, the response will be an array!
// In this case, you can access by calling response[0].ipPort, response[1].ipPort, etc...
})
.catch(e => {
console.error(e);
})
The options for getProxy(options)
are as follows.
string
, array
(optional): Filter by the protocol
http
, socks4
, socks5
http
string
, array
(optional): Filter by anonymity level.
transparent
, anonymous
, elite
(elite
is the most anonymous)null
(no filter, any anonymity)string
, array
(optional): Filter by country.
US
, CA
, RU
... (see full list at https://www.nationsonline.org/oneworld/country_code_list.htm)null
(no filter, any country)boolean
(optional): Filter by https/SSL.
true
, false
null
(no filter, any level of https)number
(optional): Filter by speed, value is in milliseconds taken to connect.
0
- 60000
null
(no filter, any speed)string
(optional): The response type.
json
, text
json
number
(optional): The number of proxies to be returned. Any number greater than 1
will be returned in an array
.
1
- 20
1
1
result.For most options like protocol
, anonymity
, and country
, you can provide an array
where each element in the array will act as OR
logic.
For example:
var options = {
protocol: ['http', 'socks4'],
anonymity: ['anonymous', 'elite'],
country: ['US', 'GB', 'RU'],
}
This filter will call the API for any proxies that are either of protocol (http
OR socks4
) AND of anonymity (anonymous
OR elite
) AND from (US
OR GB
OR RU
)!
Here is a sample response for the .getProxy()
method. This is the output you will see when extended=true
:
{
proxy: 'socks4://103.99.110.222:5678',
protocol: 'socks4',
ip: '103.99.110.222',
port: 5678,
https: false,
anonymity: 'transparent',
score: 1,
geolocation: { country: 'IN', city: 'Unknown' }
}
Get your public IP with a simple api call.
var options = {
mode: 'IPv4', // IPv4 | IPv6
format: 'json', // json | text
};
proxifly.getPublicIp(options)
.then(proxy => {
console.log('getPublicIp:', response);
console.log('My IP is:', response.ip);
console.log('My country is:', response.country);
})
.catch(e => {
console.error(e);
})
The options for getProxy(options)
are as follows.
string
(optional): IPv4 IP or IPv6 IP?
IPv4
, IPv6
IPv4
string
(optional): The response type.
json
, text
json
Here is a sample response for the .getPublicIp()
method. This is the output you will see when extended=true
:
{
ip: '104.173.192.180',
geolocation: {
country: 'US',
city: 'Los Angeles',
latitude: 34.0544,
longitude: -118.2441
}
}
For a more in-depth documentation of this library and the Proxifly service, please visit the official Proxifly website.
curl
# Get public IP
# Standard
curl -X POST https://api.proxifly.dev/get-public-ip
# With options
curl -d "format=text&mode=ipv4" -X POST https://api.proxifly.dev/get-public-ip
# With options (alternative)
curl -d '{"format": "text", "mode": "ipv4"}' -H 'Content-Type: application/json' https://api.proxifly.dev/get-public-ip
# Get a proxy
# Standard
curl -X POST https://api.proxifly.dev/get-proxy
# With options
curl -d "format=text&protocol=http&quantity=3" -X POST https://api.proxifly.dev/get-proxy
# With options (alternative)
curl -d '{"format": "text", "protocol": ["http", "socks4"], "quantity": 3}' -H 'Content-Type: application/json' https://api.proxifly.dev/get-proxy
Proxifly is a free proxy api that helps you get free proxy lists and check your public IP.
If you are still having difficulty, we would love for you to post a question to the Proxifly issues page. It is much easier to answer questions that include your code and relevant files! So if you can provide them, we'd be extremely grateful (and more likely to help you find the answer!)
Somiibo: A Social Media Bot with an open-source module library.
JekyllUp: A website devoted to sharing the best Jekyll themes.
Slapform: A backend processor for your HTML forms on static sites.
SoundGrail Music App: A resource for producers, musicians, and DJs.
Hammock Report: An API for exploring and listing backyard products.
Ask us to have your project listed! :)
FAQs
Proxifly is a service to get free HTTPS proxies and check your public IP
The npm package proxifly receives a total of 62 weekly downloads. As such, proxifly popularity was classified as not popular.
We found that proxifly demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.