Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 1.98 KB

README.md

File metadata and controls

67 lines (47 loc) · 1.98 KB

스크린샷 2025-01-02 오전 12 28 23

ipapi.r

{ipapi.r} is an R package designed to retrieve and analyze information about IP addresses with IPQuery API.

It provides tools to query IP-related metadata, such as geolocation, ISP details, and more, making it ideal for developers and data scientists working with IP-based insights.

✨ Features

  • Retrieve geolocation details for any IP address.
  • Identify ISP and organization information.
  • Support for querying single or multiple IP addresses.
  • Easy integration with public IP lookup APIs.
  • Compatible with {httr2} for modern and secure HTTP requests.

🔧 Installation

From GitHub

To install the development version from GitHub:

# install.packages("pak")
pak::pak("jahnen/ipapi.r")

CRAN, R-universe will be available soon.

💕 Usage

Querying an IP Address Retrieve metadata for a single IP address:

library(ipapi.r)
# Getting Your Own IP
IPQuery()

# Query Own IP
IPQuery("self") 

# Query details for a specific IP
IPQuery("1.1.1.1")
# Querying Multiple IPs
IPQuery(c("1.1.1.1", "2.2.2.2"))

🤝 Contributing

Contributions are welcome! To contribute:

  1. Fork this repository.
  2. Create a feature branch (git checkout -b feature/your-feature-name).
  3. Commit your changes (git commit -am 'Add a new feature').
  4. Push to the branch (git push origin feature/your-feature-name).
  5. Create a pull request. Please ensure all changes are tested and documented before submitting.

❗ Issues and Support

If you encounter any issues, please report them on the GitHub Issues page.

📝 License

This package is licensed under the MIT License. See the LICENSE file for details.

📚 Acknowledgments

This package was inspired by IPQuery project.