iplookupapi

package module
Version: v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 6 Imported by: 0

README

iplookupapi-go: Golang IP Geolocation API

This package is a Golang wrapper for iplookupapi.com that aims to make the usage of the API as easy as possible in your project.

Usage

Initialize the API with your API Key (get one for free at iplookupapi.com):

iplookupapi.Init("YOUR-API-KEY")

Afterwards you can make calls to the API like this:

Status Endpoint
iplookupapi.Status()
Info Endpoint
iplookupapi.Info({
    "ip": "1.1.1.1",
    "language": "de"
})

Find out more about our endpoints, parameters and response data structure in the docs

License

The MIT License (MIT). Please see License File for more information.

Documentation

Index

Constants

View Source
const BaseUrl = "https://api.iplookupapi.com/v1/"

Variables

This section is empty.

Functions

func Info

func Info(params map[string]string) []byte

func Init

func Init(key string)

func Status

func Status() []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL