DEV Community

Maximus Beato
Maximus Beato

Posted on • Originally published at apimesh.xyz

how to easily enrich ip addresses with routing and geolocation data using a simple api

the problem

working with ip addresses often requires piecing together data from multiple sources, which is time-consuming and error-prone. you need to analyze network topology, routing paths, or identify potential security issues but fetching data manually or building your own integrations is cumbersome.

the solution

meet ip-infrastructure-analyst, a simple yet powerful api that enriches ip addresses with asn, isp, geolocation, and routing info by querying multiple free public APIs behind the scenes. you send a single request, and it compiles comprehensive network data.

example request:
sh
curl -X GET https://ip-infrastructure-analyst.apimesh.xyz/check?ip=8.8.8.8

sample output shape:

{
"ip": "8.8.8.8",
"asn": "15169",
"isp": "Google LLC",
"geo": {
"country": "US",
"region": "California",
"city": "Mountain View",
"latitude": 37.386,
"longitude": -122.0838
},
"routing": {
"route": "AS15169 Google LLC",
"routing_path": ["AS15169", "AS32", "AS123" ]
}
}

how it works

the api queries multiple public data sources for each ip and aggregates the results into a single payload. it handles rate limiting and retries internally, so you get a reliable, enriched data set with minimal effort.

try it out

test the api with our free preview at see the preview link. for full access, prices are $0.005 per call, making it cheap to scale your ip enrichment needs.

Top comments (0)