API Freaks logoAPI Freaks logo
CTRL+K

    APIs

  • Pricing
  • Resources
  • Tools

  • Contact us
CTRL+K
Sign InGet Started For Free
  • Credits Usage APIGET
  • IP Geolocation LookupGET
  • Bulk IP Geolocation LookupPOST
  • Domain WHOIS LookupGET
  • IP WHOIS LookupGET
  • ASN LookupGET
  • Domain WHOIS Historical LookupGET
  • Domain WHOIS Reverse LookupGET
  • Bulk Domain WHOIS LookupPOST
  • DNS LookupGET
  • Historical DNS LookupGET
  • Reverse DNS LookupGET
  • Bulk DNS LookupPOST
  • Email Checker APIPOST
  • SSL Certificate LookupGET
  • SSL Certificate Chain LookupGET
  • Domain AvailabilityGET
  • Domain Availability with SuggestionsGET
  • Bulk Domain AvailabilityPOST
  • Website ScreenshotGET
  • Bulk ScreenshotPOST
  • Latest Exchange RatesGET
  • Historical Exchange RatesGET
  • Currency Converter LatestGET
  • Currency Converter HistoricalGET
  • Currency Time SeriesGET
  • Currency FluctuationGET
  • Geolocalized Currency ConverterGET
  • Currency SupportedGET
  • Currency SymbolsGET
  • Currency Historical Data LimitsGET
  • Live Commodity PricesGET
  • Historical Commodity PricesGET
  • Commodity FluctuationGET
  • Commodity Time SeriesGET
  • Commodity SymbolsGET
  • Timezone LookupGET
  • Timezone ConverterGET
  • GeoDB CountriesGET
  • GeoDB Country DetailsGET
  • GeoDB RegionsGET
  • GeoDB SubregionsGET
  • GeoDB Admin LevelsGET
  • GeoDB Admin UnitsGET
  • GeoDB Admin Units DetailsGET
  • GeoDB CitiesGET
  • Zip Code LookupGET
  • ZIP Code Search CityGET
  • ZIP Code Search RegionGET
  • ZIP Code Search RadiusGET
  • ZIP Code DistanceGET
  • ZIP Code Distance MatchGET
  • User Agent ParserGET
  • Bulk User Agent ParserPOST
  • Astronomy APIGET

Ready to get started?

Sign Up for Free

APIFreaks

API Catalog

  • Geolocation APIs
  • WHOIS APIs
  • DNS APIs
  • Email Validation APIs
  • SSL APIs
  • Domain APIs
  • Screenshot APIs
  • Currency APIs
  • Commodity APIs
  • Timezone APIs
  • Zipcode APIs
  • User Agent APIs
  • Other APIs

Tools Catalog

  • Code Formatters
  • Data & Query Tools
  • Text Tools
  • Email Utilities
  • Viewers

Docs

  • APIs
  • Swagger Docs

Pricing & Accounts

  • Pricing
  • Sign up
  • Sign In

Company

  • About Us
  • Resources
  • Terms
  • Privacy

Copyright © 2024

Made in Pakistan

IP Geolocation API

GET

https://api.apifreaks.com/v1.0/geolocation/lookup

format
Format of the Response
ipString
IPv4, IPv6, or hostname whose geolocation lookup is required
langString
response language.
fieldsArray
Comma separated list of fields to be included in the response. with an additional optional field "geo" to represent geolocation fields.
excludesArray
Comma separated list of fields except ip to be excluded in the response
includeArray
Comma-separated list of values to include additional IP lookup information in the response.
Media Type
JSON
Body

API Keystringrequired
Your private API key. Get it from API Freaks dashboard.

Sample Responses

404
423
400
LANGUAGE
Python
PHP
Java
Node
Ruby
JavaScript
C#
$ pip install requests
RESPONSE

Click Test it to start the request and see the response here!


API Response

FieldTypeRequirementDescription
ipStringMandatory
The IP address
hostnameStringOptional
The hostname (if available)
locationObjectMandatory
The location information
country_metadataObjectMandatory
The country metadata
networkObjectMandatory
The network information
currencyObjectMandatory
The currency information
securityObjectOptional
The security information
abuseObjectOptional
The abuse information
time_zoneObjectOptional
The time zone information
user_agentObjectOptional
The user agent information

"location" Object contains the following fields:

FieldTypeRequirementDescription
continent_codeStringMandatory
The 2-letter continent code
continent_nameStringMandatory
The continent name
country_code2StringMandatory
The 2-letter country code (ISO 3166-1 alpha-2)
country_code3StringMandatory
The 3-letter country code (ISO 3166-1 alpha-3)
country_nameStringMandatory
The common name of the country
country_name_officialStringMandatory
The official name of the country
country_capitalStringMandatory
The capital city of the country
state_provStringMandatory
The state or province name
state_codeStringMandatory
The state or province code
districtStringMandatory
The district name
cityStringMandatory
The city name
localityStringMandatory
The locality or neighborhood name
accuracy_radiusStringMandatory
The accuracy radius of the location (Km)
confidenceStringMandatory
The confidence level of the location
dma_codeStringOptional
The DMA code
zipcodeStringMandatory
The ZIP code
latitudeStringMandatory
The latitude coordinate
longitudeStringMandatory
The longitude coordinate
is_euBooleanMandatory
Is the country belong to European Union?
country_flagStringMandatory
The URL of the country flag image
geoname_idStringMandatory
The Geoname ID of the location
country_emojiStringMandatory
The emoji of the country

"country_metadata" Object contains the following fields:

FieldTypeRequirementDescription
calling_codeStringMandatory
The calling code of the country
tldStringMandatory
The top level domain of the country
languagesArrayMandatory
The languages spoken in the country

"network" Object contains the following fields:

FieldTypeRequirementDescription
asn.as_numberStringMandatory
The AS number
asn.organizationStringMandatory
The organization name
asn.countryStringMandatory
The country code
asn.asn_nameStringMandatory
The ASN name
asn.typeStringMandatory
The type of the ASN
asn.domainStringMandatory
The domain associated with the ASN
asn.date_allocatedStringMandatory
The date when the ASN was allocated
asn.allocation_statusStringMandatory
The allocation status of the ASN
asn.num_of_ipv4_routesStringMandatory
The number of IPv4 routes associated with the ASN
asn.num_of_ipv6_routesStringMandatory
The number of IPv6 routes associated with the ASN
asn.rirStringMandatory
The Regional Internet Registry (RIR) of the ASN
connection_typeStringMandatory
The type of the connection
company.nameStringMandatory
The name of the company
company.typeStringMandatory
The type of the company
company.domainStringMandatory
The domain associated with the company

"currency" Object contains the following fields:

FieldTypeRequirementDescription
codeStringMandatory
The code of the currency
nameStringMandatory
The name of the currency
symbolStringMandatory
The symbol of the currency

"security" Object contains the following fields:

FieldTypeRequirementDescription
threat_scoreNumberMandatory
The threat score of the IP address
is_torBooleanMandatory
The TOR status of the IP address
is_proxyBooleanMandatory
The proxy status of the IP address
proxy_typeStringMandatory
The type of the proxy
proxy_providerStringMandatory
The provider of the proxy
is_anonymousBooleanMandatory
The anonymous status of the IP address
is_known_attackerBooleanMandatory
The known attacker status of the IP address
is_spamBooleanMandatory
The spam status of the IP address
is_botBooleanMandatory
The bot status of the IP address
is_cloud_providerBooleanMandatory
The cloud provider status of the IP address
cloud_providerStringMandatory
The cloud provider of the IP address

"abuse" Object contains the following fields:

FieldTypeRequirementDescription
routeStringMandatory
The IP range of the abuse contact
countryStringMandatory
The country code of the abuse contact
handleStringMandatory
The handle of the abuse contact
nameStringMandatory
The name of the abuse contact
organizationStringMandatory
The organization of the abuse contact
roleStringMandatory
The role of the abuse contact
kindStringMandatory
The kind of the abuse contact
addressStringMandatory
The address of the abuse contact
emailsArrayMandatory
The list of email addresses of the abuse contact
phone_numbersArrayMandatory
The list of phone numbers of the abuse contact

"timezone" Object contains the following fields:

FieldTypeRequirementDescription
nameStringMandatory
The name of the time zone
offsetNumberMandatory
The time difference in hours from UTC
offset_with_dstNumberMandatory
The time difference in hours from UTC, including DST
current_timeStringMandatory
The current time in the specified timezone
current_time_unixFloatMandatory
The current time in seconds since 1970
current_tz_abbreviationStringMandatory
The abbreviation of the current time zone
current_tz_full_nameStringMandatory
The full name of the current time zone
standard_tz_abbreviationStringMandatory
The abbreviation of the standard time zone
standard_tz_full_nameStringMandatory
The full name of the standard time zone
is_dstBooleanMandatory
Is the timezone in daylight savings?
dst_savingsNumberMandatory
Total daylight savings.
dst_existsBooleanMandatory
Indicates whether DST exists in the specified timezone.
dst_tz_abbreviationStringMandatory
The abbreviation of the DST timezone.
dst_tz_full_nameStringMandatory
The full name of the DST timezone.
dst_start.utc_timeStringOptional
The date and time in UTC when DST begins.
dst_start.durationStringOptional
The time change that occurs when DST starts.
dst_start.gapBooleanOptional
Is there a gap when the clocks jump forward or not.
dst_start.date_time_afterStringOptional
The local date and time that immediately follows the start of DST.
dst_start.date_time_beforeStringOptional
The local date and time immediately before DST begins.
dst_start.overlapBooleanOptional
Whether there is an overlap of time due to clocks being set back when DST starts.
dst_end.utc_timeStringOptional
The date and time in UTC when DST ends.
dst_end.durationStringOptional
The time change that occurs when DST ends.
dst_end.gapBooleanOptional
Is there a gap when the clocks jump backward or not.
dst_end.date_time_afterStringOptional
The local date and time that immediately follows the ends of DST.
dst_end.date_time_beforeStringOptional
The local date and time immediately before DST ends.
dst_end.overlapBooleanOptional
Whether there is an overlap of time due to clocks being set back when DST ends.

"user_agent" Object contains the following fields:

FieldTypeRequirementDescription
user_agent_stringStringMandatory
User-Agent string
nameStringMandatory
The name of the browser
typeStringMandatory
The type of the browser
versionStringMandatory
The version of the browser
version_majorStringMandatory
The major version of the browser
device.nameStringMandatory
The name of the device
device.typeStringMandatory
The type of the device
device.brandStringMandatory
The brand of the device
device.cpuStringMandatory
The cpu of the device
engine.nameStringMandatory
The name of the engine
engine.typeStringMandatory
The type of the engine
engine.versionStringMandatory
The version of the engine
engine.version_majorStringMandatory
The version major of the engine
operating_system.nameStringMandatory
The name of the operating system
operating_system.typeStringMandatory
The type of the operating system
operating_system.versionStringMandatory
The version of the operating system
operating_system.version_majorStringMandatory
The version major of the operating system
operating_system.buildStringMandatory
The build of the operating system