{"id":21482466,"url":"https://github.com/jonhadfield/ip-fetcher","last_synced_at":"2026-02-15T21:32:14.326Z","repository":{"id":65230945,"uuid":"584228156","full_name":"jonhadfield/ip-fetcher","owner":"jonhadfield","description":"A go library and CLI to fetch IP ranges from popular online sources","archived":false,"fork":false,"pushed_at":"2026-02-07T10:45:01.000Z","size":6828,"stargazers_count":4,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-07T19:49:07.673Z","etag":null,"topics":["address","aws","azure","gcp","go","golang","google","ips","networks","oci"],"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/jonhadfield.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2023-01-01T23:04:45.000Z","updated_at":"2026-02-07T10:45:05.000Z","dependencies_parsed_at":"2023-11-09T11:54:17.538Z","dependency_job_id":"5c81c823-826e-42cc-a7d5-0a58d91fe5ef","html_url":"https://github.com/jonhadfield/ip-fetcher","commit_stats":null,"previous_names":["jonhadfield/prefix-fetcher"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/jonhadfield/ip-fetcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fip-fetcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fip-fetcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fip-fetcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fip-fetcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonhadfield","download_url":"https://codeload.github.com/jonhadfield/ip-fetcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fip-fetcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29490274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["address","aws","azure","gcp","go","golang","google","ips","networks","oci"],"created_at":"2024-11-23T12:33:46.973Z","updated_at":"2026-02-15T21:32:14.284Z","avatar_url":"https://github.com/jonhadfield.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ip-fetcher\n\n[![GoDoc](https://godoc.org/github.com/jonhadfield/ip-fetcher?status.svg)](https://pkg.go.dev/github.com/jonhadfield/ip-fetcher)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jonhadfield/ip-fetcher)](https://goreportcard.com/report/github.com/jonhadfield/ip-fetcher)\n\n## about\n\nip-fetcher is a go library and cli used to retrieve public ip prefixes from popular cloud and hosting providers.\nPlease raise an issue if you have any issues or suggestions for new providers.\n\n## supported providers\n\n- \u003ca href=\"https://www.abuseipdb.com/\" target=\"_blank\"\u003eAbuseIPDB\u003c/a\u003e\n- \u003ca href=\"https://aws.amazon.com/\" target=\"_blank\"\u003eAWS\u003c/a\u003e (Amazon Web Services)\n- \u003ca href=\"https://www.alibabacloud.com\" target=\"_blank\"\u003eAlibaba\u003c/a\u003e\n- \u003ca href=\"https://www.bing.com/webmasters/help/which-crawlers-does-bing-use-8c184ec0\" target=\"_blank\"\u003eBingbot\u003c/a\u003e\n- \u003ca href=\"https://www.cloudflare.com/\" target=\"_blank\"\u003eCloudflare\u003c/a\u003e\n- \u003ca href=\"https://www.digitalocean.com/\" target=\"_blank\"\u003eDigitalOcean\u003c/a\u003e\n- \u003ca href=\"https://www.fastly.com/\" target=\"_blank\"\u003eFastly\u003c/a\u003e\n- \u003ca href=\"https://cloud.google.com/\" target=\"_blank\"\u003eGCP\u003c/a\u003e (Google Cloud Platform)\n- \u003ca href=\"https://www.google.com/\" target=\"_blank\"\u003eGoogle\u003c/a\u003e\n- \u003ca href=\"https://developers.google.com/search/docs/crawling-indexing/googlebot\" target=\"_blank\"\u003eGooglebot\u003c/a\u003e\n- \u003ca href=\"https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot\" target=\"_blank\"\u003eGoogle Special Crawlers\u003c/a\u003e\n- \u003ca href=\"https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot\" target=\"_blank\"\u003eGoogle User-Triggered Fetchers\u003c/a\u003e\n- \u003ca href=\"https://www.maxmind.com\" target=\"_blank\"\u003eMaxMind GeoIP\u003c/a\u003e\n- \u003ca href=\"https://azure.microsoft.com\" target=\"_blank\"\u003eMicrosoft Azure\u003c/a\u003e\n- \u003ca href=\"https://www.akamai.com\" target=\"_blank\"\u003eAkamai\u003c/a\u003e\n- \u003ca href=\"https://www.hetzner.com\" target=\"_blank\"\u003eHetzner\u003c/a\u003e\n- \u003ca href=\"https://www.github.com\" target=\"_blank\"\u003eGitHub\u003c/a\u003e\n- \u003ca href=\"https://www.linode.com\" target=\"_blank\"\u003eLinode\u003c/a\u003e\n- \u003ca href=\"https://www.m247.com/\" target=\"_blank\"\u003eM247\u003c/a\u003e\n- \u003ca href=\"https://www.scaleway.com/\" target=\"_blank\"\u003eScaleway\u003c/a\u003e\n- \u003ca href=\"https://www.oracle.com/cloud/\" target=\"_blank\"\u003eOracle Cloud Infrastructure\u003c/a\u003e\n- \u003ca href=\"https://support.apple.com/en-us/HT212614\" target=\"_blank\"\u003eiCloud Private Relay\u003c/a\u003e\n- \u003ca href=\"https://www.ovhcloud.com\" target=\"_blank\"\u003eOVHcloud\u003c/a\u003e\n- \u003ca href=\"https://www.vultr.com\" target=\"_blank\"\u003eVultr\u003c/a\u003e\n- \u003ca href=\"https://www.zscaler.com\" target=\"_blank\"\u003eZscaler\u003c/a\u003e\n- \u003ca href=\"https://github.com/jonhadfield/ip-fetcher\" target=\"_blank\"\u003eCustom URL\u003c/a\u003e\n\n## CLI\n\n### install\n\nDownload the latest release [here](https://github.com/jonhadfield/ip-fetcher/releases) and then install:\n\n```bash\ninstall \u003cip-fetcher binary\u003e /usr/local/bin/ip-fetcher\n```\n_use: `sudo install` if on linux_\n\n### run\n\n```\nip-fetcher \u003cprovider\u003e \u003coptions\u003e\n```\nfor example:\n- output aws prefixes to the console: `ip-fetcher aws --stdout`\n- save gcp prefixes to a file: `ip-fetcher gcp --file prefixes.json`\n- publish all ranges to a git repository: `ip-fetcher publish`\n- set the `PREFIX_FETCHER_LOG` environment variable to change log verbosity\n  e.g. `PREFIX_FETCHER_LOG=debug ip-fetcher aws --stdout`\n\n## API\n\nThe following example uses the GCP (Google Cloud Platform) provider.\n\n### installation\n```\ngo get github.com/jonhadfield/ip-fetcher/providers/gcp\n```\n### basic usage\n```\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/jonhadfield/ip-fetcher/providers/gcp\"\n)\n\nfunc main() {\n    g := gcp.New()         // initialise client\n    doc, err := g.Fetch()  // fetch prefixes document\n    if err != nil {\n        panic(err)\n    }\n\n    for _, p := range doc.IPv6Prefixes {\n        fmt.Printf(\"%s %s %s\\n\", p.IPv6Prefix.String(), p.Service, p.Scope)\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhadfield%2Fip-fetcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonhadfield%2Fip-fetcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhadfield%2Fip-fetcher/lists"}