Find out your IP address and browser information, including both your IPv4 and IPv6 address, your user agent, your location, and more!
In the networking world, we're AS51519 Karabro
##### Get just your IPv4/v6 address
curl -fsSL https://minip.karabro.se/flat
# 2a0e:73c2::333
##### Force cURL to use IPv4
curl -4 -fsSL https://minip.karabro.se/flat
# 45.132.234.108
##### Or simply request our v4/v6-only subdomain
curl -fsSL https://v4.minip.karabro.se/flat
# 45.132.234.108
curl -fsSL https://v6.minip.karabro.se/flat
# 2a0e:73c2::333
##### Get the GeoIP country for your IP
curl -fsSL https://minip.karabro.se/flat/country
# Sweden
##### Get your full location (city, postcode, country)
curl -fsSL https://minip.karabro.se/flat/location
# Malmö, 211 54, Sweden
##### Get your ISP's name and AS Number (ASN)
curl -fsSL https://minip.karabro.se/flat/asninfo
# Karabro AB
# AS51519
##### Get all information about your IP in plain text greppable format
curl -fsSL https://minip.karabro.se/index.txt
curl -H 'Accept: text/plain' -fsSL https://minip.karabro.se/ # ALTERNATIVE
curl -fsSL https://minip.karabro.se/?format=text # ALTERNATIVE
#IP: 2a0e:73c2:123::456
#Version: ipv6
#Hostname:
#UserAgent: curl/7.54.0
#Country: Sweden
#CountryCode: SE
#City: Malmö
#Postcode: 211 54
#Lat: 55.598126
#Long: 13.007398
#ASNum: 51519
#ASName: Karabro AB
#Network: 2a0e:73c2::/32
##### Get all information about your IP as JSON
curl -fsSL https://minip.karabro.se/index.json
curl -H 'Accept: application/json' -fsSL https://minip.karabro.se/ # ALTERNATIVE
curl -fsSL https://minip.karabro.se/?format=json # ALTERNATIVE
# {
# "error": false,
# "geo": {
# "as_name": "Karabro AB",
# "as_number": 51519,
# "city": "Malmö",
# "country": "Sweden",
# "country_code": "SE",
# "error": false,
# "ip_address": "2a0e:73c2:123::456",
# "lat": 55.598126,
# "long": 13.007398,
# "network": "2a0e:73c2::/32",
# "postcode": "211 54"
# },
# "hostname": "",
# "ip": "2a0e:73c2:123::456",
# "ip_type": "ipv6",
# "ip_valid": true,
# "messages": [],
# "ua": "curl/7.54.0"
# }
##### Get all information about your IP as YAML
curl -fsSL https://minip.karabro.se/index.yml
curl -H 'Accept: application/yaml' -fsSL https://minip.karabro.se/ # ALTERNATIVE
curl -fsSL https://minip.karabro.se/?format=yml # ALTERNATIVE
# error: false
# geo:
# as_name: Karabro AB
# as_number: 51519
# city: Malmö
# country: Sweden
# country_code: SE
# error: false
# ip_address: 2a0e:73c2:123::456
# lat: 55.598126
# long: 13.007398
# network: 2a0e:73c2::/32
# postcode: 211 54
# hostname: ''
# ip: 2a0e:73c2:123::456
# ip_type: ipv6
# ip_valid: true
# messages: []
# ua: curl/7.54.0
##### (JSON) Get information about any v4/v6 IP
curl -fsSL https://minip.karabro.se/lookup/45.132.232.1
# {
# "error": false,
# "geo": {
# "as_name": "Karabro AB",
# "as_number": 51519,
# "city": "Malmö",
# "country": "Sweden",
# "country_code": "SE",
# "error": false,
# "ip_address": "45.132.234.1",
# "lat": 52.352,
# "long": 4.9392,
# "network": "45.132.232.0/22",
# "postcode": "211 54"
# },
# "hostname": "crt01.vkb.karabro.net",
# "ip": "45.132.232.1",
# "ip_type": "ipv4",
# "ip_valid": true,
# "messages": [],
# "ua": "curl/7.54.0"
# }
##### (Plain Text) Get information about any v4/v6 IP
curl -fsSL https://minip.karabro.se/lookup.txt/45.132.234.1
curl -H 'Accept: text/plain' -fsSL https://minip.karabro.se/lookup/45.132.234.1 # ALTERNATIVE
curl -fsSL https://minip.karabro.se/lookup/45.132.234.1?format=text # ALTERNATIVE
##### (YAML) Get information about any v4/v6 IP
curl -fsSL https://minip.karabro.se/lookup.yml/45.132.234.1
curl -H 'Accept: application/yaml' -fsSL https://minip.karabro.se/lookup/45.132.234.1 # ALTERNATIVE
curl -fsSL https://minip.karabro.se/lookup/45.132.234.1?format=yml # ALTERNATIVE
##### (Single Data) Get individual pieces of info about any v4/v6 IP
curl -fsSL https://minip.karabro.se/lookup/2a0e:73c2::333/city
# Malmö
curl -fsSL https://minip.karabro.se/lookup/2a0e:73c2::333/hostname
# se.dns.karabro.io
curl -fsSL https://minip.karabro.se/lookup/2a0e:73c2::333/coords
# 55.598126, 13.00739800
curl -fsSL https://minip.karabro.se/lookup/2a0e:73c2::333/asninfo
# Karabro AB
# AS51519
Some of our pages / endpoints support outputting their data in multiple formats.
You can select a format either by using ?format=TYPE
- which is high priority, or you can use the Accept:
header.
You can also specify format
as both an encoded POST form, or as JSON in the POST body.
curl https://minip.karabro.se/?format=json
curl -H 'Accept: application/json' https://minip.karabro.se/
curl https://minip.karabro.se/?format=yaml
curl -H 'Accept: application/yaml' https://minip.karabro.se/
curl https://minip.karabro.se/lookup/45.132.234.123?format=yaml
curl -H 'Accept: application/yaml' https://minip.karabro.se/lookup/45.132.234.123
# Using the HTTPie tool to send a JSON body POST request
http -p hbHB POST https://minip.karabro.se/lookup/ format=plain addr=45.132.234.56
At the time of writing, currently only the index page ( /
), as well as this page ( /api/
) support outputting their
data in HTML format - though /api/
(this page) is purely a documentation page, and does not have any special functionality
anyway.
HTML is used by default for the index page, however if needed, you can manually specify that you want HTML output
by either passing format=html
as a GET/POST (i.e. /?format=html
) argument, or by ensuring that text/html
is the highest priority in your Accept:
header.
Matching types for format=
and Accept:
are:
html
text/html
text/x-html
text/xhtml
text/xhtml+xml
applicatiom/html
application/x-html
application/xhtml
application/xhtml+xml
web
page
webpage
The JSON format is available as a format option on the following endpoints:
/
(index - default format: html
)/lookup(/<ip>)(/<dtype>)
(IP Lookup - default format: json
)Matching types for format=
and Accept:
are:
json
js
api
text/json
text/x-json
application/json
application/x-json
application/js
The YAML format is available as a format option on the following endpoints:
/
(index - default format: html
)/lookup(/<ip>)(/<dtype>)
(IP Lookup - default format: json
)Matching types for format=
and Accept:
are:
yaml
yml
applicatiom/yaml
applicatiom/yml
applicatiom/x-yaml
applicatiom/x-yml
text/yaml
text/yml
text/x-yaml
text/x-yml
The Plain Text format is available as a format option on the following endpoints:
/
(index - default format: html
)/lookup(/<ip>)(/<dtype>)
(IP Lookup - default format: json
)/flat(/<dtype>)
(Simple flat connecting IP lookup for shellscripts - default format: plain
)Matching types for format=
and Accept:
are:
flat
plain
x-plain
plaintext
plain-text
text
text/*
text/plain
text/x-plain
text/plaintext
text/plain-text
application/text
application/plain
application/x-plain
application/plaintext
application/plain-text
The index endpoint at /
- by default renders an HTML web page, designed to be read by humans. The HTML page displays
the current IP you're connecting from - directly within the HTML body, while the IPv4/IPv6 sections are populated
using JavaScript via AJAX queries to the JSON format of this endpoint on our v4 and v6-only domains.
Endpoints:
/
/index.txt
/index.yml
/index.yaml
/index.json
/index.html
html
) - This is the DEFAULT used for the index endpointplain
) - Displays information about the IP and User Agent you're connecting from, in plain text.
The plain text output is designed to be easy to parse using standard UNIX utilities
such as grep
, awk
, sed
, and/or even just using IFS=
within shells like bash/zsh.json
) - Displays information about the IP you're connecting from, in JSON format.yaml
/ yml
) - Displays information about the IP you're connecting from, in YAML (YML) format.On URLs which support JSON output, you can either pass the GET parameter ?format=json
- or you can set the Accept
header so
that application/json
is the most preferred content requested from the server.
You can query the main site to get information about your system's most preferred IP version, or if the client you're querying
with (e.g. curl with -4
or -6
) allows specifying the IP version, then you can select an IP version using your client.
curl https://minip.karabro.se/?format=json
# Alternative - send the header 'Accept: application/json'
curl -H 'Accept: application/json' https://minip.karabro.se/
# Make the request using IPv4
curl -4 https://minip.karabro.se/?format=json
# Make the request using IPv6
curl -6 https://minip.karabro.se/?format=json
Example Output:
{
"error": false,
"geo": {
"as_name": "Karabro AB",
"as_number": 51519,
"city": "Malmö",
"country": "Sweden",
"country_code": "SE",
"error": false,
"ip_address": "2a0e:73c2:123::456",
"lat": 55.598126,
"long": 13.007398,
"network": "2a0e:73c2::/32",
"postcode": "211 54"
},
"hostname": "",
"ip": "2a0e:73c2:123::456",
"ip_type": "ipv6",
"ip_valid": true,
"messages": [],
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:89.0) Gecko/20100101 Firefox/89.0"
}
Alternatively, you can query our IPv4-only / IPv6-only domain to force your client to use a specific IP version to obtain the results:
curl https://v4.minip.karabro.se/?format=json
curl https://v6.minip.karabro.se/?format=json
You can request plain text output from our index page using ?format=plain
- or you can set your Accept
to
prioritise text/plain
.
curl https://minip.karabro.se/?format=plain
# Alternative - send the header 'Accept: text/plain'
curl -H 'Accept: text/plain' https://minip.karabro.se/
` Result:
IP: 2a0e:73c2:123::456
Version: ipv6
Hostname:
UserAgent: HTTPie/2.0.0
Country: Sweden
CountryCode: SE
City: Malmö
Postcode: 211 54
Lat: 55.598126
Long: 13.007398
ASNum: 51519
ASName: Karabro AB
Network: 2a0e:73c2::/32
The lookup endpoint allows you to query General + GeoIP information about any arbitrary IPv4/IPv6 address.
Endpoints:
/lookup/
/lookup.yml/
/lookup.yaml/
/lookup.json/
/lookup.txt/
/lookup/<addr>/(<type>/)
/lookup.yml/<addr>/(<type>/)
/lookup.yaml/<addr>/(<type>/)
/lookup.json/<addr>/(<type>/)
/lookup.txt/<addr>/(<type>/)
json
) - This is the DEFAULT used for the lookup endpoint. Displays information about the IP you're looking up, in
JSON format.Plain Text (plain
) - Displays information about the IP and User Agent you're looking up, in plain text. The plain
text output is designed to be easy to parse using standard UNIX utilities such as grep
, awk
, sed
, and/or even just
using IFS=
within shells like bash/zsh.
YAML (yaml
/ yml
) - Displays information about the IP you're looking up, in YAML (YML) format.
Command:
user@karabro-example ~ $ http -p hbHB GET https://minip.karabro.se/lookup/
Result:
GET /lookup/ HTTP/1.1
HTTP/1.0 200 OK
Content-Length: 471
Content-Type: application/json
{
"error": false,
"geo": {
"as_name": "Karabro AB",
"as_number": 51519,
"city": "Malmö",
"country": "Sweden",
"country_code": "SE",
"error": false,
"ip_address": "2a0e:73c2:123::456",
"lat": 55.598126,
"long": 13.007398,
"network": "2a0e:73c2::/32",
"postcode": "211 54"
},
"hostname": "",
"ip": "2a0e:73c2:123::456",
"ip_type": "ipv6",
"ip_valid": false,
"messages": [],
"ua": "HTTPie/2.0.0"
}
Command:
user@karabro-example ~ $ http -p hbHB GET https://minip.karabro.se/lookup/45.132.232.70?format=yml
GET /lookup/45.132.232.70?format=yml HTTP/1.1
HTTP/1.0 200 OK
Content-Length: 352
Content-Type: application/yaml
error: false
geo:
as_name: Karabro AB
as_number: 51519
city: Malmö
country: Sweden
country_code: SE
error: false
ip_address: 45.132.232.70
lat: 55.598126
long: 13.007398
network: 45.132.232.0/22
postcode: 211 54
hostname: 45.132.232.70.static.karabro.net
ip: 45.132.232.70
ip_type: ipv4
ip_valid: false
messages: []
ua: HTTPie/2.0.0
Command:
user@karabro-example ~ $ http -p hbHB POST https://minip.karabro.se/lookup.txt/ ip=45.132.234.56
POST /lookup.txt/ HTTP/1.1
Accept: application/json, */*
Content-Type: application/json
{
"ip": "45.132.234.56"
}
HTTP/1.0 200 OK
Content-Length: 247
Content-Type: text/plain
IP: 45.132.234.56
Version: ipv4
Hostname: 45-132-234-56.cust.karabro.net
UserAgent: HTTPie/2.0.0
Country: Sweden
CountryCode: SE
City: Malmö
Postcode: 211 54
Lat: 55.598126
Long: 13.007398
ASNum: 51519
ASName: Karabro AB
Network: 45.132.234.0/23
These Flat Types can be used both with /flat/<type>
as well as /lookup/<ip>
ip
/ addr
/ address
/ ip_address
- Get IPv4/v6 addressdns
/ rdns
/ reverse
/ host
/ hostname
- Get the Reverse DNS (rDNS) hostname for the IP addressversion
/ type
/ ipv
/ ipver
/ ipversion
/ ip_version
- Outputs either ipv4
or ipv6
depending on whether you're
connecting from / looking up an IPv4 or IPv6 address.ua
/ agent
/ useragent
/ user_agent
- Get client/browser User Agentcountry
/ region
- Get the name of the country where the IP appears to be locatedcountry_code
/ region_code
/ country-code
/ region-code
/ code
- Get the two-letter country code where the IP appears
to be locatedcity
/ area
- Get the name of the city where the IP appears to be locatedas
/ asn
/ asnum
/ asnumber
/ isp_number
/ isp_asn
- Get the ASN (Autonomous System Number) of the network which
your IP appears to belong to.asname
/ isp
/ as_name
/ isp_name
/ ispname
- Get the name of the ISP / AS of which your IP appears to belong to.asfull
/ fullas
/ asnfull
/ ispfull
/ fullisp
/ asinfo
/ asninfo
/ asn_info
/ ispinfo
/ isp_info
- Get the
name of the ISP/AS your IP appears to belong to, as well as the AS number (with AS
prefix), separated by a newline.loc
/ locate
/ location
/ countrycity
/ citycountry
/ country_city
/ city_country
- The city, zip/postcode, and
country, in a single line formatted like an address.post
/ postal
/ postcode
/ post_code
/ zip
/ zipcode
/ zip_code
- The ZIP / Postcode where your IP appears to be
located within the country/city.lat
/ latitude
- The latitude co-ordinate, which determines the north/south position in the world.lon
/ long
/ longitude
- The longitude co-ordinate, which determines the east/west position in the world.latlon
/latlong
/ latitudelongitude
/ pos
/ position
/ cord
/ coord
/ coords
/ coordinates
/ co-ordinates
- The latitude AND longitude, separated by a comma and space.all
/ full
/ info
/ information
- All available information aboutWe also have the "flat" endpoint:
/flat(/<type>)
This is designed for use in shellscripts (bash/zsh/etc.), and other kinds of situations where you might not be able to parse JSON/YML/etc.
user@host ~ $ curl https://minip.karabro.se/flat
2a0e:73c2:123::456
user@host ~ $ curl -4 https://minip.karabro.se/flat
45.132.234.140
user@host ~ $ curl https://minip.karabro.se/flat/ua
curl/7.54.0
user@host ~ $ curl https://minip.karabro.se/flat/country
Sweden
user@host ~ $ curl https://minip.karabro.se/flat/city
Malmö
user@host ~ $ curl https://minip.karabro.se/flat/location
Malmö, 211 54, Sweden
user@host ~ $ curl https://minip.karabro.se/flat/pos
55.598126, 13.00739800
user@host ~ $ curl https://minip.karabro.se/flat/asninfo
Karabro AB
AS51519