{"id":27209515,"url":"https://github.com/ardatetikbey/ipapi-ruby","last_synced_at":"2025-08-10T19:29:07.646Z","repository":{"id":286490036,"uuid":"961553658","full_name":"ardatetikbey/ipapi-ruby","owner":"ardatetikbey","description":"A Ruby gem to query IP addresses using the ipquery.io API.","archived":false,"fork":false,"pushed_at":"2025-04-07T20:31:33.000Z","size":16,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T17:54:14.286Z","etag":null,"topics":["ipapi"],"latest_commit_sha":null,"homepage":"https://ipquery.io/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ardatetikbey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-06T18:46:02.000Z","updated_at":"2025-04-11T20:27:16.000Z","dependencies_parsed_at":"2025-04-10T00:57:20.805Z","dependency_job_id":null,"html_url":"https://github.com/ardatetikbey/ipapi-ruby","commit_stats":null,"previous_names":["ardatetikbey/ipapi-ruby"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardatetikbey%2Fipapi-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardatetikbey%2Fipapi-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardatetikbey%2Fipapi-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardatetikbey%2Fipapi-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ardatetikbey","download_url":"https://codeload.github.com/ardatetikbey/ipapi-ruby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248644181,"owners_count":21138564,"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":["ipapi"],"created_at":"2025-04-10T00:57:18.927Z","updated_at":"2025-04-13T19:39:18.900Z","avatar_url":"https://github.com/ardatetikbey.png","language":"Ruby","readme":"# ipapi-ruby\n\nA Ruby gem to query IP addresses using the ipquery.io API.\n\n## Overview\n\n**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.\n\n## Features\n\n- Query your own IP address data.\n- Query information for any valid IP address.\n- Choose the response format (JSON by default).\n\n## Installation\n\n```bash\ngem install ipapi\n```\n\n## Dependencies\n\n- httparty -\u003e \"0.23.1\"\n\n## Usage\n\nFirst, make sure to require the module in your script:\n\n```ruby\nrequire \"ipapi\"\n```\n\nQuery your own IP:\n```ruby\nIpapi.query_own_ip()\n```\n\nQuery a specific IP:\n```ruby\nIpapi.query_ip(\"8.8.8.8\", \"yaml\")\n```\n\nExample Output:\n```yaml\nip: 8.8.8.8\nisp:\n  asn: AS15169\n  org: Google LLC\n  isp: Google LLC\nlocation:\n  country: United States\n  country_code: US\n  city: Mountain View\n  state: California\n  zipcode: \"94043\"\n  latitude: 37.436551599813335\n  longitude: -122.09383799087185\n  timezone: America/Los_Angeles\n  localtime: 2025-04-06T19:36:06\nrisk:\n  is_datacenter: true\n```\n\nLicense\n- This project is open-source and available under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardatetikbey%2Fipapi-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fardatetikbey%2Fipapi-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardatetikbey%2Fipapi-ruby/lists"}