Skip to main content

IP::Geo - IP/domain geolocation

IP::Geo

Overview of the scraper

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

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

The results can be saved in the form and structure that you need, thanks to the built-in powerful templater 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

The data is collected from the service ip-api.com:

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

Use cases

  • Determining IP location

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 results formatting thanks to the built-in templater Template Toolkit, which allows it to output results in an arbitrary form, as well as in structured form, such as CSV or JSON

Default output

Result format:

$request: $country\n

Example result:

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 to a CSV table

Result format:

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

Example result:

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 _ ','
%]

Starting text:

[

Ending text:

]

Example result:

{"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

For the "Starting text" and "Ending text" options to be available in the Job Editor, , you need to activate "More options".

Possible settings

ParameterDefault valueDescription
Use proxy IP as queryUse proxy IP as query