
Analysez la provenance de vos visiteurs.
Chargement...
Une API robuste & puissante
Nous avons développé Ateros GeoIP dans l'optique de vous offrir toutes les fonctionnalités nécessaires à la construction de votre application web.
Notre base de données est mise à jour tous les jours pour offrir une précision maximale.
Nous détectons automatiquement le fuseau horaire dans lequel est situé une adresse IP.
Vous aurez directement accès au code ISO de la devise d'une adresse IP pour adaptez votre contenu.
Notre infrastructure robuste couplé à un système de cache vous assure un service optimal peu importe vos besoins.
Nous vous offrons une documentation claire pour Ateros GeoIP afin que vous puissiez l'intégrer sans difficulté.
Notre support technique vous assisstera si vous rencontrez une difficulté lors de l'utilisation de Ateros GeoIP.
Intégrez Ateros GeoIP à votre application
-
Shell
#!/bin/bash # API Parameters ip="5.51.11.133" # We first get the data from the API response=$(curl -s "https://geo.ateros.fr/${ip}") # Then we can parse it using jq : # Echoing the entire response from the API (nicely formatted with jq) jq <<< "$response" # Saving the currency to a variable currency=$(jq '.currency' <<< "$response")
-
PHP
<?php // The IP address we want to test $ip = '5.51.11.133'; // Get the data from the API $response = file_get_contents('https://geo.ateros.fr/' . $ip); // Converting the JSON response into a PHP array $json = json_decode($response, true); // Print the API response var_dump($json); // Print the user currency echo $json['currency'];
-
Python
#!/bin/python import requests, json # API Parameters ip = "5.51.11.133" # We first get the data from the API response = requests.post("https://geo.ateros.fr/" + ip) # Then we convert the json answer into a Python object data = json.loads(response.text) # Print the whole answer print(data) # Print the user currency print(data['currency'])
Besoin d'une solution sur-mesure ?
Si vous disposez de besoins spécifiques (grande quantité de requêtes, fonctionnalités spécifiques...), contactez-nous afin d'en discuter !
Contactez nous