Skip to main content

IP::Geo - IP/domain geolocation

IP::Geo

Scraper overview

IP::GeoIP::Geo – accurate data on IP addresses/domains

The functionality of A-Parser allows you to save the scraper settings of IP::GeoIP::Geo for future use (presets), set a scraping schedule, and much more.

Saving results is possible in the form and structure that you need, thanks to the built-in powerful templating engine Template Toolkit which allows you to apply additional logic to the results and output data in various formats, including JSON, SQL, and CSV.

Collected data

Data is collected from the service ip-api.com

  • Country (Country).
  • Country code (Country code).
  • Region (Region).
  • Region name (Region name).
  • City (City).
  • ZIP code (ZIP).
  • Latitude (Latitude).
  • Longitude (Longitude).
  • Timezone (Timezone).
  • Internet Service Provider (ISP - Internet Service Provider).
  • Organization (ORG).
  • Autonomous System (AS - Autonomous System).
  • Query being checked (Request).

Use cases

  • Determining the location of an IP

Queries

As queries, you need to specify a list of IP addresses or domains, for example:

143.110.183.74
23.12.134.106
104.69.175.97
192.0.66.114
google.com
a-parser.com
youtube.com

Output results examples

A-Parser supports flexible formatting of results thanks to the built-in templating engine Template Toolkit, which allows it to output results in any form, as well as in structured formats, such as CSV or JSON

Default output

Result format:

$request: $country\n

Result example:

216.58.214.14: United Kingdom
104.69.175.97: Singapore
192.0.66.114: United States
172.217.23.206: Czechia
104.26.7.13: Canada
143.110.183.74: India
23.12.134.106: Italy

Output in a CSV table

Result format:

[% tools.CSVline(request, country) %]

Result example:

172.217.168.206,"United States"
192.0.66.114,"United States"
142.250.187.206,"United Kingdom"
143.110.183.74,India
104.26.7.13,Canada
23.12.134.106,Italy
104.69.175.97,Singapore

Dump results to JSON

Result format:

[%  
obj = {};

obj.query = query;
obj.country = country;
obj.region = region;
obj.city = city;
obj.loc = loc;
obj.postal = postal;

obj.json _ ','
%]

Initial text:

[

Final text:

]

Result example:

{"country":"The Netherlands","request":"142.250.179.206"},{"country":"Singapore","request":"104.69.175.97"},{"country":"Canada","request":"2606:4700:20::681a:70d"},{"country":"The Netherlands","request":"142.251.36.46"},{"country":"Italy","request":"23.12.134.106"},{"country":"India","request":"143.110.183.74"},{"country":"United States","request":"192.0.66.114"},
tip

To make the "Initial text" and "Final text" options available in the Task Editor, you need to activate "More options".

Possible settings

ParameterDefault valueDescription
Use proxy IP as queryUse proxy IP as the query