Sign in to grab your API key — or create a free account. Sign In Get Started

IP Geolocation Lookup GitHub

IP and Network Intelligence
POST /api/v1/ip/geolocation Bearer

Ready-to-run IP Geolocation Lookup examples in 10 languages, open source on GitHub. Every one of them calls POST /api/v1/ip/geolocation with a Bearer key and prints the parsed response. Each file runs as-is once you set WAY2API_KEY — no SDK to install.

IP Geolocation Lookup API — Code Examples by Language

Run it in one command

Download the example straight from GitHub and run it. Replace your_key with the key from your dashboard.

curl -sO https://raw.githubusercontent.com/yoflic/way2api-examples/main/ip-geolocation/python.py
WAY2API_KEY=your_key python python.py

What’s in the repository

  • Every live Way2API endpoint has its own folder, named the same as its documentation URL — this API is ip-geolocation.
  • That folder carries all 10 language files plus a README documenting ip_address, lang, the success response and error handling.
  • The examples are generated from this documentation, so they stay in step with the parameters and responses on these pages.
  • These are examples, not SDKs — nothing to install, nothing to keep updated. Copy a file into your project and adapt it.

Found a mistake or need a language that isn’t listed? Open an issue. Never post a real API key or personal data in one.