{"id":18301904,"url":"https://github.com/fegoa89/ipapi","last_synced_at":"2025-04-09T09:47:02.325Z","repository":{"id":57552160,"uuid":"170469643","full_name":"fegoa89/ipapi","owner":"fegoa89","description":"Golang API wrapper that finds the location of an IP address using ipapi.co.","archived":false,"fork":false,"pushed_at":"2021-08-22T10:07:16.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T04:19:11.872Z","etag":null,"topics":["golang","ipapi"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/fegoa89.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}},"created_at":"2019-02-13T08:26:56.000Z","updated_at":"2021-08-22T10:07:19.000Z","dependencies_parsed_at":"2022-09-26T18:50:35.490Z","dependency_job_id":null,"html_url":"https://github.com/fegoa89/ipapi","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/fegoa89%2Fipapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fegoa89%2Fipapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fegoa89%2Fipapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fegoa89%2Fipapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fegoa89","download_url":"https://codeload.github.com/fegoa89/ipapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248017994,"owners_count":21034042,"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":["golang","ipapi"],"created_at":"2024-11-05T15:17:21.160Z","updated_at":"2025-04-09T09:47:02.299Z","avatar_url":"https://github.com/fegoa89.png","language":"Go","readme":"[![Build Status](https://semaphoreci.com/api/v1/fegoa89/ipapi/branches/master/badge.svg)](https://semaphoreci.com/fegoa89/ipapi)[![GoDoc](https://godoc.org/github.com/fegoa89/ipapi?status.svg)](https://godoc.org/github.com/fegoa89/ipapi)\n\n# IPAPI\nGolang API wrapper that finds the location of an IP address using ipapi.co.\n\nIf you purchased a paid plan, export the API Key in the environment:\n\n```shell\nexport IPAPI_KEY=123456asdqwe\n```\n\n### FindLocation\n\nReturns the complete location information for an IP address specified in the function parameter. \n\n```golang\nipapi.FindLocation(\"178.13.214.11\")\n```\n\n### ClientLocation\n\nReturns the complete location of the client (device) that’s making the request. You do not need to specify the IP address, it is inferred from the request.\n\n```golang\nipapi.ClientLocation()\n```\n\n### Usage\n\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/fegoa89/ipapi\"\n)\n\nfunc main() {\n\t// Location of a specific IP\n\tipapi.FindLocation(\"178.13.214.11\")\n\n\t// Location of client's IP\n\tipapi.ClientLocation()\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffegoa89%2Fipapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffegoa89%2Fipapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffegoa89%2Fipapi/lists"}