{"id":18256903,"url":"https://github.com/mediacomem/ipgeolocation","last_synced_at":"2025-04-08T22:28:56.173Z","repository":{"id":44830809,"uuid":"251353210","full_name":"MediaComem/ipgeolocation","owner":"MediaComem","description":"Geolocate IP addresses from a CSV file with https://ipgeolocation.io","archived":false,"fork":false,"pushed_at":"2022-01-22T11:18:24.000Z","size":40,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-14T17:43:25.617Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/MediaComem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-30T15:49:38.000Z","updated_at":"2024-06-20T01:02:07.000Z","dependencies_parsed_at":"2022-08-25T10:31:47.135Z","dependency_job_id":null,"html_url":"https://github.com/MediaComem/ipgeolocation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MediaComem%2Fipgeolocation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MediaComem%2Fipgeolocation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MediaComem%2Fipgeolocation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MediaComem%2Fipgeolocation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MediaComem","download_url":"https://codeload.github.com/MediaComem/ipgeolocation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247938550,"owners_count":21021547,"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":[],"created_at":"2024-11-05T10:24:04.798Z","updated_at":"2025-04-08T22:28:56.150Z","avatar_url":"https://github.com/MediaComem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ipgeolocation\n\n\u003e Get the geolocation of IP addresses in a CSV file using\n\u003e https://ipgeolocation.io.\n\nThis tool expects a CSV file with IP addresses in the first column and a\none-line header, for example:\n\n```csv\nIP Address,Whatever\n100.101.102.103,foo\n104.105.106.107,bar\n200.201.202.203,baz\n```\n\nIt will output a CSV file with geolocation data about each IP address. This is a\nsimplified example of the output:\n\n```csv\nip,type,result,country_code2,country_name,state_prov,city,...\n100.101.102.103,ipv4,success,US,United States,New York,Syracuse,...\n104.105.106.107,ipv4,success,US,United States,Wisconsin,Canton,...\n200.201.202.203,ipv4,success,US,United States,Colorado,Denver,...\n```\n\nThe description of all returned geolocation data can be found here:\nhttps://ipgeolocation.io/documentation/ip-geolocation-api.html\n\n**NOTE: you need a (free) [ipgeolocation](https://ipgeolocation.io) account and API key.**\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Examples](#examples)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Requirements\n\n* [Node.js](https://nodejs.org) 12+\n\n## Installation\n\n```bash\nnpm install --global @mediacomem/ipgeolocation\n```\n\n\u003e Or with [npx](https://github.com/npm/npx#readme):\n\u003e\n\u003e ```bash\n\u003e npx @mediacomem/ipgeolocation --help\n\u003e ```\n\n## Usage\n\n```\nipgeolocation [options...]\n\nOptions:\n  --version                Show version number                         [boolean]\n  --apiKey, -k, --api-key  Provide your ipgeolocation API key[string] [required]\n  --apiUrl, -u, --api-url  Change the default ipgeolocation API URL\n                        [string] [default: \"https://api.ipgeolocation.io/ipgeo\"]\n  --input, -i              CSV input file (- for standard input)\n                                                         [string] [default: \"-\"]\n  --output, -o             CSV output file (standard output if not specified)\n                                                                        [string]\n  --help                   Show help                                   [boolean]\n```\n\n## Examples\n\n* Geolocate IP addresses in a CSV file and save the results to another file:\n\n      ipgeolocation -i input.csv -o output.csv --api-key CHANGEME\n* Geolocate IP adresses in CSV from standard input and print the results to\n  standard output:\n\n      cat input.csv | ipgeolocation --api-key CHANGEME \u003e output.csv","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmediacomem%2Fipgeolocation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmediacomem%2Fipgeolocation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmediacomem%2Fipgeolocation/lists"}