GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ardatetikexe/ipapi-ruby: A Ruby gem to query IP addresses using the ipquery.io API.

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.idea
.idea
 
 
bin
bin
 
 
lib
lib
 
 
.gitignore
.gitignore
 
 
Gemfile
Gemfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
ipapi.gemspec
ipapi.gemspec
 
 

Repository files navigation

ipapi-ruby

A Ruby gem to query IP addresses using the ipquery.io API.

Overview

Ipapi is a lightweight utility module written in Ruby that allows you to fetch detailed information about any IP address. It uses the public ipquery.io API and is ideal for quick integrations, CLI tools, or small-scale applications that need geolocation or network data based on IP addresses.

Features

  • Query your own IP address data.
  • Query information for any valid IP address.
  • Choose the response format (JSON by default).

Installation

gem install ipapi

Dependencies

  • httparty -> "0.23.1"

Usage

First, make sure to require the module in your script:

require "ipapi"

Query your own IP:

Ipapi.query_own_ip()

Query a specific IP:

Ipapi.query_ip("8.8.8.8", "yaml")

Example Output:

ip: 8.8.8.8
isp:
  asn: AS15169
  org: Google LLC
  isp: Google LLC
location:
  country: United States
  country_code: US
  city: Mountain View
  state: California
  zipcode: "94043"
  latitude: 37.436551599813335
  longitude: -122.09383799087185
  timezone: America/Los_Angeles
  localtime: 2025-04-06T19:36:06
risk:
  is_datacenter: true

License

  • This project is open-source and available under the MIT License.

About

A Ruby gem to query IP addresses using the ipquery.io API.

ipquery.io/

Topics

ipapi

Resources

Readme
MIT license
Activity

Stars

11 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.