{"repo":"ipqwery/ipapi-ts","free":true,"listed":false,"github":"https://github.com/ipqwery/ipapi-ts","clone":"git clone https://github.com/ipqwery/ipapi-ts.git","description":"Typescript/Javascript bindings for ipquery.io | A free and performant ip address API","language":"TypeScript","stars":52,"topics":["api","geoip","geoip2","ip","proxy-detection","typescript","vpn-detection"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"enrichip A TypeScript/JavaScript library to query IP addresses using the ipquery.io API. This package provides detailed information about IP addresses, including ISP details, geolocation, and risk assessment. Features - Query information for a specific IP address. - Fetch your own public IP address. - Perform bulk queries for multiple IP addresses. - Compatible with both TypeScript and JavaScript. - Uses axios for HTTP requests. Table of Contents - Installation - Usage - Query a Specific IP Address - Fetch Your Own Public IP Address - Bulk Query Multiple IP Addresses - API Reference - Types - Running Tests - Contributing - License --- Installation Install the package using npm: Or using yarn: Usage Importing the Package You can import the package using ES Modules: Or using CommonJS: Query a Specific IP Address Retrieve detailed information about a specific IP address: Example Output: Fetch Your Own Public IP Address Retrieve the public IP address of the machine running your code: Example Output: Bulk Query Multiple IP Addresses Fetch details for multiple IP addresses in one go: Example Output: API Reference queryIP(ip: string): Promise Fetches detailed information about a specific IP address. - Parameters : - ip : The IP address to query. - Returns : A promise that resolves to an IPInfo object. queryOwnIP(): Promise Fetches the public IP address of the current machine. - Returns : A promise that resolves to the IP address as a string. queryBulk(ips: string[]): Promise Fetches","default_branch":null,"files":null,"tree":[],"storefront":"/r/ipqwery","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ipqwery/ipapi-ts/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."}