geoPlugin Home

CSV Geolocation Web Service

The CSV Geolocation web service API 1) allows you to directly program your back-end Comma-Separated Value (CSV) scripts to deliver dynamic geo-localized pages using the CSV elements provided by geoPlugin.

To access the XML geolocation API, add the following url to a remote include call


http://www.geoplugin.net/csv.gp?ip=xx.xx.xx.xx


Of course, substitute the xx's with your visitor's IP number.

Example output of a CSV query output for your IP address (54.162.239.233) is:

geoplugin_request,54.162.239.233
geoplugin_status,200
geoplugin_delay,2ms
geoplugin_credit,Some of the returned data includes GeoLite data created by MaxMind available from http://www.maxmind.com.
geoplugin_city,Ashburn
geoplugin_region,Virginia
geoplugin_regionCode,VA
geoplugin_regionName,Virginia
geoplugin_areaCode,
geoplugin_dmaCode,511
geoplugin_countryCode,US
geoplugin_countryName,United States
geoplugin_inEU,0
geoplugin_euVATrate,
geoplugin_continentCode,NA
geoplugin_continentName,North America
geoplugin_latitude,39.0481
geoplugin_longitude,-77.4728
geoplugin_locationAccuracyRadius,1000
geoplugin_timezone,America/New_York
geoplugin_currencyCode,USD
geoplugin_currencySymbol,$
geoplugin_currencySymbol_UTF8,$
geoplugin_currencyConverter,1


CSV Geolocation Currency Converter

The “geoplugin_currencyConverter” element is the conversion rate for the currency converter base currency.
Like all calls to any of geoPlugin's web services, the default base_currency is USD ($US).
Thus, if your base currency is NOT $US, then you must add the variable base_currency=XXX to the call to geoplugin.net
eg

http://www.geoplugin.net/csv.gp?base_currency=EUR

Now the geoplugin_currencyConverter element will output the exchange rate of one Euro for your visitor.


The base_currency value must be a valid ISO 4217 3-letter code.





See also

1) This product includes GeoLite data created by MaxMind, available from http://maxmind.com/
 
 


Acceptable Use Policy    Privacy Policy and User Agreement    Contact geoPlugin


©2006 - 2018 GEOPLUGIN, SAS