{"id":27949394,"url":"https://github.com/matheushoske/hoskes.geoapi","last_synced_at":"2026-04-29T15:39:23.399Z","repository":{"id":286548102,"uuid":"961713236","full_name":"matheushoske/hoskes.geoapi","owner":"matheushoske","description":"A completely free, open, self-hosted alternative to things like IPAPI or GeoPlugin – but with the ability to add plugins and customize the API response. Something that could evolve into a community-driven, plugin-based API playground.","archived":false,"fork":false,"pushed_at":"2025-04-22T21:17:05.000Z","size":29300,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T22:28:01.952Z","etag":null,"topics":["api","geolocation","iplocation","javascript","nodejs"],"latest_commit_sha":null,"homepage":"https://geoapi-hoskes.onrender.com/json.gp","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/matheushoske.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-07T03:39:45.000Z","updated_at":"2025-04-22T21:17:09.000Z","dependencies_parsed_at":"2025-04-07T05:40:01.649Z","dependency_job_id":null,"html_url":"https://github.com/matheushoske/hoskes.geoapi","commit_stats":null,"previous_names":["matheushoske/hoskes.geoapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheushoske%2Fhoskes.geoapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheushoske%2Fhoskes.geoapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheushoske%2Fhoskes.geoapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheushoske%2Fhoskes.geoapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matheushoske","download_url":"https://codeload.github.com/matheushoske/hoskes.geoapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252904682,"owners_count":21822655,"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":["api","geolocation","iplocation","javascript","nodejs"],"created_at":"2025-05-07T15:27:22.123Z","updated_at":"2026-04-29T15:39:23.394Z","avatar_url":"https://github.com/matheushoske.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📍 Hoskes LocPlugin API\n\n**A **free**, **lightweight**, **open source**, GeoPlugin-style IP geolocation API built with 💙 for the community.**\n\n🟣 **Live URL:** [https://geoapi-hoskes.onrender.com/json.gp](https://geoapi-hoskes.onrender.com/json.gp)  \n📦 **License:** MIT  \n🤝 **Open for contributions and issues**\n\n---\n\n## 🚀 How It Works\n \n This API detects the **network IP** of the requester and returns detailed geographic information, including:\n - City\n - Region\n - Country\n - Continent\n - Postal Code\n - Latitude \u0026 Longitude\n - Timezone\n - ...and more!\t\n ---\n - 🌍 IP-based location lookup using MaxMind GeoLite2\n - ⚡ Fast response time with accurate delay reporting\n - 🔌 Plugin support via `?plugins=plugin1,plugin2` in the URL\n - 🎯 **NEW**: Query specific IP addresses via `?ip=1.1.1.1` parameter\n - ✅ Currently supported plugins:\n   - `weather`: Current weather based on coordinates\n   - `language`: Primary language based on country\n   \nAccess via GET: \n```bash\n# Get location for your own IP\nhttps://geoapi-hoskes.onrender.com/json.gp\n\n# Get location for a specific IP\nhttps://geoapi-hoskes.onrender.com/json.gp?ip=1.1.1.1\n\n# Get location for specific IP with plugins\nhttps://geoapi-hoskes.onrender.com/json.gp?ip=8.8.8.8\u0026plugins=weather,language\n```\n\n\n---\n## ✨ Example Response\n\n```json\n{\n  \"hoskes_locplugin_request\": \"178.238.10.15\",\n  \"hoskes_locplugin_status\": 200,\n  \"hoskes_locplugin_delay\": \"0.45ms\",\n  \"hoskes_locplugin_credit\": \"Returned data includes GeoLite2 data created by MaxMind, available from \\u003Ca href='https://www.maxmind.com'\\u003Ehttps://www.maxmind.com\\u003C/a\\u003E.\",\n  \"hoskes_locplugin_city\": \"Canary Wharf\",\n  \"hoskes_locplugin_region\": \"England\",\n  \"hoskes_locplugin_regionCode\": \"ENG\",\n  \"hoskes_locplugin_regionName\": \"England\",\n  \"hoskes_locplugin_countryCode\": \"GB\",\n  \"hoskes_locplugin_countryName\": \"United Kingdom\",\n  \"hoskes_locplugin_inEUunion\": 0,\n  \"hoskes_locplugin_continentCode\": \"EU\",\n  \"hoskes_locplugin_continentName\": \"Europe\",\n  \"hoskes_locplugin_latitude\": \"51.5064\",\n  \"hoskes_locplugin_longitude\": \"-0.02\",\n  \"hoskes_locplugin_locationAccuracyRadius\": \"20\",\n  \"hoskes_locplugin_timezone\": \"Europe/London\",\n  \"hoskes_locplugin_postalCode\": \"E14\"\n}\n```\n\n## 🔌 Plugins System\n\nPlugins run only if requested via query string:\n\n```bash\n/json.gp?plugins=weather,language\n```\n\nEach plugin enriches the JSON response. Plugins are modular and stored in `/plugins`.\n\n---\n\n## ✨ Example Response With Plugins\n\n```json\n{\n  \"hoskes_locplugin_request\": \"179.172.163.15\",\n  ...\n  \"hoskes_locplugin_weather\": \"30°C ☀️\", //Weather plugin\n  \"hoskes_locplugin_language\": \"English\", //Language plugin\n  \"hoskes_locplugin_langcode\": \"en\" //Language plugin\n}\n```\n\n---\n\n## 🧠 Built With\n \n - Node.js + Express\n - MaxMind GeoLite2 database\n - `request-ip` for IP extraction\n \n ---\n## 🛠️ How to Use (For devs)\n \n 1. Clone this repo:\n    ```bash\n    git clone https://github.com/matheushoske/hoskes.geoapi.git\n    ```\n \n 2. Download the [GeoLite2-City.mmdb](https://dev.maxmind.com/geoip/geolite2-free-geolocation-data) and replace it in the project root (optional [For updated data]).\n \n 3. Install dependencies:\n    ```bash\n    npm install\n    ```\n\t```bash\n\tnode index.js\n\t```\n Access via:  \n `http://localhost:3000/json.gp?plugins=weather,language`\n\n**Examples:**\n- `http://localhost:3000/json.gp` - Get your own IP location\n- `http://localhost:3000/json.gp?ip=1.1.1.1` - Get location for specific IP\n- `http://localhost:3000/json.gp?ip=8.8.8.8\u0026plugins=weather,language` - Get location with plugins\n\n\n## 📄 License\n \n This project is licensed under the [MIT License](LICENSE).\n \n ---\n \n ## 🙏 Credit\n \n - Geo data provided by [MaxMind GeoLite2](https://www.maxmind.com).\n\n## 🤝 Contributing\n\n- Submit issues freely\n- Create pull requests at any time\n- Add your own plugin in `/plugins` and PR!\n\nMade with ❤️ by [@matheushoske](https://github.com/matheushoske) for the community 💜\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheushoske%2Fhoskes.geoapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatheushoske%2Fhoskes.geoapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheushoske%2Fhoskes.geoapi/lists"}