{"id":17084403,"url":"https://github.com/niklasf/ip2proxy-rust","last_synced_at":"2025-04-12T21:25:56.471Z","repository":{"id":52412937,"uuid":"259096956","full_name":"niklasf/ip2proxy-rust","owner":"niklasf","description":"Rust library to query IP2Proxy BIN Data files","archived":false,"fork":false,"pushed_at":"2023-04-21T19:55:58.000Z","size":73,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T07:57:41.880Z","etag":null,"topics":["geolocation","ip2location","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/ip2proxy","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niklasf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"niklasf"}},"created_at":"2020-04-26T17:54:18.000Z","updated_at":"2024-06-03T20:13:35.000Z","dependencies_parsed_at":"2023-09-26T03:54:59.491Z","dependency_job_id":null,"html_url":"https://github.com/niklasf/ip2proxy-rust","commit_stats":{"total_commits":95,"total_committers":3,"mean_commits":"31.666666666666668","dds":0.04210526315789476,"last_synced_commit":"243421714a8727142b28f6e815924ea5e698c1cf"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Fip2proxy-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Fip2proxy-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Fip2proxy-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Fip2proxy-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niklasf","download_url":"https://codeload.github.com/niklasf/ip2proxy-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248633346,"owners_count":21136857,"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":["geolocation","ip2location","rust"],"created_at":"2024-10-14T13:07:03.246Z","updated_at":"2025-04-12T21:25:56.448Z","avatar_url":"https://github.com/niklasf.png","language":"Rust","funding_links":["https://github.com/sponsors/niklasf"],"categories":[],"sub_categories":[],"readme":"IP2Proxy Rust Library\n=====================\n\n[![Test](https://github.com/niklasf/ip2proxy-rust/workflows/Test/badge.svg)](https://github.com/niklasf/ip2proxy-rust/actions)\n[![crates.io](https://img.shields.io/crates/v/ip2proxy.svg)](https://crates.io/crates/ip2proxy)\n[![docs.rs](https://docs.rs/ip2proxy/badge.svg)](https://docs.rs/ip2proxy)\n\nLibrary to query **IP2Proxy BIN Data** files. They contain known proxies,\ngeolocation information, and other meta data for IP address ranges.\n\nhttps://www.ip2location.com/ is a commercial provider, offering various database\nfiles for download.\n\nSupports IPv4 and IPv6.\n\nUsage example\n-------------\n\n```rust\nuse ip2proxy::{Columns, Database, Row};\n\nlet db = Database::open(\"data/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL-PROVIDER.BIN\")?;\n\nassert_eq!(db.package_version(), 11);\nassert_eq!(db.database_version(), \"21.5.28\");\n\nif let Some(row) = db.query(\"1.0.0.1\".parse()?, Columns::all())? {\n    assert_eq!(row.proxy_type, Some(String::from(\"DCH\")));\n    assert_eq!(row.country_short, Some(String::from(\"US\")));\n    assert_eq!(row.country_long, Some(String::from(\"United States of America\")));\n    assert_eq!(row.region, Some(String::from(\"California\")));\n    assert_eq!(row.city, Some(String::from(\"Los Angeles\")));\n    assert_eq!(row.isp, Some(String::from(\"APNIC and CloudFlare DNS Resolver Project\")));\n    assert_eq!(row.domain, Some(String::from(\"cloudflare.com\")));\n    assert_eq!(row.usage_type, Some(String::from(\"CDN\")));\n    assert_eq!(row.asn, Some(String::from(\"13335\")));\n    assert_eq!(row.as_name, Some(String::from(\"CloudFlare Inc\")));\n    assert_eq!(row.last_seen, Some(String::from(\"27\")));\n    assert_eq!(row.threat, Some(String::from(\"-\")));\n    assert_eq!(row.provider, Some(String::from(\"-\")));\n}\n```\n\nDocumentation\n-------------\n\n[Read the documentation](https://docs.rs/ip2proxy)\n\nLicense\n-------\n\nThis is an independently developed open-source library, licensed under the\nMIT or Apache 2.0 license at your option. The author is not associated with\n*IP2Location.com*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasf%2Fip2proxy-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniklasf%2Fip2proxy-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasf%2Fip2proxy-rust/lists"}