There are two types of APIs, which are IP geolocation API and Domain WHOIS API.
This API returns geolocation information like country, region, city, latitude & longitude, ZIP code, time zone, ASN, ISP and so on.
This API returns a comprehensive WHOIS data such as creation date, updated date, expiration date, domain age and so on.