{"repo":"ipqwery/ipapi-go","free":true,"listed":false,"github":"https://github.com/ipqwery/ipapi-go","clone":"git clone https://github.com/ipqwery/ipapi-go.git","description":"Golang bindings for ipquery.io | A free and performant ip address API","language":"Go","stars":112,"topics":["api","geoip","geoip2","go","ip","proxy-detection","vpn-detection"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"ipapi-go A Go package to query IP addresses using the ipquery.io API. Overview ipapi-go is a lightweight Go package that allows you to fetch detailed information about IP addresses, including ISP details, location data, and risk assessment, using the ipquery.io API. You can use this package to query individual IP addresses, perform bulk lookups, and even find out your own public IP address. Features - Query detailed information for a specific IP address. - Fetch geographical and ISP data. - Check if an IP address is associated with VPNs, proxies, or data centers. - Get the public IP address of your own machine. Installation To install the package, run: Importing the Package Usage Examples Query a Specific IP Address You can fetch detailed information about a specific IP address using the QueryIP function: Example Output Fetch Your Own Public IP Address To fetch the public IP address of the machine running your code, use the QueryOwnIP function: Example Output Struct Definitions Below are the definitions of the key data structures used in this package: - ISPInfo : Contains information about the Internet Service Provider (ISP). - LocationInfo : Holds geographical data such as country, city, and coordinates. - RiskInfo : Provides information on potential risks associated with the IP (e.g., if it's a VPN or proxy). - IPInfo : The main structure that combines all the information. Example: Testing The package includes unit tests to ensure functionality. To run the tests: Example Te","default_branch":null,"files":null,"tree":[],"storefront":"/r/ipqwery","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ipqwery/ipapi-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}