{"id":17479062,"url":"https://github.com/antoinevastel/free_proxy_checker","last_synced_at":"2025-06-27T21:37:29.176Z","repository":{"id":42208933,"uuid":"474399407","full_name":"antoinevastel/free_proxy_checker","owner":"antoinevastel","description":"NodeJS library without any external dependencies to check if free HTTP/SOCKS4/SOCKS5 proxies are working/up","archived":false,"fork":false,"pushed_at":"2022-04-10T10:09:26.000Z","size":32,"stargazers_count":27,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-13T01:03:19.576Z","etag":null,"topics":["proxy","proxy-checker","proxy-list"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antoinevastel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-26T16:12:44.000Z","updated_at":"2025-04-28T13:10:03.000Z","dependencies_parsed_at":"2022-08-12T09:41:07.409Z","dependency_job_id":null,"html_url":"https://github.com/antoinevastel/free_proxy_checker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinevastel%2Ffree_proxy_checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinevastel%2Ffree_proxy_checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinevastel%2Ffree_proxy_checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoinevastel%2Ffree_proxy_checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antoinevastel","download_url":"https://codeload.github.com/antoinevastel/free_proxy_checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850874,"owners_count":21973672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["proxy","proxy-checker","proxy-list"],"created_at":"2024-10-18T20:54:04.735Z","updated_at":"2025-05-13T01:04:19.137Z","avatar_url":"https://github.com/antoinevastel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# free-proxy_checker\nNodeJS library **WITHOUT** any external dependencies to:\n- download free proxies;\n- check if free HTTP/SOCKS4/SOCKS5 proxies are working/up.\n\n\n## Proxy testing protocol\n\n### HTTP\n\nTo test HTTP proxies, the library makes an `HTTP CONNECT` request to the proxy `host/IP` and `port`.\nIf the request doesn't generate an error/timeout and if the status code is `200`, we consider the proxy is UP.\nWe do that to ignore proxies that are up but that ignore/block our request.\n\n### SOCKS4/5\n\nTo test SOCKS proxies, we establish create a TCP socket using `net.Socket` and try to establish a connection with the proxy.\nIf the connection is successful (no error and no timeout), we consider the proxy is UP.\n\n## Library installation\n```\nnpm install free-proxy-checker\n```\n\n## Library usage\n\nYou can find examples in the `/examples` directory.\n\n## Downloading and testing free proxies\n\n```javascript\nconst {ProxyChecker, ProxyScrapeDownloader, FoxtoolsDownloader, FreeProxyListDownloader, downloadAllProxies} = require('free-proxy-checker');\n\n(async () =\u003e {\n    // We can download proxies from a particular proxy provider, e.g. proxyscrape, foxtools, freeproxylist and my proxy\n    const proxyScrapeDownloader = new ProxyScrapeDownloader();\n    const proxyScrapeProxies = await proxyScrapeDownloader.download();\n\n    const foxtoolsDownloader = new FoxtoolsDownloader();\n    const foxtoolsProxies = await foxtoolsDownloader.download();\n\n    // We can also download all proxies from all proxy providers at once\n    const allProxies = await downloadAllProxies();\n\n    // Then, we can check the availability of the proxies we downloaded\n    // The verbose: true option enables you to see the testing progress and have a time estimate\n    const proxyChecker = new ProxyChecker(allProxies, {\n        concurrency: 25,\n        timeout: 7500,\n        verbose: true\n    })\n\n    await proxyChecker.checkProxies();\n    const proxiesUp = proxyChecker.getProxiesUp();\n    console.log(`There are ${proxiesUp.length} proxies UP:`);\n    console.log(proxiesUp);\n})();\n```\n\n## Testing if proxies are UP/DOWN\nThe code snippet below shows how you can create `HttpProxy` and `SocksProxy` to create proxy instances, and pass them to a `ProxyChecker` to verify their availability.\n\n```javascript\nconst {HttpProxy, SocksProxy, ProxyChecker} = require('free-proxy-checker');\n\n\n(async () =\u003e {\n    const proxies = [];\n    proxies.push(new HttpProxy('112.6.117.178', '8085'));\n    proxies.push(new SocksProxy('5.153.140.180', '4145'));\n\n\n    const proxyChecker = new ProxyChecker(proxies, {\n        concurrency: 15,\n        timeout: 7500,\n        verbose: 30\n    })\n\n    await proxyChecker.checkProxies();\n    let proxiesUp = proxyChecker.getProxiesUp();\n    console.log(`There are ${proxiesUp.length} proxies UP:`);\n    console.log(proxiesUp);\n})();\n```\n\n## Remarks\n\nFor the moment the library is really basic, it only checks if a proxy is UP/DOWN.\nIt doesn't store any data about latency.\nFeel free to open an issue if you have a feature request. \nI may add it to the library if I feel like it's relevant.\n\n## Related projects\n\n[https://niek.github.io/free-proxy-list/](https://niek.github.io/free-proxy-list/): A page that leverages the free-proxy-checker library to display a list of available proxies. \nResults are updated every hour.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoinevastel%2Ffree_proxy_checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoinevastel%2Ffree_proxy_checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoinevastel%2Ffree_proxy_checker/lists"}