API Documentation
Use our ultra-fast API
The fastest way to get started with GeoTracer is via API. Below are few examples help you to get started with popular languages
cURL
Integration with cURL
1
2 curl 'https://api.geotracer.net/1.1.1.1?key=YOUR_API_KEY'
3 JavaScript/TypeScript
Integration with javascript
1
2 const response = await fetch('https://api.geotracer.net/1.1.1.1?key=YOUR_API_KEY');
3
4 if (response.status === 200) {
5 // data contains countryCode and Name,
6 const data = await response.json();
7 // data.countryCode
8 // data.countryName
9 }
10 PHP/Laravel/Symfony
Integration with php
1
2 $response = Http::get('https://api.geotracer.net/1.1.1.1', [
3 'key' => 'YOUR_KEY_HERE',
4 ]);
5
6 if ($response->successfull()) {
7 // data contains countryCode and Name,
8 $data = $response->json();
9 // $data->countryCode
10 // $data->countryName
11 }
12