{"id":21945892,"url":"https://github.com/ip2location/steampipe-plugin-ip2locationio","last_synced_at":"2026-06-06T07:30:21.948Z","repository":{"id":177545485,"uuid":"656436662","full_name":"ip2location/steampipe-plugin-ip2locationio","owner":"ip2location","description":"Use SQL to instantly query ip2location.io for IP address or WHOIS information. Open source CLI. No DB required.","archived":false,"fork":false,"pushed_at":"2025-05-07T02:51:09.000Z","size":153,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-05-13T10:49:54.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.steampipe.io/plugins/ip2location/ip2locationio","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ip2location.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-21T00:50:17.000Z","updated_at":"2026-04-27T05:18:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"785a1dd8-f3b0-4fb9-822e-b24b238833a2","html_url":"https://github.com/ip2location/steampipe-plugin-ip2locationio","commit_stats":null,"previous_names":["ip2location/steampipe-plugin-ip2locationio","ip2location-com/steampipe-plugin-ip2locationio"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ip2location/steampipe-plugin-ip2locationio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fsteampipe-plugin-ip2locationio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fsteampipe-plugin-ip2locationio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fsteampipe-plugin-ip2locationio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fsteampipe-plugin-ip2locationio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ip2location","download_url":"https://codeload.github.com/ip2location/steampipe-plugin-ip2locationio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fsteampipe-plugin-ip2locationio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33973868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-29T04:20:01.848Z","updated_at":"2026-06-06T07:30:21.934Z","avatar_url":"https://github.com/ip2location.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://hub.steampipe.io/images/plugins/ip2location/ip2locationio-social-graphic.png)\r\n\r\n# IP2Location.io Plugin for Steampipe\r\n\r\nUse SQL to retrieve geolocation or WHOIS info in minutes using [ip2location.io](https://ip2location.io).\r\n\r\n- **[Get started →](https://hub.steampipe.io/plugins/ip2location/ip2locationio)**\r\n- Documentation: [Table definitions \u0026 examples](https://hub.steampipe.io/plugins/ip2location/ip2locationio/tables)\r\n- Community: [Slack Channel](https://steampipe.io/community/join)\r\n- Get involved: [Issues](https://github.com/ip2location/steampipe-plugin-ip2locationio/issues)\r\n\r\n## Quick start\r\n\r\nInstall the plugin with [Steampipe](https://steampipe.io):\r\n\r\n```sh\r\nsteampipe plugin install ip2location/ip2locationio\r\n```\r\n\r\nConfigure the server address in `~/.steampipe/config/ip2locationio.spc`:\r\n\r\n```hcl\r\nconnection \"ip2locationio\" {\r\n  plugin = \"ip2location/ip2locationio\"\r\n\r\n  # API key for requests. Required.\r\n  # Sign up for a free key at https://www.ip2location.io/pricing\r\n  # This can also be set via the `IP2LOCATIONIO_API_KEY` environment variable.\r\n  # api_key = \"Q5Z8QS544RKC2VK4P3ZH7YW3C16MDCBW\"\r\n}\r\n```\r\n\r\nOr through environment variables:\r\n\r\n```sh\r\nexport IP2LOCATIONIO_API_KEY=Q5Z8QS544RKC2VK4P3ZH7YW3C16MDCBW\r\n```\r\n\r\nRun steampipe:\r\n\r\n```sh\r\nsteampipe query\r\n```\r\n\r\nQuery IP geolocation:\r\n\r\n```sql\r\nselect\r\n  country_code,\r\n  country_name,\r\n  region_name,\r\n  city_name \r\nfrom\r\n  ip2locationio_geolocation \r\nwhere\r\n  ip = '8.8.8.8';\r\n```\r\n\r\n```\r\n+--------------+--------------------------+-------------+---------------+\r\n| country_code | country_name             | region_name | city_name     |\r\n+--------------+--------------------------+-------------+---------------+\r\n| US           | United States of America | California  | Mountain View |\r\n+--------------+--------------------------+-------------+---------------+\r\n```\r\n\r\nQuery WHOIS data:\r\n\r\n```sql\r\nselect\r\n  domain,\r\n  domain_id,\r\n  status,\r\n  create_date \r\nfrom\r\n  ip2locationio_whois \r\nwhere\r\n  domain = 'google.com';\r\n```\r\n\r\n```\r\n+------------+-------------------------+---------------------------------------------------------------------------+----------------------+\r\n| domain     | domain_id               | status                                                                    | create_date          |\r\n+------------+-------------------------+---------------------------------------------------------------------------+----------------------+\r\n| google.com | 2138514_DOMAIN_COM-VRSN | clientUpdateProhibited (https://www.icann.org/epp#clientUpdateProhibited) | 1997-09-15T07:00:00Z |\r\n+------------+-------------------------+---------------------------------------------------------------------------+----------------------+\r\n```\r\n\r\nQuery IP hosted domains:\r\n\r\n```sql\r\nselect\r\n  total_domains,\r\n  page,\r\n  per_page,\r\n  total_pages,\r\n  domains \r\nfrom\r\n  ip2locationio_hosted \r\nwhere\r\n  ip = '8.8.8.8';\r\n```\r\n\r\n```\r\n+---------------+------+----------+-------------+-------------------------------------------------------------------------------------------------------------------------------------------\u003e\r\n| total_domains | page | per_page | total_pages | domains                                                                                                                                   \u003e\r\n+---------------+------+----------+-------------+-------------------------------------------------------------------------------------------------------------------------------------------\u003e\r\n| 3861          | 1    | 100      | 39          | [\"000180.top\",\"00100tet.xyz\",\"001hash.vip\",\"002hash.com\",\"0050500.xyz\",\"007515.com\",\"023mm.net\",\"023mt.net\",\"023sn.net\",\"031000.xyz\",\"0515\u003e\r\n|               |      |          |             | xyz\",\"20230406.mov\",\"205566.com\",\"205artemisbet.com\",\"20iiij.cyou\",\"21107ahsfukhweo.com\",\"21hodheoh.cyou\",\"22bahman.space\",\"22howhw.cyou\",\u003e\r\n+---------------+------+----------+-------------+-------------------------------------------------------------------------------------------------------------------------------------------\u003e\r\n```\r\n\r\n## Developing\r\n\r\nPrerequisites:\r\n\r\n- [Steampipe](https://steampipe.io/downloads)\r\n- [Golang](https://golang.org/doc/install)\r\n\r\nClone:\r\n\r\n```sh\r\ngit clone https://github.com/ip2location/steampipe-plugin-ip2locationio.git\r\ncd steampipe-plugin-ip2locationio\r\n```\r\n\r\nBuild, which automatically installs the new version to your `~/.steampipe/plugins` directory:\r\n\r\n```sh\r\nmake\r\n```\r\n\r\nConfigure the plugin:\r\n\r\n```sh\r\ncp config/* ~/.steampipe/config\r\nnano ~/.steampipe/config/ip2locationio.spc\r\n```\r\n\r\nTry it!\r\n\r\n```\r\nsteampipe query\r\n\u003e .inspect ip2locationio\r\n```\r\n\r\nFurther reading:\r\n\r\n- [Writing plugins](https://steampipe.io/docs/develop/writing-plugins)\r\n- [Writing your first table](https://steampipe.io/docs/develop/writing-your-first-table)\r\n\r\n## Contributing\r\n\r\nPlease see the [contribution guidelines](https://github.com/turbot/steampipe/blob/main/CONTRIBUTING.md) and our [code of conduct](https://github.com/turbot/steampipe/blob/main/CODE_OF_CONDUCT.md). All contributions are subject to the [Apache 2.0 open source license](https://github.com/ip2location/steampipe-plugin-ip2locationio/blob/main/LICENSE).\r\n\r\n`help wanted` issues:\r\n\r\n- [Steampipe](https://github.com/turbot/steampipe/labels/help%20wanted)\r\n- [ip2location.io Plugin](https://github.com/ip2location/steampipe-plugin-ip2locationio/labels/help%20wanted)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fsteampipe-plugin-ip2locationio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fip2location%2Fsteampipe-plugin-ip2locationio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fsteampipe-plugin-ip2locationio/lists"}