VOOZH about

URL: https://apify.com/crimson_rock/ip-to-country-and-asn

โ‡ฑ IP to Country and ASN ยท Apify


Pricing

from $0.01 / 1,000 results

Go to Apify Store

IP to Country and ASN

Returns Country and ASN for given IP address

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ md

md

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Categories

Share

IP Lookup Actor

Look up geolocation and ASN information for any IP address using a fast, lightweight API.

Features

  • Country and continent detection
  • ASN (Autonomous System Number) information
  • Network range (CIDR) lookup
  • Fast response โ€” no heavy dependencies, just a direct lookup

Input

The Actor accepts the following input:

FieldTypeRequiredDescription
ipStringYesThe IP address to look up (e.g. 8.8.8.8)

Example input

{
"ip":"8.8.8.8"
}

Output

The Actor pushes the result to the default dataset. The output contains the following fields:

FieldTypeDescription
ipStringThe looked up IP address
continent_codeStringTwo-letter continent code (e.g. EU, NA)
country_codeStringTwo-letter ISO country code (e.g. US, NL)
country_nameStringFull country name (e.g. United States)
asnStringAutonomous System Number (e.g. 15169)
asn_nameStringShort name of the ASN (e.g. GOOGLE)
asn_orgStringFull organisation name of the ASN
asn_domainStringDomain associated with the ASN
asn_country_codeStringCountry code where the ASN is registered
networkStringCIDR network range (e.g. 8.8.8.0/24)
errorStringError message if the lookup failed (if any)

Example output

{
"ip":"8.8.8.8",
"continent_code":"NA",
"country_code":"US",
"country_name":"United States",
"asn":"15169",
"asn_name":"GOOGLE",
"asn_org":"Google LLC",
"asn_domain":"google.com",
"asn_country_code":"US",
"network":"8.8.8.0/24"
}

Usage via Apify API

You can call this Actor programmatically from your own server or application:

curl-X POST \
"https://api.apify.com/v2/acts/YOUR_ACTOR_ID/run-sync-get-dataset-items?token=YOUR_API_TOKEN"\
-H"Content-Type: application/json"\
-d'{"ip": "8.8.8.8"}'

Error handling

If the IP address is not found in the database, the Actor returns:

{
"ip":"192.168.1.1",
"error":"IP address not found in database."
}

If no IP address is provided, the Actor will fail with the message:

No IP address provided.

Attribution

IP address data powered by IPLocate

You might also like

Ip Geolocation Lookup - Bulk IP Location, ISP & ASN

apizy/ip-geolocation-lookup

Resolve IP addresses in bulk with accurate geolocation data including country, region, city, coordinates, and timezone. Optionally enrich results with ISP, ASN, and organization data. Ideal for analytics, fraud review, and traffic enrichment.

IP Geolocation Enrichment - Bulk IP to Location, ASN, ISP

santamaria-automations/ip-geolocation

Bulk enrich IP addresses with country, city, latitude/longitude, ASN, ISP, and network information. Powered by MaxMind GeoLite2. Perfect for log analysis, fraud detection, audience analytics, and security investigations. Supports IPv4 and IPv6.

๐ŸŒ IP Geolocation Scraper โ€” Bulk IP Lookup & Locations

lokki/ip-geolocation-scraper

Bulk IP geolocation lookup for IPs, domains, and URLs. Get country, city, coordinates, timezone, ISP, organization, ASN, proxy/hosting flags, and clean network data.

IP Address Information Scraper

ryancoffey/ip-address-information-scraper

IP Address Information Scraper

IP Geolocation & ASN Checker (Pay Per Result)

vtrdev/ip-info-checker

Check IP addresses for geolocation, ASN, ISP, and privacy details. Bulk process thousands per minute with pay-per-result pricing. Just input IPs and get accurate results instantly.

IP Geolocation and Insights Lookup

vulnv/ip-geolocation-and-insights-lookup

Discover detailed IP geolocation data - fetch city, region, country, ASN, privacy, company details, and more. Perfect for cybersecurity, network analysis, and marketing. Get reliable insights with customizable outputs.

Instant Ip Address Lookup

burbn/instant-ip-address-lookup

Detect risky traffic and enrich IPs for security workflows. This actor performs IP address lookup and returns IP geolocation (country/region/city + coordinates), ISP & ASN, timezone/local time, and proxy/VPN detection. Perfect for fraud prevention, account takeover risk checks, payment risk scoring.

IP Geolocation Scraper

parseforge/ipapi-geolocation-scraper

Bulk geolocation lookup for IPv4 and IPv6 addresses. Returns city, region, country, postal, latitude, longitude, timezone, ASN, organization, currency, languages, and country calling code per IP.

urlscan.io Threat Intelligence Scraper

parseforge/urlscan-scraper

Search the urlscan.io public scan database with Lucene queries (domain, page.url, hash, IP, ASN, tag) and export scan metadata: page URL, IP, ASN, server, TLS, screenshot, redirect chain, country, brand, verdict.