{"id":19132891,"url":"https://github.com/dthung1602/instant-proxy-api-client","last_synced_at":"2025-11-13T15:02:20.196Z","repository":{"id":57705388,"uuid":"496293061","full_name":"dthung1602/instant-proxy-api-client","owner":"dthung1602","description":"An **unofficial**  go client for Instant Proxy API","archived":false,"fork":false,"pushed_at":"2022-06-10T16:07:48.000Z","size":129,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T17:44:22.479Z","etag":null,"topics":["api","api-client","api-client-go","go","golang","instant-proxy","proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","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/dthung1602.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-05-25T15:40:27.000Z","updated_at":"2022-06-10T15:14:02.000Z","dependencies_parsed_at":"2022-08-29T04:31:27.320Z","dependency_job_id":null,"html_url":"https://github.com/dthung1602/instant-proxy-api-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dthung1602/instant-proxy-api-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dthung1602%2Finstant-proxy-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dthung1602%2Finstant-proxy-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dthung1602%2Finstant-proxy-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dthung1602%2Finstant-proxy-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dthung1602","download_url":"https://codeload.github.com/dthung1602/instant-proxy-api-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dthung1602%2Finstant-proxy-api-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284236310,"owners_count":26970090,"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","status":"online","status_checked_at":"2025-11-13T02:00:06.582Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","api-client","api-client-go","go","golang","instant-proxy","proxy"],"created_at":"2024-11-09T06:19:58.400Z","updated_at":"2025-11-13T15:02:20.152Z","avatar_url":"https://github.com/dthung1602.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- README template from https://github.com/dthung1602/instant-proxy-api-client --\u003e\n\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/dthung1602/instant-proxy-api-client\"\u003e\n    \u003cimg src=\"./resources/instantproxies.png\" width=\"500\"\u003e\n  \u003c/a\u003e\n\n\u003ch3 align=\"center\"\u003eInstantProxy API Client\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n   An \u003cb\u003eunofficial\u003c/b\u003e  go client for Instant Proxy API\n\u003c/p\u003e\n\n\n## Installation\n\n```bash\ngo get github.com/dthung1602/instant-proxy-api-client\n```\n\n## Usage\n\n### Make API calls\n\n```go\nimport (\n    \"net\"\n    ipac \"github.com/dthung1602/instant-proxy-api-client\"\n)\n\n// create client\nendpoint := \"\"\nclient := ipac.NewClient(\"username\", \"password\", endpoint)\n\n// If endpoint is empty sting, the client make http call\n// to the real instant proxy server at https://admin.instantproxies.com\n// For testing, start a fake server and pass endpoint = \"http://localhost:3000\"\n// See \"Fake server\" section\n\n// You don't need to explicitly call Authenticate() before making API calls\n// The client will do that automatically\n// However, you can call Authenticate to check if the logins is correct \nerr := client.Authenticate()\n\n// Read API\nproxies, err := client.GetProxies()\nips, err := client.GetAuthorizedIPs()\n\n// Write API\nerr := client.AddAuthorizedIP(net.ParseIP(\"127.0.0.1\"))\nerr := client.AddAuthorizedIPs([]net.IP{\n    net.ParseIP(\"132.4.4.6\"),\n    net.ParseIP(\"56.77.3.2\"),\n})\n\nerr = client.RemoveAuthorizedIP(net.ParseIP(\"127.0.0.1\"))\nerr = client.RemoveAuthorizedIPs([]net.IP{\n    net.ParseIP(\"132.4.4.6\"),\n    net.ParseIP(\"56.77.3.2\"),\n})\n\nerr = client.SetAuthorizedIPs([]net.IP{\n    net.ParseIP(\"8.8.8.8\"),\n    net.ParseIP(\"4.4.4.4\"),\n})\n\n// Other\nmyIP, err := client.GetOwnedPublicIP()\n\nproxy, err := ipac.MakeProxy(\"123.21.1.1:3000\")\n\ntestProxies, err := ipac.MakeProxies([]string{\n    \"154.38.148.102:8800\",\n    \"154.37.249.170:8800\",\n    \"87.101.80.161:8800\",\n})\nresult := client.TestProxies(testProxies)\n\n```\n\n### Fake server\n\nThis module also includes a dead simple replica of InstantProxy server.\nLogin credential:\n- Username: `username`\n- Password: `password`\n\n```go\nimport (\n    ipac \"github.com/dthung1602/instant-proxy-api-client\"\n)\n\nport := 3000\nauthProxies := []net.IP{  // can be nil\n    net.ParseIP(\"123.1.1.1\"),\n    net.ParseIP(\"123.1.1.2\"),\n}\nserver := ipac.NewFakeServer(port, authProxies)\n\n\n// run in background, returns immediately\nserver.StartServing() \nclient := ipac.NewClient(\"username\", \"password\", \"http://localhost:3000\")\nproxies, err := client.GetProxies()\nserver.Stop()\n\n// run in foreground forever\n// only stops on Ctrl+C signal\n// page can be in browser at http://localhost:3000\nserver.ServeForever()\n```\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nDuong Thanh Hung - [dthung1602@gmail.com](mailto:dthung1602@gmail.com)\n\nProject Link: [https://github.com/dthung1602/instant-proxy-api-client](https://github.com/dthung1602/instant-proxy-api-client)\n\n\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\n## Acknowledgements\n* [Best README template](https://github.com/othneildrew/Best-README-Template)\n* [Img Shields](https://shields.io)\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/dthung1602/instant-proxy-api-client.svg?style=flat-square\n[contributors-url]: https://github.com/dthung1602/instant-proxy-api-client/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/dthung1602/instant-proxy-api-client.svg?style=flat-square\n[forks-url]: https://github.com/dthung1602/instant-proxy-api-client/network/members\n[stars-shield]: https://img.shields.io/github/stars/dthung1602/instant-proxy-api-client.svg?style=flat-square\n[stars-url]: https://github.com/dthung1602/instant-proxy-api-client/stargazers\n[issues-shield]: https://img.shields.io/github/issues/dthung1602/instant-proxy-api-client.svg?style=flat-square\n[issues-url]: https://github.com/dthung1602/instant-proxy-api-client/issues\n[license-shield]: https://img.shields.io/github/license/dthung1602/instant-proxy-api-client.svg?style=flat-square\n[license-url]: https://github.com/dthung1602/instant-proxy-api-client/blob/master/LICENSE\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdthung1602%2Finstant-proxy-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdthung1602%2Finstant-proxy-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdthung1602%2Finstant-proxy-api-client/lists"}