@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api IPInfoDB IP Address Lookup
@base https://api.ipinfodb.com
@version 1.0
@auth ApiKey key in query
@endpoints 2
@toc ip-city(1), ip-country(1)

@group ip-city
@endpoint GET /v3/ip-city/
@desc Get location of an IP address
@required {ip: str # IPv4 or IPv6 address., key: str # API key.}
@optional {format: str(json/xml) # Return the result in json or xml format.}
@returns(200) Get location information

@endgroup

@group ip-country
@endpoint GET /v3/ip-country/
@desc Get country of an IP address
@required {ip: str # IPv4 or IPv6 address., key: str # API key.}
@optional {format: str(json/xml) # Return the result in json or xml format.}
@returns(200) Get country information

@endgroup

@end
