Site Tools

User Tools


Table of Contents

CSV

Usage

To receive the response in CSV (Comma-separated values) format, send a GET request to

http://ip-api.com/csv

You can supply an IP address or domain to lookup, or none to use your current IP address.

Response

A successful request will return, by default, the following:

success,COUNTRY,COUNTRY CODE,REGION CODE,REGION NAME,CITY,ZIP CODE,LATITUDE,LONGITUDE,TIME ZONE,ISP NAME,ORGANIZATION NAME,AS NUMBER / NAME,REVERSE DNS,IP ADDRESS USED FOR QUERY

List of returned values

A failed request will return, by default, the following:

fail,ERROR MESSAGE,IP ADDRESS USED FOR QUERY

List of error messages

Selectable return values

Examples

http://ip-api.com/csv - using your current IP address 67.202.9.192

success,"United States",US,VA,Virginia,Ashburn,,39.0437,-77.4875,America/New_York,Amazon.com,Amazon.com,"AS14618 Amazon.com, Inc.",ec2-67-202-9-192.compute-1.amazonaws.com,67.202.9.192

http://ip-api.com/csv/208.80.152.201

success,"United States",US,CA,California,"San Francisco",94105,37.7898,-122.3942,America/Los_Angeles,"Wikimedia Foundation","Wikimedia Foundation","AS14907 Wikimedia US network",wikipedia-lb.pmtpa.wikimedia.org,208.80.152.201

Page Tools