Every address, answered in this tab
Location, network and abuse information for any IP address, out of one offline file. No API, no rate limit, no address leaving the browser.
- 98
- fields per address
- 17.3 MB
- the whole world
- 2M/s
- warm lookups
- daily
- rebuilt from source
Two readers, one file
The same fields in Python and JavaScript, both reading the memory-mapped file with no service in between.
# pip install "plevin[db,full]" import plevin found = plevin.lookup("1.1.1.1") found.place.city.name # 'Brisbane' found.network.operator.brand # 'Cloudflare' found.abuse.risk # 0.98 on a tor exit
// npm install plevinjs import { open } from "plevinjs/node"; const db = await open("plevin.plv"); db.lookup("1.1.1.1").network.operator.brand; (await db.resolve("1.1.1.1", { dns: true })).dns.hostname;
// no install, no bundler import { open } from "https://esm.sh/plevinjs"; const db = await open( "https://plevin.tn3w.dev/db/plevin.plv"); db.lookup("2606:4700::1111").place.time.local;
# nothing installed, the same answers curl https://plevin.tn3w.dev/api/1.1.1.1 curl https://plevin.tn3w.dev/api/me curl "https://plevin.tn3w.dev/api/1.1.1.1?dns=1"
Still want an API?
The same reader over the same file on a Cloudflare Worker. Identical JSON, no key, no rate limit, CORS open to every origin.
Take the file, not the API
Every release is rehosted here with open CORS. Point
open() at any of them.
plevin.plv
every field17.3 MB
plevin.metro-place.plv
city, region, postal, coordinates, metro5.7 MB
plevin.network.plv
ASN, operator, routing7.3 MB
plevin.abuse-level-abuse-provider-abuse-service.plv
abuse level, service and provider3.7 MB
plevin.place-country-code.plv
the country code390 KB
index.json
the tag and what it carries-
Cut your own file
Keep only the fields you use and get a database that is only that, rebuilt in this tab. The size shown comes from a few counted facts, so it appears at once and needs no download. The 30 MB raw file is fetched only when you press Build, and kept in the browser cache.
Start from an example
Or choose fields
Fields that are computed from others, or share the same data, switch on by themselves. Every field shows a real answer.
The same from a terminal or your own code
# reads plevin.raw, writes the file named like the terms
import { slim } from "plevinjs/slim"; // raw is the bytes of plevin.raw; the result can be saved or opened as is const small = ;
What a lookup is, and is not
Does the address I type leave the tab?
The lookup does not: the file is downloaded once and every answer is read out
of it here. Three things do call out - api.ipify.org behind
My address, cloudflare-dns.com and
dns.google for the DNS card, and
server.arcgisonline.com for the map tiles. The
libraries ask none of those unless a dns flag says so.
What does a lookup return?
98 fields: city, region, country, coordinates, postal code and timezone; ASN, operator, announcement, RPKI state and abuse mailbox; and abuse records with an address risk and a network risk score.
Where does the data come from, and how often?
Rebuilt daily from MaxMind GeoLite2, IP2Location LITE, GeoNames, Natural Earth, a RIPE RIS RIB, RPKI ROAs, the NRO delegations, CAIDA, PeeringDB and 156 abuse feeds.
What can I type into the box?
Any IPv4 or IPv6 address, an ASN like AS13335, or a network
name. A hostname is resolved over DNS first, then looked up like any other
address.
How exact is the location?
City level at best, and every place carries its own confidence and radius in kilometres. An IP address names a network, not a person or a street, so treat the coordinates as the centre of an area.
opening the database